From e1d3cf14ecb9d25fae1e0ba0546a30cf57017288 Mon Sep 17 00:00:00 2001 From: Hans <11695964+hupling@users.noreply.github.com> Date: Tue, 21 Jul 2026 13:22:23 +0200 Subject: [PATCH 1/3] Update Abc.yml --- .github/workflows/Abc.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/Abc.yml b/.github/workflows/Abc.yml index 104679c..19e0503 100644 --- a/.github/workflows/Abc.yml +++ b/.github/workflows/Abc.yml @@ -1,6 +1,6 @@ name: build and test Backend -on: [push] +on: [pull_request] jobs: @@ -14,9 +14,7 @@ jobs: produce-artifacts: runs-on: ubuntu-latest + steps: - - - name: GitHub-Kontext anzeigen - env: - GITHUB_CONTEXT: ${{ toJson(github) }} - run: echo "$GITHUB_CONTEXT" + - name: Show the PR Title + run: echo "The title is ${{ github.event.pull_request.title }}" From 1d570c1cf585299e94e94d00e80416b92fb41060 Mon Sep 17 00:00:00 2001 From: Hans <11695964+hupling@users.noreply.github.com> Date: Tue, 21 Jul 2026 13:26:02 +0200 Subject: [PATCH 2/3] Implement PR title prefix validation step Added a step to check PR title prefix for valid keywords. --- .github/workflows/Abc.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/Abc.yml b/.github/workflows/Abc.yml index 19e0503..b5a691d 100644 --- a/.github/workflows/Abc.yml +++ b/.github/workflows/Abc.yml @@ -18,3 +18,15 @@ jobs: steps: - name: Show the PR Title run: echo "The title is ${{ github.event.pull_request.title }}" + - name: Check title prefix + env: + PR_TITLE: ${{ github.event.pull_request.title }} + run: | + # The regex checks for line start (^), followed by keywords, and an optional description format + if [[ "$PR_TITLE" =~ ^(feat|fix|docs)(\(.*\))?: ]]; then + echo "Success: PR title starts with a valid prefix." + else + echo "Error: PR title must start with 'feat:', 'fix:', or 'docs:'." + echo "Current title: $PR_TITLE" + exit 1 + fi From f27374265e3ad710e218e801a1924f40147d22d2 Mon Sep 17 00:00:00 2001 From: Hans <11695964+hupling@users.noreply.github.com> Date: Tue, 21 Jul 2026 13:28:37 +0200 Subject: [PATCH 3/3] Update Abc.yml --- .github/workflows/Abc.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Abc.yml b/.github/workflows/Abc.yml index b5a691d..eec0160 100644 --- a/.github/workflows/Abc.yml +++ b/.github/workflows/Abc.yml @@ -1,7 +1,8 @@ name: build and test Backend -on: [pull_request] - +on: + pull_request: + types: [opened, edited, synchronize, reopened] jobs: compliance: