Skip to content

Commit d1ab9f4

Browse files
authored
Add a workflow for stale issues/PRs (#2319)
As it is written it will only affect issues labeled "awaiting contributor response"
1 parent 4a3e670 commit d1ab9f4

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.github/workflows/stale.yaml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
2+
#
3+
# You can adjust the behavior by modifying this file.
4+
# For more information, see:
5+
# https://github.com/actions/stale
6+
name: Mark stale issues and pull requests
7+
8+
on:
9+
schedule:
10+
# Scheduled to run at 1.30 UTC everyday
11+
- cron: '30 1 * * *'
12+
workflow_dispatch:
13+
14+
jobs:
15+
stale:
16+
17+
runs-on: ubuntu-latest
18+
permissions:
19+
issues: write
20+
pull-requests: write
21+
22+
steps:
23+
- uses: actions/stale@v9
24+
with:
25+
repo-token: ${{ secrets.GITHUB_TOKEN }}
26+
days-before-issue-stale: 14
27+
days-before-issue-close: 14
28+
stale-issue-label: "status:stale"
29+
close-issue-reason: not_planned
30+
any-of-labels: "awaiting contributor response,cla:no"
31+
stale-issue-message: >
32+
Marking this issue as stale since it has been open for 14 days with no activity.
33+
This issue will be closed if no further activity occurs.
34+
close-issue-message: >
35+
This issue was closed because it has been inactive for 28 days.
36+
Please post a new issue if you need further assistance. Thanks!
37+
days-before-pr-stale: 14
38+
days-before-pr-close: 14
39+
stale-pr-label: "status:stale"
40+
stale-pr-message: >
41+
Marking this pull request as stale since it has been open for 14 days with no activity.
42+
This PR will be closed if no further activity occurs.
43+
close-pr-message: >
44+
This pull request was closed because it has been inactive for 28 days.
45+
Please open a new pull request if you need further assistance. Thanks!
46+
# Label that can be assigned to issues to exclude them from being marked as stale
47+
exempt-issue-labels: 'override-stale'
48+
# Label that can be assigned to PRs to exclude them from being marked as stale
49+
exempt-pr-labels: "override-stale"

0 commit comments

Comments
 (0)