mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-25 15:20:08 +00:00
Add GitHub Action to label Pull Requests
This commit is contained in:
parent
55f20fed6e
commit
8113ed065d
1 changed files with 17 additions and 0 deletions
17
.github/main.workflow
vendored
Normal file
17
.github/main.workflow
vendored
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
workflow "Triage Pull Request" {
|
||||||
|
on = "pull_request"
|
||||||
|
resolves = ["Triage"]
|
||||||
|
}
|
||||||
|
|
||||||
|
# Only act if there are code changes: if the pull_request
|
||||||
|
# event's action is either 'opened' (new PR) or 'synchronize' (new commits)
|
||||||
|
action "Filter actions" {
|
||||||
|
uses = "actions/bin/filter@0ac6d44"
|
||||||
|
args = "action 'opened|synchronize'"
|
||||||
|
}
|
||||||
|
|
||||||
|
action "Triage" {
|
||||||
|
needs = ["Filter actions"]
|
||||||
|
uses = "ohmyzsh/github-actions/pull-request-triage@master"
|
||||||
|
secrets = ["GITHUB_TOKEN"]
|
||||||
|
}
|
Loading…
Reference in a new issue