From ec90a2e018a6ec43640e1ed81a9deeb2b3bf6dc7 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Sun, 31 Jul 2022 17:07:16 +0100 Subject: [PATCH] Updates issue validator --- .github/workflows/ticket-check.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ticket-check.yml b/.github/workflows/ticket-check.yml index c8eb0e4..4212cf7 100644 --- a/.github/workflows/ticket-check.yml +++ b/.github/workflows/ticket-check.yml @@ -1,13 +1,19 @@ -# Validates that newly opened issues contain enough info -name: 🎫 Ticket Compliance +# Checks newly opened issues contain enough info, and follow the required format +name: 🎫 Issue Validator on: issues: types: [opened] jobs: - issue-check: + check-title: runs-on: ubuntu-latest + permissions: write-all steps: - - uses: wow-actions/needs-more-info@v1.0.5 + - name: Default + if: "endsWith(github.event.issue.title, '')" + uses: peter-evans/create-or-update-comment@v2 with: - GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} - CONFIG_FILE: .github/workflows/config/ticket-check-config.yml + token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} + issue-number: ${{ github.event.number }} + body: | + Hello ${{ github.event.actor }} :wave: + Please ensure that your ticket has an appropriate title