feat: label issue closing PRs as bugfixes #60287
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
None
Purpose of change
someone once said it would be a good idea to label prs that use
any closing keywords as bugfixes, I took a mental note of that and
immediately forgor about it, oops!
implement that idea; to be specific you gotta add any of these
keywords:
https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword
close
closes
closed
fix
fixes
fixed
resolve
resolves
#
and an issue number, the regex for this specific bit was borrowedfrom one of the commands in the cdda discord server
#([1-9][0-9]{3,4})
also increase the upper limit of an issue number up to 7
I had to repeat the bugfix labeler entry cuz YAML do be like that
big point this specific labeler workflow happen to be case sensitive, Iscratch that, I remembered how regex workstake this compromise, the "fix it" or looking for a different labeler
are ehh options honestly
website to see this regex in action, string to test included
https://regex101.com/r/pBIUNe/1
or just take a look at this
Describe the solution
Describe alternatives you've considered
Testing
casswedson/issue-labeling#23
casswedson/issue-labeling#24
Additional context