Skip to content

[3.0] [Meta] Automatic pull request labeler - #9525

Merged
Sesquipedalian merged 5 commits into
SimpleMachines:release-3.0from
jdarwood007:3.0/labler
Aug 15, 2026
Merged

[3.0] [Meta] Automatic pull request labeler#9525
Sesquipedalian merged 5 commits into
SimpleMachines:release-3.0from
jdarwood007:3.0/labler

Conversation

@jdarwood007

Copy link
Copy Markdown
Member

For complete details see https://github.com/actions/labeler

This adds a automatic workflow that runs on a new pull request and will automatically label PRs based on updated files.

I opted to not have it go backwards or run a cron, so it shouldn't need any permissions.

This won't run on new issues, which would request parsing text and validating the report.

I did my best to fit our labels into what we have for sources. Some review of this would be great and additions made as needed. Its goal is not to be a complete end all solution, but provide us with some automation on this

@jdarwood007 jdarwood007 added this to the 3.0 Alpha 5 milestone Aug 15, 2026
@jdarwood007 jdarwood007 added Meta Repository tools github_actions Pull requests that update GitHub Actions code labels Aug 15, 2026
Comment thread .github/labeler.yml Outdated
Comment thread .github/labeler.yml Outdated
Comment thread .github/labeler.yml Outdated
Comment thread .github/labeler.yml
Comment thread .github/labeler.yml Outdated
Comment thread .github/labeler.yml Outdated
@albertlast

Copy link
Copy Markdown
Collaborator

I only see 4 action here in the pr, should be the pr his own not already fire this action?
So in sum it should 5 action here be listed?

jdarwood007 and others added 3 commits August 15, 2026 13:09
Co-authored-by: Jon Stovell <jonstovell@gmail.com>
Co-authored-by: Jon Stovell <jonstovell@gmail.com>
Co-authored-by: Jon Stovell <jonstovell@gmail.com>
@jdarwood007

Copy link
Copy Markdown
Member Author

I only see 4 action here in the pr, should be the pr his own not already fire this action? So in sum it should 5 action here be listed?

This won't fire on the initial pull as its using the trigger

When submitting an initial pull request to a repository using the pull_request_target event, the labeler workflow will not run on that pull request because the pull_request_target execution runs off the base branch instead of the pull request's branch. Unfortunately this means the introduction of the labeler can not be verified during that pull request and it needs to be committed blindly.

@albertlast

Copy link
Copy Markdown
Collaborator

okay i was confused, because my pr for unit test already fire while the pr merge phase: #9326 you see there 6 actions

@jdarwood007

jdarwood007 commented Aug 15, 2026

Copy link
Copy Markdown
Member Author

Looks like the unit tests didn't fire. I'm not sure how those were implemented, but maybe they don't fire if PHP code doesn't change?

@albertlast

Copy link
Copy Markdown
Collaborator

No the pr is not merged,
i only want to show, that in the case where i introduce also a new action it's also fire already in moment of pr request.

@Sesquipedalian
Sesquipedalian merged commit fa24f50 into SimpleMachines:release-3.0 Aug 15, 2026
4 checks passed
@Sesquipedalian

Sesquipedalian commented Aug 15, 2026

Copy link
Copy Markdown
Member

Well, this started failing as soon as it was merged. Apparently one of my suggested changes broke it. Actually, nope, not my fault this time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github_actions Pull requests that update GitHub Actions code Meta Repository tools

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants