瀏覽代碼

Merge branch 'master' into insider

Baptiste Augrain 2 年之前
父節點
當前提交
59e72eed70
共有 2 個文件被更改,包括 26 次插入2 次删除
  1. 3 2
      .github/workflows/lock.yml
  2. 23 0
      .github/workflows/stale.yml

+ 3 - 2
.github/workflows/lock.yml

@@ -1,8 +1,8 @@
-name: Lock Threads
+name: Lock Issues
 
 on:
   schedule:
-    - cron: '0 0 * * Mon'
+    - cron: '0 2 * * *'
 
 jobs:
   lock:
@@ -13,3 +13,4 @@ jobs:
           github-token: ${{ github.token }}
           issue-inactive-days: '90'
           pr-inactive-days: '90'
+          log-output: true

+ 23 - 0
.github/workflows/stale.yml

@@ -0,0 +1,23 @@
+name: Stale Issues
+on:
+  schedule:
+    - cron: '0 1 * * *'
+
+permissions:
+  issues: write
+
+jobs:
+  stale:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/stale
+        with:
+          days-before-stale: 180
+          days-before-close: 30
+          stale-issue-label: stale
+          stale-issue-message: >
+            This issue has been automatically marked as stale. **If this issue is still affecting you, please leave any comment**, and we'll keep it open. If you have any new additional information, please include it with your comment!
+          close-issue-message: >
+            This issue has been closed due to inactivity, and will not be monitored. If this is a bug and you can reproduce this issue, please open a new issue.
+          exempt-issue-labels: discussion
+          only-pr-labels: not-a-real-label