Browse Source

Update stale workflow

Roman Zabaluev 3 years ago
parent
commit
d13d4dc327
2 changed files with 19 additions and 22 deletions
  1. 0 22
      .github/stale.yml
  2. 19 0
      .github/workflows/stale.yaml

+ 0 - 22
.github/stale.yml

@@ -1,22 +0,0 @@
-# Number of days of inactivity before an issue becomes stale
-daysUntilStale: 7
-# Number of days of inactivity before a stale issue is closed
-daysUntilClose: 3
-# Only issues or pull requests with all of these labels are check if stale. Defaults to `[]` (disabled)
-onlyLabels:
-  - 'status/pending'
-# Issues with these labels will never be considered stale
-exemptLabels:
-  - 'status/on-hold'
-  - 'status/blocked'
-  - 'status/triage'
-  - 'type/security'
-# Label to use when marking an issue as stale
-staleLabel: 'status/stale'
-# Comment to post when marking an issue as stale. Set to `false` to disable
-markComment: >
-  This issue has been automatically marked as stale because it has not had
-  recent activity. It will be closed if no further activity occurs. Thank you
-  for your contributions.
-# Comment to post when closing a stale issue. Set to `false` to disable
-closeComment: false

+ 19 - 0
.github/workflows/stale.yaml

@@ -0,0 +1,19 @@
+name: 'Close stale issues'
+on:
+  schedule:
+    - cron: '30 1 * * *'
+
+jobs:
+  stale:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/stale@v4
+        with:
+          days-before-stale: 0
+          days-before-close: 0
+          days-before-issue-stale: 7
+          days-before-issue-close: 3
+          stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.'
+          stale-issue-label: 'status/stale'
+          only-labels: 'status/pending'
+          remove-issue-stale-when-updated: true