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

[misc] Fix the changelog generator to only count current branch commits #4126

Merged
merged 1 commit into from
Jan 25, 2022

Conversation

frostming
Copy link
Collaborator

Related issue = Fix #4118

@vercel
Copy link

vercel bot commented Jan 25, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/taichi-api-docs-preview/taichi/27txJ7f6pRjXdg2HUfyus3u3b91d
✅ Preview: Canceled

@netlify
Copy link

netlify bot commented Jan 25, 2022

✔️ Deploy Preview for docsite-preview canceled.

🔨 Explore the source changes: f6b13dc

🔍 Inspect the deploy log: https://app.netlify.com/sites/docsite-preview/deploys/61efa481a108670008bfd59a

Comment on lines -37 to -38
if i == 0:
continue
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Not sure why it skips the first tagged commit, but it should be included in the changelog. For example:

change 1  [v0.8.10]
change 2
change 3
change 4  [v0.8.9]

The resulted changelog should be

change 1
change 2
change 3

Copy link
Contributor

Choose a reason for hiding this comment

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

I guess it was used to skipping version bump commits? @strongoier
but yea it's okay to keep them in the full changelog as well.

Copy link
Collaborator Author

@frostming frostming Jan 25, 2022

Choose a reason for hiding this comment

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

If that is the case we can make the parsing more explicit: only keep commits with tags, or other mechanisms to exclude specific commits(PRs) from the changelog.

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't really remember that because that code was there before I made changes. But it seems that our changelog doesn't miss any commit.

Copy link
Contributor

@ailzhang ailzhang left a comment

Choose a reason for hiding this comment

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

Thanks!!

@ailzhang ailzhang merged commit 13190de into master Jan 25, 2022
@ailzhang ailzhang deleted the fix/mk-changelog branch January 25, 2022 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

make_changelog.py doesn't work well with cherry-picked branch
3 participants