forked from YOURLS/YOURLS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
29 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,4 @@ | ||
Hey @{{ sender.login }}, thanks for opening an issue! | ||
|
||
Unfortunately, it seems you are missing information from the [issue template](/.github/ISSUE_TEMPLATE.md). | ||
Please provide all nexxessary information as described in our [contribution guidelines](/.github/CONTRIBUTING.md). |
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 @@ | ||
/** | ||
* Enforce Issue Template review | ||
*/ | ||
on('issues.opened') | ||
.filter(context => !context.issue.body.match(/### Reproducible bug summary/) | ||
|| context.issue.body.includes('- [ ]')) | ||
.comment(contents('.github/MISSING_ISSUE_TEMPLATE_AUTOREPLY.md')) | ||
.label('insufficient-info'); | ||
|
||
/** | ||
* Minimize comment length | ||
*/ | ||
on('issue_comment.created') | ||
.filter(context => context.payload.comment.body | ||
.trim() | ||
.replace(/\s+/gi, ' ') | ||
.split(' ') | ||
.length > 200 | ||
) | ||
.comment(` | ||
Thanks for your comment, @{{ sender.login }}! | ||
Your reply is very long, and even if for me it takes less than a second to | ||
read it, summarizing it a bit will help old-fashioned humans. :smiley: | ||
`); |