This commit is contained in:
EricZhou 2020-06-24 16:20:12 +08:00
parent 834cfa2c78
commit eac6d1bdb9
3 changed files with 40 additions and 0 deletions

6
.github/labeler.yml vendored Normal file
View File

@ -0,0 +1,6 @@
# Add/remove 'critical' label if issue contains the words 'urgent' or 'critical'
HasGormPlaygroundTestCase:
- '(github.com/go-gorm/playground/pull/\d)'
NoTestCase:
- '(change this to your link)'

15
.github/workflows/issue.yml vendored Normal file
View File

@ -0,0 +1,15 @@
name: "Issue-Labeler"
on:
issues:
types: [opened, edited]
jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: github/issue-labeler@v2.0
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: ".github/labeler.yml"
not-before: "2020-01-15T02:54:32Z"
enable-versioned-regex: 0

19
.github/workflows/issue_stale.yml vendored Normal file
View File

@ -0,0 +1,19 @@
name: Issue cleanup
on:
schedule:
- cron: '0 1 * * *' # At 01:00, everyday
jobs:
triage_issues:
name: Issue triage
runs-on: ubuntu-latest
steps:
- name: Find old issues and mark them stale
uses: Krizzu/issue-triage-action@v1.0.0
with:
ghToken: ${{ secrets.GITHUB_TOKEN }}
staleAfter: 7
closeAfter: 14
staleLabel: "STALE 📺"
staleComment: "This issue is %DAYS_OLD% days old, marking as stale! cc: @%AUTHOR%"
closeComment: "Issue last updated %DAYS_OLD% days ago! Closing down!"
showLogs: true