From e2a485cb23fa498ace4260788d479973b552e7dc Mon Sep 17 00:00:00 2001 From: Jack Spagnoli <114365987+JackSpagnoliNHS@users.noreply.github.com> Date: Tue, 23 Jan 2024 11:52:54 +0000 Subject: [PATCH] regex --- .github/workflows/pull_request.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index c09edab..2cda5d6 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -29,7 +29,7 @@ jobs: - name: Check PR Title contains Ticket/Dependabot Reference run: | - if [[ "${{ github.event.pull_request.title }}" =~ ^.*:.*\[.*\]\s\-\s.*$ ]]; then + if [[ "${{ github.event.pull_request.title }}" =~ ^.*:.*\[.*\].*\-.*$ ]]; then echo "PR title contains ticket or dependabot reference." else echo "PR title does not contain ticket or dependabot reference."