summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Bailey <derekbailey@google.com>2023-03-03 16:52:14 -0800
committerGitHub <noreply@github.com>2023-03-03 16:52:14 -0800
commitdf007dfde8b2a59a0726d5bd123ed43c825dd882 (patch)
tree7ecba2ed49928acc93a71e4d7373fa753e63f570
parentd44ce00af13b55701420b78c73725a2edc9fdb37 (diff)
downloadflatbuffers-df007dfde8b2a59a0726d5bd123ed43c825dd882.tar.gz
flatbuffers-df007dfde8b2a59a0726d5bd123ed43c825dd882.tar.bz2
flatbuffers-df007dfde8b2a59a0726d5bd123ed43c825dd882.zip
Update stale.yml
Shorten the PR staleness from 6 months to 3 weeks + 1 week notice. PRs become much harder to deal with the old they become due to merge conflicts and divergence. Updated to stale@v7.0.0
-rw-r--r--.github/workflows/stale.yml27
1 files changed, 19 insertions, 8 deletions
diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml
index 45f01192..5634aeb8 100644
--- a/.github/workflows/stale.yml
+++ b/.github/workflows/stale.yml
@@ -1,5 +1,7 @@
name: Mark stale issues and pull requests
-permissions: read-all
+permissions:
+ issues: write
+ pull-requests: write
on:
schedule:
@@ -11,14 +13,23 @@ jobs:
runs-on: ubuntu-latest
steps:
- - uses: actions/stale@v4.0.0
+ - uses: actions/stale@v7.0.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- stale-pr-message: 'This pull request is stale because it has been open 6 months with no activity. Please comment or this will be closed in 14 days.'
- stale-issue-message: 'This issue is stale because it has been open 6 months with no activity. Please comment or this will be closed in 14 days.'
- days-before-stale: 182 # 6 months
- days-before-close: 14
- operations-per-run: 1500
+ operations-per-run: 50
+ exempt-all-milestones: true
+ remove-stale-when-updated: true
+
+ stale-issue-message: 'This issue is stale because it has been open 6 months with no activity. Please comment or label `not-stale`, or this will be closed in 14 days.'
+ close-issue-message: 'This issue was automatically closed due to no activity for 6 months plus the 14 day notice period.'
+ days-before-issue-stale: 182 # 6 months
+ days-before-issue-close: 14 # 2 weeks
exempt-issue-labels: not-stale
+
+ stale-pr-message: 'This pull request is stale because it has been open 3 weeks with no activity. Please comment or label `not-stale`, or this will be closed in 7 days.'
+ close-pr-message: 'This pull request was automatically closed due to no activity for 3 weeks plus the 7 day notice period.'
+ days-before-pr-stale: 21 # 3 weeks
+ days-before-pr-close: 7 # 1 week
exempt-pr-labels: not-stale
- exempt-all-milestones: true
+ exempt-draft-pr: false
+