From 81282a244464098b7b60e8dfed4acfb848e27c87 Mon Sep 17 00:00:00 2001 From: Uwe Fricke Date: Tue, 9 Jul 2024 15:39:19 +0200 Subject: [PATCH] Only consider the first line of the commit message, and the ticket number has to be at the start of the line --- action.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/action.yml b/action.yml index 7e483ad..d6df365 100644 --- a/action.yml +++ b/action.yml @@ -20,10 +20,10 @@ runs: run: | export LANG=en_US.utf-8 export LC_ALL=en_US.utf8 - git log ${{inputs.previous-version}}...${{inputs.release-version}} | \ - grep -oP "${{ inputs.jira-project-key }}-\d{1,}" | sort | uniq | \ + git log ${{inputs.previous-version}}...${{inputs.release-version}} --pretty=format:"%s" | \ + grep -oP "^${{ inputs.jira-project-key }}-\d{1,}" | sort | uniq | \ sed 's/^\|$/"/g' | paste -sd , | awk '{print "RELATED_JIRA_ISSUES="$0}' >> $GITHUB_ENV - shell: bash --noprofile --norc {0} + shell: bash --noprofile --norc {0} - name: Create json and invoke webhook run: |