From f03929221142ec612c53ede9709d5e3beebd8a6c Mon Sep 17 00:00:00 2001 From: itsconquest Date: Tue, 7 Sep 2021 10:36:42 +1200 Subject: [PATCH] chore(project): replace stalebot with action [EE-1509] (#5515) * chore(project): replace stalebot with action [EE-1509] * add missing newline at EOF --- .github/stale.yml | 54 ------------------------------------- .github/workflows/stale.yml | 27 +++++++++++++++++++ 2 files changed, 27 insertions(+), 54 deletions(-) delete mode 100644 .github/stale.yml create mode 100644 .github/workflows/stale.yml diff --git a/.github/stale.yml b/.github/stale.yml deleted file mode 100644 index fce5d3700..000000000 --- a/.github/stale.yml +++ /dev/null @@ -1,54 +0,0 @@ -# Config for Stalebot, limited to only `issues` -only: issues - -# Issues config -issues: - daysUntilStale: 60 - daysUntilClose: 7 - - # Limit the number of actions per hour, from 1-30. Default is 30 - limitPerRun: 30 - - # Issues with these labels will never be considered stale - exemptLabels: - - kind/enhancement - - kind/question - - kind/style - - kind/workaround - - kind/refactor - - bug/need-confirmation - - bug/confirmed - - status/discuss - - # Only issues with all of these labels are checked if stale. Defaults to `[]` (disabled) - onlyLabels: [] - - # Set to true to ignore issues in a project (defaults to false) - exemptProjects: true - # Set to true to ignore issues in a milestone (defaults to false) - exemptMilestones: true - # Set to true to ignore issues with an assignee (defaults to false) - exemptAssignees: true - - # Label to use when marking an issue as stale - staleLabel: status/stale - - # Comment to post when marking an issue as stale. Set to `false` to disable - markComment: > - This issue has been marked as stale as it has not had recent activity, - it will be closed if no further activity occurs in the next 7 days. - If you believe that it has been incorrectly labelled as stale, - leave a comment and the label will be removed. - - # Comment to post when removing the stale label. - # unmarkComment: > - # Your comment here. - - # Comment to post when closing a stale issue. Set to `false` to disable - closeComment: > - Since no further activity has appeared on this issue it will be closed. - If you believe that it has been incorrectly closed, leave a comment - mentioning `ametdoohan`, `balasu` or `keverv` and one of our staff will then review the issue. - - Note - If it is an old bug report, make sure that it is reproduceable in the - latest version of Portainer as it may have already been fixed. diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 000000000..cf978446c --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,27 @@ +name: Close Stale Issues +on: + schedule: + - cron: '0 12 * * *' +jobs: + stale: + runs-on: ubuntu-latest + permissions: + issues: write + + steps: + - uses: actions/stale@v4.0.0 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + + # Issue Config + days-before-issue-stale: 60 + days-before-issue-close: 7 + stale-issue-label: 'status/stale' + exempt-all-issue-milestones: true # Do not stale issues in a milestone + exempt-issue-labels: kind/enhancement, kind/style, kind/workaround, kind/refactor, bug/need-confirmation, bug/confirmed, status/discuss + stale-issue-message: 'This issue has been marked as stale as it has not had recent activity, it will be closed if no further activity occurs in the next 7 days. If you believe that it has been incorrectly labelled as stale, leave a comment and the label will be removed.' + close-issue-message: 'Since no further activity has appeared on this issue it will be closed. If you believe that it has been incorrectly closed, leave a comment mentioning `portainer/support` and one of our staff will then review the issue. Note - If it is an old bug report, make sure that it is reproduceable in the latest version of Portainer as it may have already been fixed.' + + # Pull Request Config + days-before-pr-stale: -1 # Do not stale pull request + days-before-pr-close: -1 # Do not close pull request