浏览代码

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 年之前
父节点
当前提交
fbcc3b1caf
共有 1 个文件被更改,包括 20 次插入0 次删除
  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'