Skip to content

Fix welcome.yml first-time contributor detection and expand auto-label patterns#4

Merged
jaseel0 merged 2 commits intomainfrom
copilot/fix-welcom-yml
Mar 10, 2026
Merged

Fix welcome.yml first-time contributor detection and expand auto-label patterns#4
jaseel0 merged 2 commits intomainfrom
copilot/fix-welcom-yml

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 10, 2026

welcome.yml never fired the welcome message due to an off-by-one in the first-time check. auto-label.yml lacked coverage for common issue/PR categories.

welcome.yml

  • total_count === 0total_count <= 1: the triggering issue/PR is already indexed when the workflow runs, so a first-timer always returns count 1, not 0

auto-label.yml

  • Cache title.toLowerCase() into lowerTitle — avoids redundant calls per condition
  • Tightened "doc" match to "documentation" || "docs" to avoid false positives (e.g. "doctor")
  • Added label mappings:
Title keyword(s) Label
enhancement, feature enhancement
documentation, docs documentation
help help wanted
beginner, good first good first issue
feedback, suggest feedback

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

…rkflow

Co-authored-by: jaseel0 <225665919+jaseel0@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix welcome.yml and update auto-label configuration Fix welcome.yml first-time contributor detection and expand auto-label patterns Mar 10, 2026
@naheel0 naheel0 marked this pull request as ready for review March 10, 2026 10:07
@jaseel0 jaseel0 merged commit 28ce20c into main Mar 10, 2026
@jaseel0 jaseel0 deleted the copilot/fix-welcom-yml branch March 10, 2026 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants