Selaa lähdekoodia

Automatically close “answered” issues if they have no activity for 30 days.

Often we have questions opened as issues that we have answered, but then there is no follow-up from the submitter. This enables us to indicate we have answered the question, and then the issue is scheduled to be closed after 30 days, presumably answered.
Jason Grout 4 vuotta sitten
vanhempi
commit
fbcc3b1caf
1 muutettua tiedostoa jossa 20 lisäystä ja 0 poistoa
  1. 20 0
      .github/answered.yml

+ 20 - 0
.github/answered.yml

@@ -0,0 +1,20 @@
+# This action automatically schedules issues to be closed that have been
+# labeled as answered if there is no activity on them for 30 days. This takes
+# care of the common usecase of an issue being answered to the best of our
+# ability and no other follow-up from the submitter.
+name: 'Close answered issues'
+on:
+  schedule:
+    - cron: '30 1 * * *'
+
+jobs:
+  stale:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/stale@v3
+        with:
+          skip-stale-issue-message: true
+          days-before-stale: 30
+          days-before-close: 7
+          stale-issue-label: 'status:Closing as Answered'
+          only-issue-labels: 'status:Answered'