-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Add policy to close empty issues #11213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
@@ -1,14 +1,84 @@ | ||
name: Close issues | ||
description: Close issues based on label. | ||
description: Close issues based on label | ||
resource: repository | ||
where: | ||
configuration: | ||
resourceManagementConfiguration: | ||
eventResponderTasks: | ||
scheduledSearches: | ||
- frequencies: | ||
- daily: | ||
time: 12:00 | ||
filters: | ||
- isIssue | ||
- isOpen | ||
- hasLabel: | ||
label: needs-more-info | ||
- noActivitySince: | ||
days: 14 | ||
actions: | ||
- addReply: | ||
reply: This issue has been automatically closed due to no response from the original author. Feel free to reopen it if you have more information that can help us investigate the issue further. | ||
- closeIssue | ||
|
||
eventResponderTasks: | ||
- description: Remove needs-more-info label when author comments on issue | ||
if: | ||
- payloadType: Issue_Comment | ||
- isAction: | ||
action: Created | ||
- isActivitySender: | ||
issueAuthor: True | ||
- hasLabel: | ||
label: needs-more-info | ||
- isOpen | ||
then: | ||
- removeLabel: | ||
label: needs-more-info | ||
triggerOnOwnActions: true | ||
|
||
- description: Close issues labeled 'code-of-conduct' | ||
if: | ||
- payloadType: Issues | ||
- hasLabel: | ||
label: code-of-conduct | ||
then: | ||
- closeIssue | ||
|
||
- description: Close learn template issues with empty descriptions. (spam) | ||
if: | ||
- payloadType: Issues | ||
- bodyContains: | ||
or: | ||
- pattern: '### Description[\n\r]+\[Enter feedback here\][\n\r]+###' | ||
isRegex: true | ||
- pattern: '### Description[\n\r]+\[Escriba sus comentarios aquí][\n\r]+###' | ||
isRegex: true | ||
- pattern: '### Description[\n\r]+\[Tapez vos commentaires ici][\n\r]+###' | ||
isRegex: true | ||
- pattern: '### Description[\n\r]+\[Hier Feedback eingeben][\n\r]+###' | ||
isRegex: true | ||
- pattern: '### Description[\n\r]+\[Geri bildiriminizi buraya girin][\n\r]+###' | ||
isRegex: true | ||
- pattern: '### Description[\n\r]+\[Ketikkan umpan balik di sini][\n\r]+###' | ||
isRegex: true | ||
- pattern: '### Description[\n\r]+\[Immetti qui i commenti][\n\r]+###' | ||
isRegex: true | ||
- pattern: '### Description[\n\r]+\[Voer hier feedback in][\n\r]+###' | ||
isRegex: true | ||
- pattern: '### Description[\n\r]+\[Insira comentários aqui][\n\r]+###' | ||
isRegex: true | ||
- pattern: '### Description[\n\r]+\[Введите отзыв здесь][\n\r]+###' | ||
isRegex: true | ||
- pattern: '### Description[\n\r]+\[اكتب ملاحظاتك هنا][\n\r]+###' | ||
isRegex: true | ||
- pattern: '### Description[\n\r]+\[在此处输入反馈][\n\r]+###' | ||
isRegex: true | ||
- pattern: '### Description[\n\r]+\[여기에 피드백 입력][\n\r]+###' | ||
isRegex: true | ||
- pattern: '### Description[\n\r]+\[フィードバックをこちらに入力してください][\n\r]+###' | ||
isRegex: true | ||
then: | ||
- addLabel: 'needs-more-info' | ||
- addReply: | ||
reply: This issue has been automatically closed due to an empty issue description from the original author. Feel free to reopen it if you have more information that can help us investigate the issue further. | ||
- closeIssue |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.