-
Notifications
You must be signed in to change notification settings - Fork 9
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
Improved version of source_changelog #541
base: master
Are you sure you want to change the base?
Conversation
Mostly copied from https://github.com/cli/cli/blob/4e219a9c8f4fb2b38c2b9ff001a39729b58d61f8/script/changelog but adapted to work with local repositories and Ignition changelogs
Signed-off-by: Jose Luis Rivero <[email protected]>
I like the automatic tag detection, that's a definite improvement. I think it could use some more documentation about the git magic used to detect the tag, but I think it is a great idea. One difference I noticed is how it treats merge-forward pull requests. I just tested it with |
I started with this branch for gazebosim/sdformat#799 but finished by hand to include the forward-port PRs |
Oh I totally forgot about this PR!
Ah yeah we should have all the commits that have been merged forward |
Found some time to make the changes. I tried to use the same git log approach that we currently have to reflect merges in the same way. d577f2a. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! I like it how it automatically picks up the tag.
There's still some issue with the merge commits though. If I run this on ign-gazebo
right now, I only get the forward-port PR, but there are many other commits in the diff:
printf "1. %s\n" "$pr_desc" | ||
printf " * [Pull request #%s](%s/pull/%s)\n" "$pr_num" "$current_origin_remote" "$pr_num" | ||
if [[ "${author_email/@openrobotics.org}" == "${author_email}" ]] && \ | ||
[[ "${author_email/@osrfoundation.org}" == "${author_email}" ]] && \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure about excluding us, we need love too ❤️
While reading the latest changes to github product cli I just noticed that they have an script to generate changelog entries: https://github.com/cli/cli/blob/4e219a9c8f4fb2b38c2b9ff001a39729b58d61f8/script/changelog.
In trunk (hello subversion) branch in the repository they have changed it to call github API, which should probably be the way to go for us too.
Meanwhile I modified their script a little bit, I think is ready to test. A quick launch on ign-tools repository seems fine (note I disabled the check for external contributors, openrobotics emails are filtered out):
Note: to review it, just look at the plain raw file, diff make not sense here.