-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Add actions/labeler
#26962
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add actions/labeler
#26962
Conversation
It does not seem to run on |
I don't know why this |
|
For some reason the workflow doesn't even show up in the list. It did show up when I set |
Maybe we actually need to merge this to work on subsequent PRs. From docs:
|
PR is in a mergeable state if we want to try above. |
So I'm pretty positive this can only work once merged. The action runs on the target branch with write access to github api to set labels. It obtains changed files from API and uses the config in the repo. But because the target branch ( |
Added some more, I think this is good enough now. We should see it working after merge. |
.github/labeler.yml
Outdated
- go.mod | ||
- go.sum |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If a PR imports a new module, this PR gets labeled as dependencies
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, at least that's my understanding of the label. It says "Pull requests that update a dependency file". We can of course remove the setting of this label entirely if it's not useful, but I do see the addition/modification of depdendencies a important property on a PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have removed the dependencies
now for two reasons:
- The label does not follow the
kind/
prefix - I don't want to go overboard with label spam
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's try it.
Fixup: #26964 |
* giteaofficial/main: Add `yamllint` (go-gitea#26965) Fix yaml quoting (go-gitea#26964) [skip ci] Updated translations via Crowdin Add `actions/labeler` (go-gitea#26962) Team invite url fix when registration disabled (go-gitea#26950) Refactor dashboard/feed.tmpl (go-gitea#26956) Improve hint when uploading a too large avatar (go-gitea#26935) Replace `util.SliceXxx` with `slices.Xxx` (go-gitea#26958) Add reverseproxy auth for API back with default disabled (go-gitea#26703) Add "dir=auto" for input/textarea elements by default (go-gitea#26735)
Implements GiteaBot/gitea-backporter#93 using
actions/labeler
. Very basic configuration, can be extended later.