Added "Label Issues" action

- Added label_issues.yml to label issues with the correct MC version
- Refactored manage_issues.yml to close_issues.yml
This commit is contained in:
Cael Warner 2021-12-15 11:24:05 -08:00
parent a83618ef24
commit de77ac9f49
No known key found for this signature in database
GPG key ID: F70FD7559CCDFC48
3 changed files with 26 additions and 2 deletions

10
.github/config/labels.yml vendored Normal file
View file

@ -0,0 +1,10 @@
1.14:
- "1.14"
1.15:
- "1.15"
1.16:
- "1.16"
1.17:
- "1.17"
1.18:
- "1.18"

View file

@ -1,10 +1,11 @@
name: "Manage Issues"
name: "Close Issues"
on:
schedule:
- cron: '0 */12 * * *'
workflow_dispatch:
jobs:
stale:
close:
runs-on: ubuntu-latest
permissions:
issues: write

13
.github/workflows/label_issues.yml vendored Normal file
View file

@ -0,0 +1,13 @@
name: "Label Issues"
on:
issues:
types: [opened, edited]
jobs:
label:
runs-on: ubuntu-latest
steps:
- uses: github/issue-labeler@v2.0
with:
configuration-path: .github/config/labels.yml
repo-token: ${{ secrets.GITHUB_TOKEN }}