From 350ab1fe711b91711f6b859c70b44fb9525d5aac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ante=20Kocei=C4=87?= Date: Mon, 7 Jul 2025 12:24:46 +0200 Subject: [PATCH 1/4] Added check to only run check title on pull request events --- .github/workflows/ci.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 613db0e6..d1feecea 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -24,6 +24,7 @@ jobs: uses: actions/checkout@v4 - name: Check PR title for ticket number + if: github.event_name == 'pull_request' run: | echo "PR Title: ${{ github.event.pull_request.title }}" From 56c81447d9140ad9f6b14820e029bf899fddf55f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ante=20Kocei=C4=87?= Date: Fri, 1 Aug 2025 10:18:21 +0200 Subject: [PATCH 2/4] Check for bots --- .github/workflows/ci.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d1feecea..627d2f28 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -24,9 +24,11 @@ jobs: uses: actions/checkout@v4 - name: Check PR title for ticket number - if: github.event_name == 'pull_request' + if: github.event_name == 'pull_request' && github.event.pull_request.user.type != 'bot' run: | echo "PR Title: ${{ github.event.pull_request.title }}" + + echo "DATA: ${{ github.event.pull_request }}" # Regex pattern for a ticket number TICKET_PATTERN="DXTA-[0-9]+" # Matches strings like DXTA-123 From 7773115087f419c05e44c7265e80a31512c9e1e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ante=20Kocei=C4=87?= Date: Fri, 1 Aug 2025 10:22:15 +0200 Subject: [PATCH 3/4] Corrected echo for test --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 627d2f28..1e62b1eb 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -28,7 +28,7 @@ jobs: run: | echo "PR Title: ${{ github.event.pull_request.title }}" - echo "DATA: ${{ github.event.pull_request }}" + echo "DATA: ${{ github.event.pull_request.user.type }}" # Regex pattern for a ticket number TICKET_PATTERN="DXTA-[0-9]+" # Matches strings like DXTA-123 From 09940ff1cedd8d7d9e9ad309166a34aeef9f8121 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ante=20Kocei=C4=87?= Date: Fri, 1 Aug 2025 10:25:58 +0200 Subject: [PATCH 4/4] Removed echo used for testing --- .github/workflows/ci.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 1e62b1eb..5ac3898c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -28,8 +28,6 @@ jobs: run: | echo "PR Title: ${{ github.event.pull_request.title }}" - echo "DATA: ${{ github.event.pull_request.user.type }}" - # Regex pattern for a ticket number TICKET_PATTERN="DXTA-[0-9]+" # Matches strings like DXTA-123