From 7d2fc83abe60a436e0dc7ac2655ace47bffd3366 Mon Sep 17 00:00:00 2001 From: PrometheusBot Date: Sun, 1 Sep 2024 20:23:24 +0200 Subject: [PATCH] Synchronize common files from prometheus/prometheus (#1601) --- .github/workflows/stale.yml | 32 +++++++++++++++++++++----------- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 17c03b9e..d71bcbc9 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -1,21 +1,31 @@ -name: 'Close stale issues and PRs' +name: Stale Check on: + workflow_dispatch: {} schedule: - - cron: '30 1 * * *' - + - cron: '16 22 * * *' permissions: issues: write pull-requests: write - jobs: stale: + if: github.repository_owner == 'prometheus' || github.repository_owner == 'prometheus-community' # Don't run this workflow on forks. runs-on: ubuntu-latest steps: - - uses: actions/stale@v9 + - uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0 with: - stale-issue-message: 'This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.' - exempt-issue-labels: 'lifecycle/frozen' - days-before-stale: 90 - days-before-close: 30 - enable-statistics: false - operations-per-run: 500 + repo-token: ${{ secrets.GITHUB_TOKEN }} + # opt out of defaults to avoid marking issues as stale and closing them + # https://github.com/actions/stale#days-before-close + # https://github.com/actions/stale#days-before-stale + days-before-stale: -1 + days-before-close: -1 + # Setting it to empty string to skip comments. + # https://github.com/actions/stale#stale-pr-message + # https://github.com/actions/stale#stale-issue-message + stale-pr-message: '' + stale-issue-message: '' + operations-per-run: 30 + # override days-before-stale, for only marking the pull requests as stale + days-before-pr-stale: 60 + stale-pr-label: stale + exempt-pr-labels: keepalive