Skip to content

Commit 22bf6e7

Browse files
authored
Merge pull request #3559 from anoma/tomas/fix-ci-changelog-base
CI/changelog: diff PR branch against origin/main
2 parents 292cf89 + 89f867e commit 22bf6e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/scripts/check-changelog.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ check_changelog_added_in_subfolders() {
1313
subfolder_pattern=$(printf "|%s" "${subfolders[@]}")
1414
subfolder_pattern=${subfolder_pattern:1} # Remove the leading '|'
1515

16-
added_files=$(git diff --diff-filter=A --name-only "main..$head_commit" | grep "\.changelog/")
16+
added_files=$(git diff --diff-filter=A --name-only "origin/main..$head_commit" | grep "\.changelog/")
1717

1818
relevant_files=$(echo "$added_files" | grep -E "\.changelog/unreleased/($subfolder_pattern)/")
1919

0 commit comments

Comments
 (0)