summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2019-05-03 16:31:22 +0200
committerGitHub <noreply@github.com>2019-05-03 16:31:22 +0200
commit8113ed065d5bead01430e393bd33d6e32a597471 (patch)
tree7caab286e2a57f79e9039702d5158afa86281d1c
parent55f20fed6e34e6651816888ea823b61de2fedbcb (diff)
downloadzsh-8113ed065d5bead01430e393bd33d6e32a597471.tar.gz
zsh-8113ed065d5bead01430e393bd33d6e32a597471.tar.bz2
zsh-8113ed065d5bead01430e393bd33d6e32a597471.zip
Add GitHub Action to label Pull Requests
-rw-r--r--.github/main.workflow17
1 files changed, 17 insertions, 0 deletions
diff --git a/.github/main.workflow b/.github/main.workflow
new file mode 100644
index 000000000..0dbb0247a
--- /dev/null
+++ b/.github/main.workflow
@@ -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"]
+}