Skip to content

Automatically label issues and prs with plugin labels#6497

Merged
snejus merged 1 commit intomasterfrom
automatically-label-issues-and-prs
Apr 5, 2026
Merged

Automatically label issues and prs with plugin labels#6497
snejus merged 1 commit intomasterfrom
automatically-label-issues-and-prs

Conversation

@snejus
Copy link
Copy Markdown
Member

@snejus snejus commented Apr 4, 2026

Add GitHub issue and PR auto-labeler workflow

Introduces automated label triage for issues and PRs using the github/issue-labeler action.

What changed:

  • .github/labeler.yaml — defines regex patterns mapping ~80 plugin names to their corresponding labels. Ambiguous short names (e.g. convert, edit, play) require either a plugin suffix or a <name>: prefix in the title to avoid false positives.
  • .github/workflows/label-issues.yaml — triggers on issue/PR open and edit events, matches against the title only (not the body), and syncs labels so stale ones are removed on edits.

Impact: Zero runtime cost; purely a CI/triage quality-of-life improvement. Makes it easier to filter and route plugin-specific issues without manual labelling.

@snejus snejus requested a review from a team as a code owner April 4, 2026 13:25
Copilot AI review requested due to automatic review settings April 4, 2026 13:25
@snejus snejus force-pushed the automatically-label-issues-and-prs branch 2 times, most recently from 27151bb to bb744e7 Compare April 4, 2026 13:27
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

PR add GitHub Actions workflow to auto-label issues + PRs from title, using github/issue-labeler and a big regex map of plugin names to labels.

Changes:

  • Add .github/workflows/label-issues.yaml to run labeler on issue/PR open + edit, title-only, and sync labels.
  • Add .github/labeler.yaml with regex patterns for many plugin-name labels (some with extra disambiguation rules).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
.github/workflows/label-issues.yaml New workflow to run github/issue-labeler on issues + PRs and keep labels in sync.
.github/labeler.yaml New label-to-regex config mapping plugin names to label matches.

Comment thread .github/workflows/label-issues.yaml Outdated
Comment thread .github/labeler.yaml Outdated
Comment thread .github/labeler.yaml Outdated
Comment thread .github/labeler.yaml Outdated
@snejus snejus force-pushed the automatically-label-issues-and-prs branch 2 times, most recently from 4e94524 to 551e266 Compare April 4, 2026 13:33
@snejus snejus changed the title Automatically label issues and prs Automatically label issues and prs with plugin labels Apr 4, 2026
Copy link
Copy Markdown
Member

@JOJ0 JOJ0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice feature! For the "Plugins' Kanban Board" it would be nice if the one required tag could also be added. It's named plugins, but I suppose this is not possible without manually maintaining a list of things/words that are plugins. But for now this LGTM and we can think about this feature request later.

PS: I am too lazy to test this in my fork ATM. Or I can do that quickly if you think it helps? How?

@snejus
Copy link
Copy Markdown
Member Author

snejus commented Apr 5, 2026

It needs to be merged in order to be tested! Let's see

Adds a labeler configuration and workflow that automatically applies
labels to issues and PRs based on plugin names mentioned in the title.
@snejus snejus force-pushed the automatically-label-issues-and-prs branch from 551e266 to 2ef4b5b Compare April 5, 2026 08:03
@snejus snejus enabled auto-merge April 5, 2026 08:03
@snejus snejus merged commit dcea85c into master Apr 5, 2026
18 checks passed
@snejus snejus deleted the automatically-label-issues-and-prs branch April 5, 2026 08:08
@JOJ0 JOJ0 added the core Pull requests that modify the beets core `beets` label Apr 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Pull requests that modify the beets core `beets`

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants