Ver Fonte

chore: replace defunct Stale bot with GH action

George Cushen há 4 anos atrás
pai
commit
1c4f02fe34
2 ficheiros alterados com 34 adições e 25 exclusões
  1. 0 25
      .github/stale.yml
  2. 34 0
      .github/workflows/stale.yml

+ 0 - 25
.github/stale.yml

@@ -1,25 +0,0 @@
-# Number of days of inactivity before an issue becomes stale
-daysUntilStale: 30
-# Number of days of inactivity before a stale issue is closed
-daysUntilClose: 7
-# Issues with these labels will never be considered stale
-exemptLabels:
-  - keep
-  - enhancement
-  - bug
-  - documentation
-  - security
-# Label to use when marking an issue as stale
-staleLabel: 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 any recent activity. The resources of the project maintainers are limited, and so we are asking for your help.
-
-  If this is a **bug** and you can still reproduce this error on the <code>main</code> branch, consider contributing a Pull Request with a fix.
-
-  If this is a **feature request**, and you feel that it is still relevant and valuable, please tell us why or contribute a Pull Request for review.
-
-  This issue will automatically close soon 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

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

@@ -0,0 +1,34 @@
+name: 'Close stale issues and PRs'
+on:
+  schedule:
+    - cron: '43 18 * * *'
+
+jobs:
+  stale:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/stale@v3
+        with:
+          repo-token: ${{ secrets.GITHUB_TOKEN }}
+          stale-issue-message: |
+            This issue is stale because it has not had any recent activity. The resources of the project maintainers are limited, and so we are asking for your help.
+
+            If this is a **bug** and you can still reproduce this error on the <code>main</code> branch, consider contributing a Pull Request with a fix.
+
+            If this is a **feature request**, and you feel that it is still relevant and valuable, consider contributing a Pull Request for review.
+
+            This issue will automatically close soon if no further activity occurs. Thank you for your contributions.
+          stale-pr-message: |
+            This PR is stale because it has not had any recent activity. The resources of the project maintainers are limited, and so we are asking for your help.
+
+            If you feel that the PR is still relevant in the latest release, consider making the PR easier to review and finding developers to help review the PR.
+
+            Please be _mindful_ that although we encourage PRs, we cannot expand the scope of the project in every possible direction. There will be requests that don't make the roadmap.
+
+            This PR will automatically close soon if no further activity occurs. Thank you for your contributions.
+          days-before-stale: 30
+          days-before-close: 0
+          stale-issue-label: stale
+          stale-pr-label: stale
+          exempt-issue-labels: 'keep,enhancement,bug,documentation'
+          exempt-pr-labels: 'keep,enhancement,bug,documentation'