From f800736152d4f3c01b99df70bf8f583166b63a46 Mon Sep 17 00:00:00 2001 From: Sharra-writes Date: Thu, 5 Jun 2025 10:31:03 -0700 Subject: [PATCH 1/5] Update stale.yml Trying the stale workflow from desktop/desktop to make sure it's a script problem not a yaml problem. --- .github/workflows/stale.yml | 71 ++++++++++++++++++++++++------------- 1 file changed, 46 insertions(+), 25 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 0414f70e22bd..97aa5358de74 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -1,42 +1,63 @@ -name: Stale +#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 + +#permissions: + #contents: read + #issues: write + #pull-requests: write + +#jobs: + #stale: + #if: github.repository == 'github/docs-internal' || github.repository == 'github/docs' + #runs-on: ubuntu-latest + #steps: + #- 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.' + #days-before-stale: 365 + #days-before-close: 0 + #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: Check out repo + #if: ${{ failure() }} + #uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + #- uses: ./.github/actions/slack-alert + #if: ${{ failure() }} + #with: + #slack_channel_id: ${{ secrets.DOCS_ALERTS_SLACK_CHANNEL_ID }} + #slack_token: ${{ secrets.SLACK_DOCS_BOT_TOKEN }} + +name: 'Marks stale issues and PRs' on: schedule: - - cron: '20 16 * * *' # Run every day at 16:20 UTC / 8:20 PST + - cron: '30 1 * * *' # 1:30 AM UTC permissions: - contents: read issues: write - pull-requests: write jobs: stale: - if: github.repository == 'github/docs-internal' || github.repository == 'github/docs' runs-on: ubuntu-latest steps: - - uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0 + - uses: actions/stale@v9 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.' + stale-issue-label: 'stale, triage' # The label that will be added to the issues when automatically marked as stale + start-date: '2024-11-25T00:00:00Z' # Skip stale action for issues/PRs created before it days-before-stale: 365 - days-before-close: 0 - 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: Check out repo - if: ${{ failure() }} - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - - uses: ./.github/actions/slack-alert - if: ${{ failure() }} - with: - slack_channel_id: ${{ secrets.DOCS_ALERTS_SLACK_CHANNEL_ID }} - slack_token: ${{ secrets.SLACK_DOCS_BOT_TOKEN }} + days-before-close: -1 # If -1, the issues nor pull requests will never be closed automatically. + days-before-pr-stale: -1 # If -1, no pull requests will be marked as stale automatically. + exempt-issue-labels: 'never-stale, help wanted, ' # issues labeled as such will be excluded them from being marked as stale From 9a9ec96a2a028827d046956df940eb763324528e Mon Sep 17 00:00:00 2001 From: Sharra-writes Date: Thu, 5 Jun 2025 10:35:43 -0700 Subject: [PATCH 2/5] Update .github/workflows/stale.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .github/workflows/stale.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 97aa5358de74..32961c24e0a3 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -60,4 +60,4 @@ jobs: days-before-stale: 365 days-before-close: -1 # If -1, the issues nor pull requests will never be closed automatically. days-before-pr-stale: -1 # If -1, no pull requests will be marked as stale automatically. - exempt-issue-labels: 'never-stale, help wanted, ' # issues labeled as such will be excluded them from being marked as stale + exempt-issue-labels: 'never-stale, help wanted' # issues labeled as such will be excluded them from being marked as stale From 3e5e096d6127884ce58cf045271de26c84c86b21 Mon Sep 17 00:00:00 2001 From: Sharra-writes Date: Thu, 5 Jun 2025 11:06:17 -0700 Subject: [PATCH 3/5] Update .github/workflows/stale.yml --- .github/workflows/stale.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 32961c24e0a3..baaa8d71246f 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -44,7 +44,7 @@ name: 'Marks stale issues and PRs' on: schedule: - - cron: '30 1 * * *' # 1:30 AM UTC + - cron: '20 16 * * *' # 1:30 AM UTC permissions: issues: write From 155f45fc00b0a67bcca594bb4eae3dc77537a825 Mon Sep 17 00:00:00 2001 From: Sharra-writes Date: Thu, 5 Jun 2025 11:07:07 -0700 Subject: [PATCH 4/5] Update .github/workflows/stale.yml --- .github/workflows/stale.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index baaa8d71246f..90f7a1bc7b4c 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -44,7 +44,7 @@ name: 'Marks stale issues and PRs' on: schedule: - - cron: '20 16 * * *' # 1:30 AM UTC + - cron: '20 16 * * *' # Run every day at 16:20 UTC / 8:20 PST permissions: issues: write From bc3601d5e54bd15d4a894c45708b253d2c11700d Mon Sep 17 00:00:00 2001 From: Sharra-writes Date: Thu, 5 Jun 2025 12:23:53 -0700 Subject: [PATCH 5/5] Update stale.yml Updating permissions. Not sure how this is being used elsewhere without those permissions. --- .github/workflows/stale.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 90f7a1bc7b4c..d9f71c6f7865 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -47,6 +47,7 @@ on: - cron: '20 16 * * *' # Run every day at 16:20 UTC / 8:20 PST permissions: + contents: read issues: write jobs: