Commit ec90a2e018
Unregistered key
Layout: unified · split
.github/workflows/ticket-check.yml +12 −6
| @@ -1,13 +1,19 @@ | ||
| 1 | # Validates that newly opened issues contain enough info | |
| 2 | name: 🎫 Ticket Compliance | |
| 1 | # Checks newly opened issues contain enough info, and follow the required format | |
| 2 | name: 🎫 Issue Validator | |
| 3 | 3 | on: |
| 4 | 4 | issues: |
| 5 | 5 | types: [opened] |
| 6 | 6 | jobs: |
| 7 | issue-check: | |
| 7 | check-title: | |
| 8 | 8 | runs-on: ubuntu-latest |
| 9 | permissions: write-all | |
| 9 | 10 | steps: |
| 10 | - uses: wow-actions/needs-more-info@v1.0.5 | |
| 11 | - name: Default | |
| 12 | if: "endsWith(github.event.issue.title, '<title>')" | |
| 13 | uses: peter-evans/create-or-update-comment@v2 | |
| 11 | 14 | with: |
| 12 | GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | |
| 13 | CONFIG_FILE: .github/workflows/config/ticket-check-config.yml | |
| 15 | token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | |
| 16 | issue-number: ${{ github.event.number }} | |
| 17 | body: | | |
| 18 | Hello ${{ github.event.actor }} :wave: | |
| 19 | Please ensure that your ticket has an appropriate title | |