-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #432 from anupama-pathirage/addReasonCheck
Add reason check workflow
- Loading branch information
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 }} |