8113ed065d5bead01430e393bd33d6e32a597471
- Author
- Marc Cornellà <marc.cornella@live.com>
- Committer
- GitHub <noreply@github.com>
- Date
Message
Add GitHub Action to label Pull Requests
Diff
1diff --git a/.github/main.workflow b/.github/main.workflow
2new file mode 100644
3index 0000000000000000000000000000000000000000..0dbb0247ab0e6bbaafe84671948aff9e43657229
4--- /dev/null
5+++ b/.github/main.workflow
6@@ -0,0 +1,17 @@
7+workflow "Triage Pull Request" {
8+ on = "pull_request"
9+ resolves = ["Triage"]
10+}
11+
12+# Only act if there are code changes: if the pull_request
13+# event's action is either 'opened' (new PR) or 'synchronize' (new commits)
14+action "Filter actions" {
15+ uses = "actions/bin/filter@0ac6d44"
16+ args = "action 'opened|synchronize'"
17+}
18+
19+action "Triage" {
20+ needs = ["Filter actions"]
21+ uses = "ohmyzsh/github-actions/pull-request-triage@master"
22+ secrets = ["GITHUB_TOKEN"]
23+}