Skip to content

Commit

Permalink
fix bug in changelog script (#1060)
Browse files Browse the repository at this point in the history
## Context
Need to set the base branch to main, otherwise we need a tag before we can create the changelog
  • Loading branch information
sampocs authored Jan 11, 2024
1 parent 7f88955 commit 8c4d7fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ modified_on_chain_file() {
return 1 # false
}

# Gather the list of all commits between the new and old version
# Gather the list of all commits between the old version and main
# The output on each line will be in the format: {commit_hash} {commit_title}
# The last line does not end with a new line character, so we have to append a new empty line
# so that the full output is propogated into the while loop
git log --pretty=format:"%H %s" ${OLD_VERSION}..${NEW_VERSION} --reverse > $TEMP_COMMITS
git log --pretty=format:"%H %s" ${OLD_VERSION}..main --reverse > $TEMP_COMMITS
echo "" >> $TEMP_COMMITS

# Loop through the commits and build out the commit descriptions for the on-chain and off-chain sections
Expand Down

0 comments on commit 8c4d7fd

Please sign in to comment.