From 6e9f91dfe51595fdb52ee87a85e0f33e84a0f923 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 10 Jul 2025 19:17:54 +0000 Subject: [PATCH 1/4] Initial plan From 7baffc62153e3232472f9bea7b412c9491f7992f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 10 Jul 2025 19:28:48 +0000 Subject: [PATCH 2/4] Update stale workflow to handle docs-internal and docs separately Co-authored-by: felicitymay <1877141+felicitymay@users.noreply.github.com> --- .github/workflows/stale.yml | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 1628f40aa0f8..8aa1da397183 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -1,9 +1,5 @@ name: Stale -# **What it does**: Close issues and pull requests after no updates for 365 days. -# **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. - on: schedule: - cron: '20 16 * * *' # Run every day at 16:20 UTC / 8:20 PST @@ -18,11 +14,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 stale due to 14 days of inactivity. Please update soon to avoid closure.' + close-pr-message: 'Closing this PR due to prolonged inactivity. If you wish to continue, please reopen.' + 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' From 80fb99ec60c3e04a3aee5159493dcc0a576d04f0 Mon Sep 17 00:00:00 2001 From: Felicity Chapman Date: Thu, 10 Jul 2025 20:53:10 +0100 Subject: [PATCH 3/4] Apply suggestions from code review --- .github/workflows/stale.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 8aa1da397183..8eb0f11360b4 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -20,10 +20,10 @@ jobs: 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 stale due to 14 days of inactivity. Please update soon to avoid closure.' - close-pr-message: 'Closing this PR due to prolonged inactivity. If you wish to continue, please reopen.' + 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's 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-issue-close: 0 days-before-stale-pr: 14 stale-issue-label: 'stale' stale-pr-label: 'stale' From 44469be34505b710759b2b838a789aea669b6e02 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 10 Jul 2025 19:57:17 +0000 Subject: [PATCH 4/4] Restore workflow comments and fix YAML syntax issues Co-authored-by: felicitymay <1877141+felicitymay@users.noreply.github.com> --- .github/workflows/stale.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 8eb0f11360b4..ec16b719d427 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -1,5 +1,9 @@ name: Stale +# **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. + on: schedule: - cron: '20 16 * * *' # Run every day at 16:20 UTC / 8:20 PST @@ -21,9 +25,9 @@ jobs: 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's been inactive for 3 weeks. If the PR is still relevant, please reopen and resolve any merge conflicts.' + 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-issue-close: 0 + days-before-close: 0 days-before-stale-pr: 14 stale-issue-label: 'stale' stale-pr-label: 'stale'