Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Commit

Permalink
add workflows for stale, resolved, need attention issues (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
blackchoey authored Nov 11, 2019
1 parent 10ae5a3 commit 460a0df
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/close-resolved-issues.yml
Original file line number Diff line number Diff line change
@@ -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
21 changes: 21 additions & 0 deletions .github/workflows/need-attention-issues.yml
Original file line number Diff line number Diff line change
@@ -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
22 changes: 22 additions & 0 deletions .github/workflows/stale-issues.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 460a0df

Please sign in to comment.