diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 000000000..e946b083b --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,33 @@ + +name: Stale bot +on: + schedule: + - cron: '0 3 * * *' + +jobs: + stale: + runs-on: ubuntu-latest + name: Run stale action + + steps: + + - uses: actions/stale@v3.0.18 + name: Close stale issues + with: + days_before_stale: 45 + stale-issue-message: < + This issue was not updated for 45 days. + It is therefore marked as stale. + When no update occurs within the next 7 days, this issue will be closed automatically in the next 7 days. + stale-pr-message: < + This pull request was not updated for 45 days. + It is therefore marked as stale. + When no update occurs within the next 7 days, this pull request will be closed automatically in the next 7 days. + close-issue-message: < + This issue was not updated since it was marked as stale. + It will be closed now. + close-pr-message: < + This pull request was not updated since it was marked as stale. + It will be closed now. + stale-issue-label: 'stale' + only-labels: 'stalebot-enabled' diff --git a/CHANGELOG.md b/CHANGELOG.md index e318941b7..6a6425bf1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,8 @@ [#698](https://github.com/nextcloud/cookbook/pull/698) @christianlupus - Codebase maintenance [#699](https://github.com/nextcloud/cookbook/pull/699) @christianlupus +- Enable stalebot + [#700](https://github.com/nextcloud/cookbook/pull/700) @christianlupus ## 0.8.4 - 2021-03-08