-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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 #6527 from sigmavirus24/update-templates
Autoclose specific issue templates
- Loading branch information
Showing
3 changed files
with
39 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
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,33 @@ | ||
name: 'Autoclose Issues' | ||
|
||
on: | ||
issues: | ||
types: | ||
- labeled | ||
|
||
permissions: | ||
issues: write | ||
|
||
jobs: | ||
close_qa: | ||
if: github.event.label.name == 'actions/autoclose-qa' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- env: | ||
ISSUE_URL: ${{ github.event.issue.html_url }} | ||
run: | | ||
gh issue close $ISSUE_URL \ | ||
--comment "As described in the template, we won't be able to answer questions on this issue tracker. Please use [Stack Overflow](https://stackoverflow.com/)" \ | ||
--reason completed | ||
gh issue lock $ISSUE_URL --reason off_topic | ||
close_feature_request: | ||
if: github.event.label.name == 'actions/autoclose-feat' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- env: | ||
ISSUE_URL: ${{ github.event.issue.html_url }} | ||
run: | | ||
gh issue close $ISSUE_URL \ | ||
--comment "As described in the template, Requests is not accepting feature requests" \ | ||
--reason "not planned" | ||
gh issue lock $ISSUE_URL --reason off_topic |