From 89f867ecd5c1a054b3240124e7ee82fe02ba005e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Zemanovi=C4=8D?= Date: Mon, 29 Jul 2024 09:31:06 +0100 Subject: [PATCH] scripts/changelog: diff PR branch against origin/main --- .github/workflows/scripts/check-changelog.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/scripts/check-changelog.sh b/.github/workflows/scripts/check-changelog.sh index f4d73c30f0..9579d9bbb3 100755 --- a/.github/workflows/scripts/check-changelog.sh +++ b/.github/workflows/scripts/check-changelog.sh @@ -13,7 +13,7 @@ check_changelog_added_in_subfolders() { subfolder_pattern=$(printf "|%s" "${subfolders[@]}") subfolder_pattern=${subfolder_pattern:1} # Remove the leading '|' - added_files=$(git diff --diff-filter=A --name-only "main..$head_commit" | grep "\.changelog/") + added_files=$(git diff --diff-filter=A --name-only "origin/main..$head_commit" | grep "\.changelog/") relevant_files=$(echo "$added_files" | grep -E "\.changelog/unreleased/($subfolder_pattern)/")