Commit 56c05a377a
Unregistered key
Layout: unified · split
.github/workflows/ticket-check.yml +24 −2
| @@ -2,13 +2,13 @@ | ||
| 2 | 2 | name: 🎫 Issue Validator |
| 3 | 3 | on: |
| 4 | 4 | issues: |
| 5 | types: [opened] | |
| 5 | types: [opened, edited] | |
| 6 | 6 | jobs: |
| 7 | 7 | check-title: |
| 8 | 8 | runs-on: ubuntu-latest |
| 9 | 9 | permissions: write-all |
| 10 | 10 | steps: |
| 11 | - name: Default | |
| 11 | - name: Check Default Title | |
| 12 | 12 | if: "endsWith(github.event.issue.title, '<title>')" |
| 13 | 13 | uses: peter-evans/create-or-update-comment@v2 |
| 14 | 14 | with: |
| @@ -16,3 +16,25 @@ jobs: | ||
| 16 | 16 | issue-number: ${{ github.event.issue.number }} |
| 17 | 17 | body: | |
| 18 | 18 | Please ensure that your ticket has an appropriate title |
| 19 | - name: Check Title Contains Categroy | |
| 20 | if: "!(startsWith(github.event.issue.title, '[') && contains(github.event.issue.title, ']'))" | |
| 21 | uses: peter-evans/create-or-update-comment@v2 | |
| 22 | with: | |
| 23 | token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | |
| 24 | issue-number: ${{ github.event.issue.number }} | |
| 25 | body: | | |
| 26 | Please ensure that your ticket's title is preceded with a category. | |
| 27 | For example, `[ADDITION]`, `[AMENDMENT]`, `[REMOVAL]` or `[QUESTION]`. | |
| 28 | - name: Check Quality Checklist | |
| 29 | if: "contains(github.event.issue.body, '[ ]') || !(contains(github.event.issue.body, '[X]') || contains(github.event.issue.body, '[x]'))" | |
| 30 | uses: peter-evans/create-or-update-comment@v2 | |
| 31 | with: | |
| 32 | token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | |
| 33 | issue-number: ${{ github.event.issue.number }} | |
| 34 | body: | | |
| 35 | Please ensure that you've followed the issue template fully. | |
| 36 | It's important that you complete the quality & transparency checklist. | |
| 37 | ||
| 38 | ||
| 39 | ||
| 40 | ||