-
-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add automatically closing github bot if the issue template is not res…
…pected
- Loading branch information
Showing
2 changed files
with
28 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
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,25 @@ | ||
name: Bug Report Triage | ||
|
||
on: | ||
issues: | ||
types: [opened] | ||
|
||
jobs: | ||
closeTemplateViolation: | ||
name: Close bug reports that violate the issue template | ||
runs-on: ubuntu-latest | ||
steps: | ||
- if: | | ||
contains(github.event.issue.labels.*.name, 'type:bug') | ||
&& ( | ||
!contains(github.event.issue.body, '<!-- oooooo -->') | ||
|| !contains(github.event.issue.body, '### Description') | ||
) | ||
name: Close Issue | ||
uses: peter-evans/close-issue@v1 | ||
with: | ||
comment: | | ||
This bug report did ignore our issue template. 😞 | ||
Auto-closing this issue, since it is most likely not useful. | ||
_This decision was made by a bot. If you think the bot is wrong, let us know and we'll reopen this issue._ |