Skip to content

Commit

Permalink
scripts/changelog: diff PR branch against origin/main
Browse files Browse the repository at this point in the history
  • Loading branch information
tzemanovic authored and Fraccaman committed Jul 29, 2024
1 parent 80a6307 commit 89f867e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/scripts/check-changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)/")

Expand Down

0 comments on commit 89f867e

Please sign in to comment.