Pārlūkot izejas kodu

Update stale action

Florian Friedrich 8 mēneši atpakaļ
vecāks
revīzija
8292e39b7b
2 mainītis faili ar 18 papildinājumiem un 8 dzēšanām
  1. 1 1
      .github/PULL_REQUEST_TEMPLATE.md
  2. 17 7
      .github/workflows/stale.yml

+ 1 - 1
.github/PULL_REQUEST_TEMPLATE.md

@@ -6,7 +6,7 @@
 
 <br/>
 
-- [ ] I have updated this branch with the latest master to avoid conflicts (via merge from master or rebase)
+- [ ] I have updated this branch with the latest master to avoid conflicts (via rebase of master)
 - [ ] I have added the required tests to prove the fix/feature I am adding
 - [ ] I have updated the documentation (if necessary)
 - [ ] I have run the tests and they pass

+ 17 - 7
.github/workflows/stale.yml

@@ -1,8 +1,8 @@
-name: 'Manage stale issues and PRs'
+name: "Manage stale issues and PRs"
 
 on:
   schedule:
-    - cron: '30 1 * * *'
+    - cron: "30 1 * * *"
   issues:
     types:
       - edited
@@ -20,9 +20,10 @@ on:
   pull_request_review:
   push:
     paths:
-      - '.github/workflows/stale.yml'
+      - ".github/workflows/stale.yml"
 
 permissions:
+  actions: write # https://github.com/actions/stale/issues/1159
   # contents: write # only for delete-branch option, which we leave to default `false` right now.
   issues: write
   pull-requests: write
@@ -35,12 +36,13 @@ jobs:
         with:
           days-before-stale: 60
           days-before-close: 7
-          stale-issue-label: Stale
-          stale-pr-label: Stale
+          stale-issue-label: stale
+          stale-pr-label: stale
           exempt-all-assignees: true
           exempt-draft-pr: true
-          exempt-issue-labels: Important,Blocker,Feature Request,Good First Issue
-          exempt-pr-labels: Important,Blocker,Feature Request
+          any-of-labels: awaiting review,awaiting response
+          exempt-issue-labels: important,good first issue
+          exempt-pr-labels: important,bugfix
           stale-issue-message: >
             This issue has been automatically marked as stale because it has not had recent activity.
             It will be closed if no further activity occurs.
@@ -53,3 +55,11 @@ jobs:
             If this pull request is still valid, please make sure it is up to date and if so,
             add a comment that this is still valid to keep it open.
             Thank you for your contribution.
+          close-issue-message: >
+            This issue has been automatically closed due to inactivity.
+            If this issue still applies, please make sure it's up to date (e.g. answer any outstanding questions) and re-open it.
+            Thank you for your contribution.
+          close-pr-message: >
+            This pull request has been automatically closed due to inactivity.
+            If this pull request is still valid, please make sure it is up to date (e.g. answer any outstanding questions) and re-open it.
+            Thank you for your contribution.