Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix bug in changelog script #1060

Merged
merged 2 commits into from
Jan 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading