Skip to content

Commit 7baffc6

Browse files
Copilotfelicitymay
andcommitted
Update stale workflow to handle docs-internal and docs separately
Co-authored-by: felicitymay <1877141+felicitymay@users.noreply.github.com>
1 parent 6e9f91d commit 7baffc6

File tree

1 file changed

+22
-5
lines changed

1 file changed

+22
-5
lines changed

.github/workflows/stale.yml

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
name: Stale
22

3-
# **What it does**: Close issues and pull requests after no updates for 365 days.
4-
# **Why we have it**: We want to manage our queue of issues and pull requests.
5-
# **Who does it impact**: Everyone that works on docs or docs-internal.
6-
73
on:
84
schedule:
95
- cron: '20 16 * * *' # Run every day at 16:20 UTC / 8:20 PST
@@ -18,11 +14,32 @@ jobs:
1814
if: github.repository == 'github/docs-internal' || github.repository == 'github/docs'
1915
runs-on: ubuntu-latest
2016
steps:
21-
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
17+
- name: Mark stale issues and PRs (docs-internal)
18+
if: github.repository == 'github/docs-internal'
19+
uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
20+
with:
21+
repo-token: ${{ secrets.GITHUB_TOKEN }}
22+
stale-issue-message: 'This issue is stale because there have been no updates in 365 days.'
23+
stale-pr-message: 'This PR has been automatically marked as stale due to 14 days of inactivity. Please update soon to avoid closure.'
24+
close-pr-message: 'Closing this PR due to prolonged inactivity. If you wish to continue, please reopen.'
25+
days-before-stale: 365
26+
days-before-close: 0
27+
days-before-stale-pr: 14
28+
stale-issue-label: 'stale'
29+
stale-pr-label: 'stale'
30+
exempt-pr-labels: 'never-stale,waiting for review'
31+
exempt-issue-labels: 'never-stale,help wanted,waiting for review'
32+
operations-per-run: 1000
33+
close-issue-reason: not_planned
34+
35+
- name: Mark stale issues and PRs (docs)
36+
if: github.repository == 'github/docs'
37+
uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
2238
with:
2339
repo-token: ${{ secrets.GITHUB_TOKEN }}
2440
stale-issue-message: 'This issue is stale because there have been no updates in 365 days.'
2541
stale-pr-message: 'This PR is stale because there have been no updates in 365 days.'
42+
close-pr-message: 'This PR is being closed due to inactivity.'
2643
days-before-stale: 365
2744
days-before-close: 0
2845
stale-issue-label: 'stale'

0 commit comments

Comments
 (0)