Commit 56c05a377a

56c05a377a887fe6fcba42fa7c9d51e129658970

parent: bb37c19030

Unregistered key

Alicia Sykes <alicia@omg.lol> · 2022-07-31 16:39 UTC
committer: <noreply@github.com>

Adds check for issue categrory and checklist

Layout: unified · split

.github/workflows/ticket-check.yml +24 −2
@@ -2,13 +2,13 @@
22name: 🎫 Issue Validator
33on:
44 issues:
5 types: [opened]
5 types: [opened, edited]
66jobs:
77 check-title:
88 runs-on: ubuntu-latest
99 permissions: write-all
1010 steps:
11 - name: Default
11 - name: Check Default Title
1212 if: "endsWith(github.event.issue.title, '<title>')"
1313 uses: peter-evans/create-or-update-comment@v2
1414 with:
@@ -16,3 +16,25 @@ jobs:
1616 issue-number: ${{ github.event.issue.number }}
1717 body: |
1818 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