diff options
author | Matthias Beyer <matthias.beyer@ifm.com> | 2022-07-08 12:41:19 +0200 |
---|---|---|
committer | Matthias Beyer <matthias.beyer@ifm.com> | 2022-08-08 07:56:41 +0200 |
commit | ef7303dee39719c8ea99a8671c7f8499da9f26d2 (patch) | |
tree | e9dea7438c794db4bb9df68d6446be27d6903aa7 | |
parent | fd178124731a39aac6384be65218a33e4e137480 (diff) |
Add configuration for stale issue/PR checkgh-action/stale
Closing issues that are stale does not make them go away.
That's why closing issues is set to -1, so that the bot does not close
them, but only comments that there hasn't been any activity, to maybe
get contributors to have a look again.
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
-rw-r--r-- | .github/workflows/stale.yml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 00000000..84a0132e --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,19 @@ +name: 'Close stale issues and PRs' +on: + schedule: + - cron: '30 1 * * *' + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v5 + with: + stale-issue-message: 'This issue has been open for 30 days with no activity.' + stale-pr-message: 'This PR has been open for 45 days with no activity. Remove stale label or comment, otherwise this will be closed in 5 days.' + stale-issue-label: 'stale-issue' + stale-pr-label: 'stale-pr' + days-before-issue-stale: 30 + days-before-pr-stale: 45 + days-before-issue-close: -1 + days-before-pr-close: 5 |