-
Notifications
You must be signed in to change notification settings - Fork 8
26 lines (26 loc) · 2 KB
/
resolution_label_notifier.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
on:
issues:
types: [closed]
jobs:
check-resolution-label:
runs-on: ubuntu-latest
permissions:
issues: write
if:
${{!(
contains(github.event.issue.labels.*.name, 'Resolution/Cannot Reproduce') ||
contains(github.event.issue.labels.*.name, 'Resolution/Duplicate') ||
contains(github.event.issue.labels.*.name, 'Resolution/Fixed') ||
contains(github.event.issue.labels.*.name, 'Resolution/Answered') ||
contains(github.event.issue.labels.*.name, 'Resolution/Invalid') ||
contains(github.event.issue.labels.*.name, 'Resolution/Not a bug') ||
contains(github.event.issue.labels.*.name, 'Resolution/Postponed') ||
contains(github.event.issue.labels.*.name, 'Resolution/Won’t Fix') ||
contains(github.event.issue.labels.*.name, 'Resolution/Done)
)}}
steps:
- run: gh issue comment $ISSUE --body "This issue is **NOT** closed with a proper **Resolution/** label. Make sure to add proper reason label before closing. Please add or leave a comment with the proper reason label now.<br /><br /> - **Resolution/Answered** - Issue is answered.<br /> - **Resolution/Cannot Reproduce** - Issue cannot be reproduced.<br /> - **Resolution/Done** - Issue is done.<br /> - **Resolution/Duplicate** - Issue is already reported before.<br /> - **Resolution/Fixed** - Issue is fixed.<br /> - **Resolution/Invalid** - Issue is invalid.<br /> - **Resolution/Not a bug** - Issue is not a bug.<br /> - **Resolution/Postponed** - Issue is postponed.<br /> - **Resolution/Won’t Fix** - Issue won't be fixed."
- run: gh issue reopen $ISSUE
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ISSUE: ${{ github.event.issue.html_url }}