From f2cabefb3245868b9c1c226ab152a8102e172451 Mon Sep 17 00:00:00 2001 From: Jack Pope Date: Mon, 1 Apr 2024 11:01:21 -0400 Subject: [PATCH 1/2] Convert deprecated stalebot to github action --- .github/stale.yml | 35 --------------------- .github/workflows/stale.yml | 62 +++++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+), 35 deletions(-) delete mode 100644 .github/stale.yml create mode 100644 .github/workflows/stale.yml diff --git a/.github/stale.yml b/.github/stale.yml deleted file mode 100644 index 0d33381a10deb..0000000000000 --- a/.github/stale.yml +++ /dev/null @@ -1,35 +0,0 @@ -# Configuration for probot-stale - https://github.com/probot/stale -# Number of days of inactivity before an issue becomes stale -daysUntilStale: 90 -# Number of days of inactivity before a stale issue is closed -daysUntilClose: 7 -# Issues with these labels will never be considered stale -exemptLabels: - - "Partner" - - "React Core Team" - - "Resolution: Backlog" - - "Type: Bug" - - "Type: Discussion" - - "Type: Needs Investigation" - - "Type: Regression" - - "Type: Feature Request" -# Label to use when marking an issue as stale -staleLabel: "Resolution: Stale" -issues: - # Comment to post when marking an issue as stale. - markComment: > - This issue has been automatically marked as stale. - **If this issue is still affecting you, please leave any comment** (for example, "bump"), and we'll keep it open. - We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment! - # Comment to post when closing a stale issue. - closeComment: > - Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you! -pulls: - # Comment to post when marking a pull request as stale. - markComment: > - This pull request has been automatically marked as stale. - **If this pull request is still relevant, please leave any comment** (for example, "bump"), and we'll keep it open. - We are sorry that we haven't been able to prioritize reviewing it yet. Your contribution is very much appreciated. - # Comment to post when closing a stale pull request. - closeComment: > - Closing this pull request after a prolonged period of inactivity. If this issue is still present in the latest release, please ask for this pull request to be reopened. Thank you! diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 0000000000000..347700f76bc96 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,62 @@ +# Configuration for stale action workflow - https://github.com/actions/stale +name: 'Manage stale issues and PRs' +on: + schedule: + # Run daily at 2AM + - cron: '0 2 * * *' + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v9 + with: + # --- Issues & PRs --- + # Number of days of inactivity before an issue or PR becomes stale + days-before-stale: 90 + # Number of days of inactivity before a stale issue or PR is closed + days-before-close: 7 + # Tmp dry run setup to test new config + debug-only: 'true' + + # --- Issues --- + stale-issue-label: "Resolution: Stale" + # Comment to post when marking an issue as stale + stale-issue-message: > + This issue has been automatically marked as stale. + **If this issue is still affecting you, please leave any comment** (for example, "bump"), and we'll keep it open. + We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment! + # Comment to post when closing a stale issue + close-issue-message: > + Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you! + # Issues with these labels will never be considered stale + exempt-issue-labels: + - "Partner" + - "React Core Team" + - "Resolution: Backlog" + - "Type: Bug" + - "Type: Discussion" + - "Type: Needs Investigation" + - "Type: Regression" + - "Type: Feature Request" + + # --- PRs --- + stale-pr-label: "Resolution: Stale" + # Comment to post when marking a pull request as stale + stale-pr-message: > + This pull request has been automatically marked as stale. + **If this pull request is still relevant, please leave any comment** (for example, "bump"), and we'll keep it open. + We are sorry that we haven't been able to prioritize reviewing it yet. Your contribution is very much appreciated. + # Comment to post when closing a stale pull request + close-pr-message: > + Closing this pull request after a prolonged period of inactivity. If this issue is still present in the latest release, please ask for this pull request to be reopened. Thank you! + # PRs with these labels will never be considered stale + exempt-pr-labels: + - "Partner" + - "React Core Team" + - "Resolution: Backlog" + - "Type: Bug" + - "Type: Discussion" + - "Type: Needs Investigation" + - "Type: Regression" + - "Type: Feature Request" \ No newline at end of file From 811512a80efefd57edbb2d706e94282d85331490 Mon Sep 17 00:00:00 2001 From: Jack Pope Date: Mon, 1 Apr 2024 14:21:04 -0400 Subject: [PATCH 2/2] Use comma separated list for exempt labels based on docs examples --- .github/workflows/stale.yml | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 347700f76bc96..f7cbd078a46a9 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -30,15 +30,7 @@ jobs: close-issue-message: > Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you! # Issues with these labels will never be considered stale - exempt-issue-labels: - - "Partner" - - "React Core Team" - - "Resolution: Backlog" - - "Type: Bug" - - "Type: Discussion" - - "Type: Needs Investigation" - - "Type: Regression" - - "Type: Feature Request" + exempt-issue-labels: "Partner,React Core Team,Resolution: Backlog,Type: Bug,Type: Discussion,Type: Needs Investigation,Type: Regression,Type: Feature Request" # --- PRs --- stale-pr-label: "Resolution: Stale" @@ -51,12 +43,4 @@ jobs: close-pr-message: > Closing this pull request after a prolonged period of inactivity. If this issue is still present in the latest release, please ask for this pull request to be reopened. Thank you! # PRs with these labels will never be considered stale - exempt-pr-labels: - - "Partner" - - "React Core Team" - - "Resolution: Backlog" - - "Type: Bug" - - "Type: Discussion" - - "Type: Needs Investigation" - - "Type: Regression" - - "Type: Feature Request" \ No newline at end of file + exempt-pr-labels: "Partner,React Core Team,Resolution: Backlog,Type: Bug,Type: Discussion,Type: Needs Investigation,Type: Regression,Type: Feature Request" \ No newline at end of file