From f16cd370606a33e557b6ad1e5e7fa0780d60106e Mon Sep 17 00:00:00 2001 From: Dawid Rogaczewski <20227477+daroga0002@users.noreply.github.com> Date: Tue, 2 Nov 2021 14:03:11 +0100 Subject: [PATCH] chore: Migrate from the stalebot app to GitHub Action (#1665) --- .github/stale.yml | 35 ---------------------------- .github/workflows/stale-actions.yaml | 32 +++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 35 deletions(-) delete mode 100644 .github/stale.yml create mode 100644 .github/workflows/stale-actions.yaml diff --git a/.github/stale.yml b/.github/stale.yml deleted file mode 100644 index f97e689..0000000 --- a/.github/stale.yml +++ /dev/null @@ -1,35 +0,0 @@ ---- -# Number of days of inactivity before an issue becomes stale -daysUntilStale: 30 - -# Number of days of inactivity before an stale issue is closed -daysUntilClose: 7 - -# Label to use when marking an issue as stale -staleLabel: stale - -issues: - # Comment to post when marking an issue as stale. - 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. - closeComment: > - This issue has been automatically closed because it has not had recent - activity since being marked as stale. -pulls: - # Comment to post when marking a PR as stale. - markComment: > - This PR 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. - - To track this PR (even if closed), please open a corresponding issue if one - does not already exist. - # Comment to post when closing a stale PR. - closeComment: > - This PR has been automatically closed because it has not had recent - activity since being marked as stale. - - Please reopen when work resumes. diff --git a/.github/workflows/stale-actions.yaml b/.github/workflows/stale-actions.yaml new file mode 100644 index 0000000..93c90df --- /dev/null +++ b/.github/workflows/stale-actions.yaml @@ -0,0 +1,32 @@ +name: "Mark or close stale issues and PRs" +on: + schedule: + - cron: "0 0 * * *" + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v4 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + # Staling issues and PR's + days-before-stale: 30 + stale-issue-label: stale + stale-pr-label: stale + stale-issue-message: | + This issue has been automatically marked as stale because it has been open 30 days + with no activity. Remove stale label or comment or this issue will be closed in 10 days + stale-pr-message: | + This PR has been automatically marked as stale because it has been open 30 days + with no activity. Remove stale label or comment or this PR will be closed in 10 days + # Not stale if have this labels or part of milestone + exempt-issue-labels: bug,wip,on-hold + exempt-pr-labels: bug,wip,on-hold + exempt-all-milestones: true + # Close issue operations + # Label will be automatically removed if the issues are no longer closed nor locked. + days-before-close: 10 + delete-branch: true + close-issue-message: This issue was automatically closed because of stale in 10 days + close-pr-message: This PR was automatically closed because of stale in 10 days \ No newline at end of file