From c3f13aedacf8854486d954b53d9be5c394ecaa87 Mon Sep 17 00:00:00 2001 From: Justin Wood Date: Wed, 7 Aug 2024 21:21:13 -0700 Subject: [PATCH] Migrating to a working stale (#34867) * Migrating to a working stale * Adding permissions --- .github/stale.yml | 42 ------------------------------------ .github/workflows/stale.yaml | 41 +++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+), 42 deletions(-) delete mode 100644 .github/stale.yml create mode 100644 .github/workflows/stale.yaml diff --git a/.github/stale.yml b/.github/stale.yml deleted file mode 100644 index 4f6adeea522da6..00000000000000 --- a/.github/stale.yml +++ /dev/null @@ -1,42 +0,0 @@ -# Stale config for https://github.com/marketplace/stale -# Issues with these labels will never be considered stale -exemptLabels: - - security - - blocked - -# Label to use when marking a pull request as stale -staleLabel: stale - -pulls: - # Number of days of inactivity before a pull request becomes stale - daysUntilStale: 60 - - # Number of days of inactivity before a stale pull request is closed - daysUntilClose: 30 - - # Comment to post when marking a pull request as stale. Set to `false` to disable - markComment: > - This pull request has been automatically marked as stale because it has not had - recent activity. It will be closed if no further activity occurs. - - # Comment to post when closing a stale pull request. Set to `false` to disable - closeComment: > - This stale pull request has been automatically closed. - Thank you for your contributions. - -issues: - # Number of days of inactivity before a issue becomes stale - daysUntilStale: 180 - - # Number of days of inactivity before a stale issue is closed - daysUntilClose: 7 - - # Comment to post when marking a issue as stale. Set to `false` to disable - markComment: > - This issue has been automatically marked as stale because it has not had - recent activity. It will be closed if no further activity occurs. - - # Comment to post when closing a stale issue. Set to `false` to disable - closeComment: > - This stale issue has been automatically closed. - Thank you for your contributions. diff --git a/.github/workflows/stale.yaml b/.github/workflows/stale.yaml new file mode 100644 index 00000000000000..5437430f1dc550 --- /dev/null +++ b/.github/workflows/stale.yaml @@ -0,0 +1,41 @@ +name: "Process Stale Issues and PRs" +on: + schedule: + - cron: "30 1 * * *" + +permissions: + issues: write + pull-requests: write + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v9 + with: + stale-issue-message: + "This issue has been automatically marked as stale because + it has not had recent activity. It will be closed if no + further activity occurs. Remove stale label or comment or + this will be closed in 30 days." + stale-pr-message: + "This pull request has been automatically marked as stale + because it has not had recent activity. It will be closed + if no further activity occurs. Remove stale label or + comment or this will be closed in 10 days." + close-issue-message: + "This stale issue has been automatically closed. Thank you + for your contributions." + close-pr-message: + "This stale pull request has been automatically closed. + Thank you for your contributions." + days-before-issue-stale: 30 + days-before-issue-close: -1 # Don't close them for now + days-before-pr-stale: 90 + days-before-pr-close: 10 + exempt-issue-labels: + "security,blocked,cert blocker,build issue,Spec XML + align,CI/CD improvements,memory" + exempt-pr-labels: + "security,blocked,cert blocker,build issue,Spec XML + align,CI/CD improvements,memory"