Skip to content

Commit 434bca4

Browse files
committed
github: Add workflow to mark stale issues
This workflow will add a 'stale' label to any issues that haven't been modified in 60 days, and then after an additional 14 days, will close the issue. The template was copied from Zephyr. Signed-off-by: David Brown <david.brown@linaro.org>
1 parent f2ac70d commit 434bca4

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/stale_issue.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: "Close stale pull requests/issues"
2+
on:
3+
schedule:
4+
- cron: "16 00 * * *"
5+
6+
jobs:
7+
stale:
8+
name: Find Stale issues and PRs
9+
runs-on: ubuntu-latest
10+
if: github.repository == 'mcu-tools/mcuboot'
11+
steps:
12+
- uses: actions/stale@v3
13+
with:
14+
repo-token: ${{ secrets.GITHUB_TOKEN }}
15+
stale-pr-message: 'This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time.'
16+
stale-issue-message: 'This issue has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 14 days. Note, that you can always re-open a closed issue at any time.'
17+
days-before-stale: 60
18+
days-before-close: 14
19+
stale-issue-label: 'stale'
20+
stale-pr-label: 'stale'
21+
# exempt-pr-labels: 'Blocked,In progress'
22+
# exempt-issue-labels: 'In progress,Enhancement,Feature,Feature Request,RFC,Meta'
23+
operations-per-run: 400

0 commit comments

Comments
 (0)