Browse Source

pending label auto-removal on new comment

Signed-off-by: Nicolas De Loof <[email protected]>
Nicolas De Loof 4 years ago
parent
commit
1fed4dd47f
1 changed files with 17 additions and 0 deletions
  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