diff --git a/.github/stale.yml b/.github/stale.yml deleted file mode 100644 index ebb2eaa..0000000 --- a/.github/stale.yml +++ /dev/null @@ -1,17 +0,0 @@ -# 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: - - idea - -# Label to use when marking an issue as stale -staleLabel: stale -# 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 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/stale-bot.yml b/.github/workflows/stale-bot.yml new file mode 100644 index 0000000..d23c077 --- /dev/null +++ b/.github/workflows/stale-bot.yml @@ -0,0 +1,29 @@ +name: 'Stale-Bot' +on: + schedule: + - cron: '30 1 * * *' + +# see https://github.com/actions/stale + +permissions: + contents: write + issues: write + pull-requests: write + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v7 + with: + stale-issue-label: stale + stale-pr-label: stale + stale-issue-message: 'This issue is stale because it has 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.' + stale-pr-message: 'This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.' + close-issue-message: 'This issue was closed because it has been stalled for 7 days with no activity.' + days-before-stale: 60 + days-before-close: 7 + close-issue-reason: stale + close-issue-label: stale + exempt-issue-labels: idea + exempt-pr-labels: idea