Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 23 additions & 2 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Stale

# **What it does**: Close issues and pull requests after no updates for 365 days.
# **What it does**: Close issues and pull requests after no updates for 365 days (docs) or 14 days for PRs (docs-internal).
# **Why we have it**: We want to manage our queue of issues and pull requests.
# **Who does it impact**: Everyone that works on docs or docs-internal.

Expand All @@ -18,11 +18,32 @@ jobs:
if: github.repository == 'github/docs-internal' || github.repository == 'github/docs'
runs-on: ubuntu-latest
steps:
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
- name: Mark stale issues and PRs (docs-internal)
if: github.repository == 'github/docs-internal'
uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'This issue is stale because there have been no updates in 365 days.'
stale-pr-message: 'This PR has been automatically marked as stalled after 14 days of inactivity (open PRs rapidly collect merge conflicts). Please update soon to avoid closure.'
close-pr-message: 'Closing this PR because it has been inactive for 3 weeks. If the PR is still relevant, please reopen and resolve any merge conflicts.'
days-before-stale: 365
days-before-close: 0
days-before-stale-pr: 14
stale-issue-label: 'stale'
stale-pr-label: 'stale'
exempt-pr-labels: 'never-stale,waiting for review'
exempt-issue-labels: 'never-stale,help wanted,waiting for review'
operations-per-run: 1000
close-issue-reason: not_planned

- name: Mark stale issues and PRs (docs)
if: github.repository == 'github/docs'
uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'This issue is stale because there have been no updates in 365 days.'
stale-pr-message: 'This PR is stale because there have been no updates in 365 days.'
close-pr-message: 'This PR is being closed due to inactivity.'
days-before-stale: 365
days-before-close: 0
stale-issue-label: 'stale'
Expand Down