Skip to content

Commit

Permalink
chore(ci): use merge-base in check for added changelog fragments (#690)
Browse files Browse the repository at this point in the history
  • Loading branch information
neuronull committed Feb 9, 2024
1 parent 25d0b2c commit 5b558be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/check_changelog_fragments.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ if [ ! -d "${CHANGELOG_DIR}" ]; then
fi

# diff-filter=A lists only added files
FRAGMENTS=$(git diff --name-only --diff-filter=A origin/main ${CHANGELOG_DIR})
FRAGMENTS=$(git diff --name-only --diff-filter=A --merge-base origin/main ${CHANGELOG_DIR})

if [ -z "$FRAGMENTS" ]; then
echo "No changelog fragments detected"
Expand Down

0 comments on commit 5b558be

Please sign in to comment.