diff --git a/.github/workflows/check-default-title.yml b/.github/workflows/check-default-title.yml index a9c99de07..a812cbca3 100644 --- a/.github/workflows/check-default-title.yml +++ b/.github/workflows/check-default-title.yml @@ -33,6 +33,19 @@ jobs: if (!hasDefaultTitle) { console.log(`Title is descriptive: "${title}"`); + + // Remove needs-title label if present + try { + await github.rest.issues.removeLabel({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: itemNumber, + name: 'needs-title', + }); + console.log(`Removed 'needs-title' label from ${itemType} #${itemNumber}`); + } catch (error) { + // Label not present, that's fine + } return; }