diff --git a/.github/stale.yml b/.github/stale.yml deleted file mode 100644 index 2e4106314..000000000 --- a/.github/stale.yml +++ /dev/null @@ -1,35 +0,0 @@ -# Configuration for https://github.com/marketplace/stale - -# Number of days of inactivity before an Issue or Pull Request becomes stale -daysUntilStale: 365 - -# Number of days of inactivity before an Issue or Pull Request with the stale label is closed. -# Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale. -# When changing this value, be sure to also update markComment below. -daysUntilClose: 30 - -# Ignore issues with an assignee (defaults to false) -exemptAssignees: true - -# Label to use when marking as stale -staleLabel: needs-update - -# Comment to post when marking as stale. Set to `false` to disable -markComment: > - We've made a lot of changes to Certbot since this issue was opened. If you - still have this issue with an up-to-date version of Certbot, can you please - add a comment letting us know? This helps us to better see what issues are - still affecting our users. If there is no activity in the next 30 days, this - issue will be automatically closed. - -# Comment to post when closing a stale Issue or Pull Request. -closeComment: > - This issue has been closed due to lack of activity, but if you think it - should be reopened, please open a new issue with a link to this one and we'll - take a look. - -# Limit the number of actions per hour, from 1-30. Default is 30 -limitPerRun: 1 - -# Don't mark pull requests as stale. -only: issues diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 000000000..010259922 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,42 @@ +name: Update Stale Issues +on: + schedule: + # Run at midnight every night + - cron: '24 1 * * *' +permissions: + issues: write +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v6 + with: + # REMOVEME: dry run to see if this works + debug-only: true + + # Idle number of days before marking issues stale + days-before-issue-stale: 365 + + # Idle number of days before closing stale issues + days-before-issue-close: 30 + + # Ignore issues with an assignee + exempt-all-issue-assignees: true + + # Label to use when marking as stale + stale-issue-label: needs-update + + stale-issue-message: > + We've made a lot of changes to Certbot since this issue was opened. If you + still have this issue with an up-to-date version of Certbot, can you please + add a comment letting us know? This helps us to better see what issues are + still affecting our users. If there is no activity in the next 30 days, this + issue will be automatically closed. + + close-issue-message: > + This issue has been closed due to lack of activity, but if you think it + should be reopened, please open a new issue with a link to this one and we'll + take a look. + + # Limit the number of actions per hour, from 1-30. Default is 30 + operations-per-run: 1