Skip to content

Commit

Permalink
feat(changelog): ignore merge commits
Browse files Browse the repository at this point in the history
  • Loading branch information
mcornella authored and kareefardi committed Jul 16, 2021
1 parent 8ebb572 commit d4267da
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,11 @@ function parse-commit {
fi
}

# Ignore commit if it is a merge commit
if [[ $(command git show -s --format=%p $1 | wc -w) -gt 1 ]]; then
return
fi

# Parse commit with hash $1
local hash="$1" subject body warning rhash
subject="$(command git show -s --format=%s $hash)"
Expand Down

0 comments on commit d4267da

Please sign in to comment.