From 6a1868fb7435a49399bd1379d538b88d94e5020b Mon Sep 17 00:00:00 2001 From: Mike Wendt <1915404+mike-wendt@users.noreply.github.com> Date: Sun, 14 Mar 2021 14:53:09 -0400 Subject: [PATCH] ENH Fix stale GHA and prevent duplicates (#7594) - Updates the stale GHA to enable more operations per run to account for the large number of issues in this repo - Prevents `inactive-30d` labels from being applied to issues/PRs that have a `inactive-90d` label Authors: - Mike Wendt (@mike-wendt) Approvers: - Ray Douglass (@raydouglass) URL: https://github.com/rapidsai/cudf/pull/7594 --- .github/workflows/stale.yaml | 44 ++++++++++++++++++------------------ 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/.github/workflows/stale.yaml b/.github/workflows/stale.yaml index 741e159fbd8..9ffe2b1ec8c 100644 --- a/.github/workflows/stale.yaml +++ b/.github/workflows/stale.yaml @@ -5,53 +5,53 @@ on: - cron: "0 * * * *" jobs: - mark-inactive-30d: + mark-inactive-90d: runs-on: ubuntu-latest steps: - - name: Mark 30 day inactive issues + - name: Mark 90 day inactive issues uses: actions/stale@v3 with: repo-token: ${{ secrets.GITHUB_TOKEN }} stale-issue-message: > - This issue has been labeled `inactive-30d` due to no recent activity in the past 30 days. + This issue has been labeled `inactive-90d` due to no recent activity in the past 90 days. Please close this issue if no further response or action is needed. Otherwise, please respond with a comment indicating any updates or changes to the original issue and/or confirm this issue still needs to be addressed. - This issue will be labeled `inactive-90d` if there is no activity in the next 60 days. - stale-issue-label: "inactive-30d" + stale-issue-label: "inactive-90d" exempt-issue-labels: "0 - Blocked,0 - Backlog,good first issue" - days-before-issue-stale: 30 + days-before-issue-stale: 90 days-before-issue-close: -1 stale-pr-message: > - This PR has been labeled `inactive-30d` due to no recent activity in the past 30 days. + This PR has been labeled `inactive-90d` due to no recent activity in the past 90 days. Please close this PR if it is no longer required. Otherwise, please respond with a comment indicating any updates. - This PR will be labeled `inactive-90d` if there is no activity in the next 60 days. - stale-pr-label: "inactive-30d" + stale-pr-label: "inactive-90d" exempt-pr-labels: "0 - Blocked,0 - Backlog,good first issue" - days-before-pr-stale: 30 + days-before-pr-stale: 90 days-before-pr-close: -1 - operations-per-run: 50 - mark-inactive-90d: + operations-per-run: 1000 + mark-inactive-30d: runs-on: ubuntu-latest steps: - - name: Mark 90 day inactive issues + - name: Mark 30 day inactive issues uses: actions/stale@v3 with: repo-token: ${{ secrets.GITHUB_TOKEN }} stale-issue-message: > - This issue has been labeled `inactive-90d` due to no recent activity in the past 90 days. + This issue has been labeled `inactive-30d` due to no recent activity in the past 30 days. Please close this issue if no further response or action is needed. Otherwise, please respond with a comment indicating any updates or changes to the original issue and/or confirm this issue still needs to be addressed. - stale-issue-label: "inactive-90d" - exempt-issue-labels: "0 - Blocked,0 - Backlog,good first issue" - days-before-issue-stale: 90 + This issue will be labeled `inactive-90d` if there is no activity in the next 60 days. + stale-issue-label: "inactive-30d" + exempt-issue-labels: "0 - Blocked,0 - Backlog,good first issue,inactive-90d" + days-before-issue-stale: 30 days-before-issue-close: -1 stale-pr-message: > - This PR has been labeled `inactive-90d` due to no recent activity in the past 90 days. + This PR has been labeled `inactive-30d` due to no recent activity in the past 30 days. Please close this PR if it is no longer required. Otherwise, please respond with a comment indicating any updates. - stale-pr-label: "inactive-90d" - exempt-pr-labels: "0 - Blocked,0 - Backlog,good first issue" - days-before-pr-stale: 90 + This PR will be labeled `inactive-90d` if there is no activity in the next 60 days. + stale-pr-label: "inactive-30d" + exempt-pr-labels: "0 - Blocked,0 - Backlog,good first issue,inactive-90d" + days-before-pr-stale: 30 days-before-pr-close: -1 - operations-per-run: 50 + operations-per-run: 1000