Explorar el Código

ci: stale issues [skip ci]

Baptiste Augrain hace 2 años
padre
commit
10143fdee2
Se han modificado 2 ficheros con 24 adiciones y 2 borrados
  1. 3 2
      .github/workflows/lock.yml
  2. 21 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

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

@@ -0,0 +1,21 @@
+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: 90
+          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.