Adds check for issue categrory and checklist
This commit is contained in:
parent
bb37c19030
commit
56c05a377a
1 changed files with 24 additions and 2 deletions
26
.github/workflows/ticket-check.yml
vendored
26
.github/workflows/ticket-check.yml
vendored
|
@ -2,13 +2,13 @@
|
|||
name: 🎫 Issue Validator
|
||||
on:
|
||||
issues:
|
||||
types: [opened]
|
||||
types: [opened, edited]
|
||||
jobs:
|
||||
check-title:
|
||||
runs-on: ubuntu-latest
|
||||
permissions: write-all
|
||||
steps:
|
||||
- name: Default
|
||||
- name: Check Default Title
|
||||
if: "endsWith(github.event.issue.title, '<title>')"
|
||||
uses: peter-evans/create-or-update-comment@v2
|
||||
with:
|
||||
|
@ -16,3 +16,25 @@ jobs:
|
|||
issue-number: ${{ github.event.issue.number }}
|
||||
body: |
|
||||
Please ensure that your ticket has an appropriate title
|
||||
- name: Check Title Contains Categroy
|
||||
if: "!(startsWith(github.event.issue.title, '[') && contains(github.event.issue.title, ']'))"
|
||||
uses: peter-evans/create-or-update-comment@v2
|
||||
with:
|
||||
token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
||||
issue-number: ${{ github.event.issue.number }}
|
||||
body: |
|
||||
Please ensure that your ticket's title is preceded with a category.
|
||||
For example, `[ADDITION]`, `[AMENDMENT]`, `[REMOVAL]` or `[QUESTION]`.
|
||||
- name: Check Quality Checklist
|
||||
if: "contains(github.event.issue.body, '[ ]') || !(contains(github.event.issue.body, '[X]') || contains(github.event.issue.body, '[x]'))"
|
||||
uses: peter-evans/create-or-update-comment@v2
|
||||
with:
|
||||
token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
||||
issue-number: ${{ github.event.issue.number }}
|
||||
body: |
|
||||
Please ensure that you've followed the issue template fully.
|
||||
It's important that you complete the quality & transparency checklist.
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue