diff --git a/.github/stale.yml b/.github/stale.yml deleted file mode 100644 index 894b511a0..000000000 --- a/.github/stale.yml +++ /dev/null @@ -1,45 +0,0 @@ -# Configuration for probot-stale - https://github.com/probot/stale - -limitPerRun: 30 - -pulls: - daysUntilStale: 14 - daysUntilClose: false - exemptProjects: true - exemptMilestones: true - staleLabel: abandoned - exemptLabels: - - needs review - - on hold - - waiting for CLA pass - - ready for merge - - markComment: > - Labeling this pull request (PR) as abandoned since it has gone 14 days or more - since the last update. An abandoned PR can be continued by another contributor. - The abandoned label will be removed if work on this PR is taken up again. - -issues: - daysUntilStale: 30 - daysUntilClose: 40 - exemptProjects: true - exemptMilestones: true - staleLabel: stale - exemptLabels: - - bug - - enhancement - - tests - - documentation - - resource proposal - - on hold - - markComment: > - This issue has been automatically marked as stale because - it has not had activity from the community in the last 30 days. It will be - closed if no further activity occurs within 10 days. If the issue is labelled - with any of the work labels (e.g bug, enhancement, documentation, or tests) - then the issue will not auto-close. - - closeComment: > - This issue has been automatically closed because it is has not had activity - from the community in the last 40 days. diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 000000000..47778410d --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,25 @@ +name: Mark stale issues and pull requests + +on: + schedule: + - cron: "30 1 * * *" + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v3 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-issue-message: 'This issue has been automatically marked as stale because it has not had activity from the community in the last 30 days. It will be closed if no further activity occurs within 40 days. If the issue is labelled with any of the work labels (e.g bug, enhancement, documentation, or tests) then the issue will not auto-close.' + close-issue-message: 'This issue has been automatically closed because it is has not had activity from the community in the last 40 days. If this issue was wrongly closed, for a issue author please comment and re-open it, if you are not the issue author comment with a reason for it to be reopened and tag a maintainer in the comment.' + days-before-issue-stale: 30 + days-before-issue-close: 40 + exempt-issue-labels: 'bug,enhancement,tests,documentation,resource proposal,on hold,resolved' + stale-issue-label: 'stale' + stale-pr-message: 'Labeling this pull request (PR) as abandoned since it has gone 14 days or more since the last update. An abandoned PR can be continued by another contributor. The abandoned label will be removed if work on this PR is taken up again.' + days-before-pr-stale: 14 + days-before-pr-close: -1 + exempt-pr-labels: 'needs review,on hold,ready for merge' + stale-pr-label: 'abandoned' + remove-stale-when-updated: true diff --git a/CHANGELOG.md b/CHANGELOG.md index f0e00b39c..481376fc4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -60,6 +60,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 hinders development and testing on macOS and Linux. Instead the resources have been update to use the helper function `Get-ComputerName` which returns the current computer name cross-plattform. + - Switch to GitHub Action Stale instead of GitHub App (Probot) Stale. ### Fixed