From f45e8918f8612c30aa5ff89c81cd5fcfdb24e002 Mon Sep 17 00:00:00 2001 From: Mateusz Hawrus Date: Wed, 7 Feb 2024 12:47:49 +0100 Subject: [PATCH] fix: Interpret git log grep pattern as literal string --- .github/scripts/release-notes.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/scripts/release-notes.sh b/.github/scripts/release-notes.sh index 889159776..3c9e4886c 100755 --- a/.github/scripts/release-notes.sh +++ b/.github/scripts/release-notes.sh @@ -55,7 +55,7 @@ while IFS= read -r line; do continue fi commit_msg="${BASH_REMATCH[1]}" - commit_body=$(git log --grep "$commit_msg" -n1 --pretty="%b") + commit_body=$(git log -F --grep "$commit_msg" -n1 --pretty="%b") add_notes() { local notes="$1"