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 | 1 | # Checks newly opened issues contain enough info, and follow the required format |
| 2 | name: 🎫 Ticket Compliance | 2 | name: 🎫 Issue Validator |
| 3 | on: | 3 | on: |
| 4 | issues: | 4 | issues: |
| 5 | types: [opened] | 5 | types: [opened] |
| 6 | jobs: | 6 | jobs: |
| 7 | issue-check: | 7 | check-title: |
| 8 | runs-on: ubuntu-latest | 8 | runs-on: ubuntu-latest |
| 9 | permissions: write-all | ||
| 9 | steps: | 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 | with: | 14 | with: |
| 12 | GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | 15 | token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} |
| 13 | CONFIG_FILE: .github/workflows/config/ticket-check-config.yml | 16 | issue-number: ${{ github.event.number }} |
| 17 | body: | | ||
| 18 | Hello ${{ github.event.actor }} :wave: | ||
| 19 | Please ensure that your ticket has an appropriate title | ||