From 40a6c69f1abc47864f96bffb325d3effc2f9ba44 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Fri, 7 Feb 2025 13:44:26 +0000 Subject: [PATCH] Close stale PRs after 180 days (#29212) * Close stale PRs after 180 days Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update triage-stale.yml --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- .../workflows/triage-stale-flaky-tests.yml | 21 --------------- .github/workflows/triage-stale.yml | 27 +++++++++++++++++++ 2 files changed, 27 insertions(+), 21 deletions(-) delete mode 100644 .github/workflows/triage-stale-flaky-tests.yml create mode 100644 .github/workflows/triage-stale.yml diff --git a/.github/workflows/triage-stale-flaky-tests.yml b/.github/workflows/triage-stale-flaky-tests.yml deleted file mode 100644 index 3d3bcb0b13..0000000000 --- a/.github/workflows/triage-stale-flaky-tests.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: Close stale flaky issues -on: - workflow_dispatch: {} - schedule: - - cron: "30 1 * * *" -permissions: {} -jobs: - close: - runs-on: ubuntu-24.04 - permissions: - actions: write - issues: write - steps: - - uses: actions/stale@v9 - with: - only-labels: "Z-Flaky-Test" - days-before-stale: 14 - days-before-close: 0 - close-issue-message: "This flaky test issue has not been updated in 14 days. It is being closed as presumed resolved." - exempt-issue-labels: "Z-Flaky-Test-Disabled" - operations-per-run: 100 diff --git a/.github/workflows/triage-stale.yml b/.github/workflows/triage-stale.yml new file mode 100644 index 0000000000..b52f4e59da --- /dev/null +++ b/.github/workflows/triage-stale.yml @@ -0,0 +1,27 @@ +name: Close stale issues & PRs +on: + workflow_dispatch: {} + schedule: + - cron: "30 1 * * *" +permissions: {} +jobs: + close: + runs-on: ubuntu-24.04 + permissions: + actions: write + issues: write + pull-requests: write + steps: + - uses: actions/stale@v9 + with: + operations-per-run: 100 + # Flaky test issue closing + only-issue-labels: "Z-Flaky-Test" + days-before-issue-stale: 14 + days-before-issue-close: 0 + close-issue-message: "This flaky test issue has not been updated in 14 days. It is being closed as presumed resolved." + exempt-issue-labels: "Z-Flaky-Test-Disabled" + # Stale PR closing + days-before-pr-stale: 180 + days-before-pr-close: 0 + close-pr-message: "This PR has been automatically closed because it has been stale for 180 days. If you wish to continue working on this PR, please ping a maintainer to reopen it."