From 460a0df1401630cb5bc374730c297f28a2bbdc72 Mon Sep 17 00:00:00 2001 From: Chaoyi Yuan Date: Mon, 11 Nov 2019 12:57:48 +0800 Subject: [PATCH] add workflows for stale, resolved, need attention issues (#3) --- .github/workflows/close-resolved-issues.yml | 22 +++++++++++++++++++++ .github/workflows/need-attention-issues.yml | 21 ++++++++++++++++++++ .github/workflows/stale-issues.yml | 22 +++++++++++++++++++++ 3 files changed, 65 insertions(+) create mode 100644 .github/workflows/close-resolved-issues.yml create mode 100644 .github/workflows/need-attention-issues.yml create mode 100644 .github/workflows/stale-issues.yml diff --git a/.github/workflows/close-resolved-issues.yml b/.github/workflows/close-resolved-issues.yml new file mode 100644 index 0000000..8128bbc --- /dev/null +++ b/.github/workflows/close-resolved-issues.yml @@ -0,0 +1,22 @@ +name: Close resolved issues + +on: + schedule: + - cron: "0 * * * *" + +jobs: + stale: + + runs-on: ubuntu-latest + + steps: + - uses: blackchoey/stale@releases/v1.2 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-issue-message: 'This issue has been resolved and it will be closed if no further activity occurs within 3 days. Thank you for your contributions.' + stale-issue-label: 'pending close' + days-before-stale: 7 + only-labels: 'resolved' + last-updated-user-type: 'collaborator' + days-before-close: 3 + operations-per-run: 150 diff --git a/.github/workflows/need-attention-issues.yml b/.github/workflows/need-attention-issues.yml new file mode 100644 index 0000000..7bc0e4f --- /dev/null +++ b/.github/workflows/need-attention-issues.yml @@ -0,0 +1,21 @@ +name: Pickup issues that needs attention + +on: + schedule: + - cron: "0 * * * *" + +jobs: + stale: + + runs-on: ubuntu-latest + + steps: + - uses: blackchoey/stale@releases/v1.2 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-issue-message: 'This issue has no recent activities, please take a look and provide updates for it.' + stale-issue-label: 'need attention' + days-before-stale: 3 + last-updated-user-type: 'non-collaborator' + days-before-close: 999 + operations-per-run: 150 diff --git a/.github/workflows/stale-issues.yml b/.github/workflows/stale-issues.yml new file mode 100644 index 0000000..1787d9e --- /dev/null +++ b/.github/workflows/stale-issues.yml @@ -0,0 +1,22 @@ +name: Mark stale issues and close them + +on: + schedule: + - cron: "0 * * * *" + +jobs: + stale: + + runs-on: ubuntu-latest + + steps: + - uses: blackchoey/stale@releases/v1.2 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-issue-message: 'This issue has been automatically marked as stale because it has no recent activities. It will be closed if no further activity occurs within 3 days. Thank you for your contributions.' + stale-issue-label: 'stale' + days-before-stale: 7 + only-labels: 'need more info' + last-updated-user-type: 'collaborator' + days-before-close: 3 + operations-per-run: 150