瀏覽代碼

pending label auto-removal on new comment

Signed-off-by: Nicolas De Loof <[email protected]>
Nicolas De Loof 4 年之前
父節點
當前提交
1fed4dd47f
共有 1 個文件被更改,包括 17 次插入0 次删除
  1. 17 0
      .github/workflows/pending_answered.yml

+ 17 - 0
.github/workflows/pending_answered.yml

@@ -0,0 +1,17 @@
+name: Continuous integration
+
+on:
+  issue_comment:
+    types: [ created ]
+
+jobs:
+  pending:
+    if: ${{ !github.event.issue.pull_request && contains(github.event.issue.labels.*.name, 'pending') }}
+    name: Remove pending label
+    runs-on: ubuntu-latest
+    steps:
+      - name: removelabel
+        uses: siegerts/pending-response@v1
+        with:
+          github-token: ${{ secrets.GITHUB_TOKEN }}
+          pending-response-label: pending