浏览代码

Add GitHub Action to label Pull Requests

Marc Cornellà 5 年之前
父节点
当前提交
8113ed065d
共有 1 个文件被更改,包括 17 次插入0 次删除
  1. 17 0
      .github/main.workflow

+ 17 - 0
.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"]
+}