Debian Codegraph @

.github/workflows/close-issues.yml

raw
1 name: 'Autoclose Issues'
2
3 on:
4 issues:
5 types:
6 - labeled
7
8 permissions: {}
9
10 jobs:
11 close_qa:
12 permissions:
13 issues: write
14 if: github.event.label.name == 'actions/autoclose-qa'
15 runs-on: ubuntu-latest
16 steps:
17 - env:
18 ISSUE_URL: ${{ github.event.issue.html_url }}
19 GH_TOKEN: ${{ github.token }}
20 run: |
21 gh issue close $ISSUE_URL \
22 --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/)" \
23 --reason completed
24 gh issue lock $ISSUE_URL --reason off_topic
25 close_feature_request:
26 permissions:
27 issues: write
28 if: github.event.label.name == 'actions/autoclose-feat'
29 runs-on: ubuntu-latest
30 steps:
31 - env:
32 ISSUE_URL: ${{ github.event.issue.html_url }}
33 GH_TOKEN: ${{ github.token }}
34 run: |
35 gh issue close $ISSUE_URL \
36 --comment "As described in the template, Requests is not accepting feature requests" \
37 --reason "not planned"
38 gh issue lock $ISSUE_URL --reason off_topic