-
Notifications
You must be signed in to change notification settings - Fork 752
19 lines (19 loc) · 1.64 KB
/
add_reason_labels.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
on:
issues:
types: [closed]
jobs:
check-resolution-label:
runs-on: ubuntu-latest
if:
${{ contains(github.event.issue.labels.*.name, 'Type/Bug') && !(contains(github.event.issue.labels.*.name, 'Reason/EngineeringMistake') ||
contains(github.event.issue.labels.*.name, 'Reason/Complex') ||
contains(github.event.issue.labels.*.name, 'Reason/Regression') ||
contains(github.event.issue.labels.*.name, 'Reason/Other') ||
contains(github.event.issue.labels.*.name, 'Reason/Invalid') ||
contains(github.event.issue.labels.*.name, 'Reason/MultipleComponentInteraction')) }}
steps:
- run: echo Resolution label is not set
- run: gh issue comment $ISSUE --body "This issue is **NOT** closed with a proper **Reason/** label. Make sure to add proper reason label before closing. Please add or leave a comment with the proper reason label now.<br /><br /> - **Reason/EngineeringMistake** - The issue occurred due to a mistake made in the past.<br /> - **Reason/Regression** - The issue has introduced a regression.<br /> - **Reason/MultipleComponentInteraction** - Issue occured due to interactions in multiple components.<br /> - **Reason/Complex** - Issue occurred due to complex scenario.<br /> - **Reason/Invalid** - Issue is invalid.<br /> - **Reason/Other** - None of the above cases."
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ISSUE: ${{ github.event.issue.html_url }}