From 0d1b59bde26ae38b452619e1371752d086d5d7bb Mon Sep 17 00:00:00 2001 From: sebthom Date: Mon, 11 Mar 2024 21:40:50 +0100 Subject: [PATCH] update stale config --- .github/stale.yml | 24 ---------------- .github/workflows/build.yml | 1 + .github/workflows/stale.yml | 56 +++++++++++++++++++++++++++++++++++++ 3 files changed, 57 insertions(+), 24 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 e7df9f1..0000000 --- a/.github/stale.yml +++ /dev/null @@ -1,24 +0,0 @@ -# Configuration for probot-stale - https://github.com/probot/stale - -# Number of days of inactivity before an issue becomes stale -daysUntilStale: 60 - -# Number of days of inactivity before a stale issue is closed -daysUntilClose: 7 - -# Issues with these labels will never be considered stale -exemptLabels: - - pinned - - security - -# Label to use when marking an issue as stale -staleLabel: wontfix - -# Comment to post when marking an 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 in 7 days if no further activity occurs. - Thank you for your contributions. - -# Comment to post when closing a stale issue. Set to `false` to disable -closeComment: false diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d55e437..081c44f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,6 +14,7 @@ on: - '**' paths-ignore: - '**/*.md' + - '.github/workflows/stale.yml' - '.github/*.yml' schedule: # https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 0000000..d1be5a3 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,56 @@ +# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions +name: Stale issues + +on: + schedule: + - cron: '0 16 * * *' + workflow_dispatch: + # https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/ + +permissions: + issues: write + pull-requests: write + +jobs: + stale: + runs-on: ubuntu-latest + + steps: + - name: Git checkout + uses: actions/checkout@v4 # https://github.com/actions/checkout + + - name: Run stale action + uses: actions/stale@v9 # https://github.com/actions/stale + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + days-before-stale: 90 + days-before-close: 14 + stale-issue-message: > + This issue has been automatically marked as stale because it has not had + recent activity. It will be closed in 14 days if no further activity occurs. + If the issue is still valid, please add a respective comment to prevent this + issue from being closed automatically. Thank you for your contributions. + stale-issue-label: stale + close-issue-label: wontfix + exempt-issue-labels: | + enhancement + pinned + security + + - name: Run stale action (for enhancements) + uses: actions/stale@v9 # https://github.com/actions/stale + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + days-before-stale: 360 + days-before-close: 14 + stale-issue-message: > + This issue has been automatically marked as stale because it has not had + recent activity. It will be closed in 14 days if no further activity occurs. + If the issue is still valid, please add a respective comment to prevent this + issue from being closed automatically. Thank you for your contributions. + stale-issue-label: stale + close-issue-label: wontfix + only-labels: enhancement + exempt-issue-labels: | + pinned + security