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 create_release_notes.sh script #289

Merged
merged 2 commits into from
Feb 16, 2024
Merged
Changes from 1 commit
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
15 changes: 9 additions & 6 deletions scripts/create_release_notes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,24 @@ else
previous_tag_hash=$(git rev-list --tags --max-count=1)
fi

previous_tag=$(git describe --abbrev=0 --tags $previous_tag_hash)
previous_tag=$(git describe --abbrev=0 --tags "$previous_tag_hash")


range="$previous_tag..HEAD"

commits_since_previous_tag=$(git log --no-merges --pretty=format:"* %s" $range)
commits_since_previous_tag=$(git log --no-merges --pretty=format:"* %s" "$range")

notes_file="release_notes.txt"

if [ -z "$commits_since_previous_tag" ]; then
echo "No changes from previous release" > "$notes_file"
else
echo "Release Notes ($current_tag):" > "$notes_file"
echo "" >> "$notes_file"
echo "Since the last tag ($previous_tag), the following changes have been made:" >> "$notes_file"
echo "" >> "$notes_file"
echo "$commits_since_previous_tag" >> "$notes_file"
{
# new line
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is this comment for?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dla beki. I will delete it.

echo ""
echo "Since the last tag ($previous_tag), the following changes have been made:"
echo ""
echo "$commits_since_previous_tag"
} >> "$notes_file"
fi
Loading