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

[SCM-977] Support for retrieving tags from the changelog #135

Merged
merged 2 commits into from
May 26, 2022

Conversation

nielsbasjes
Copy link
Contributor

@nielsbasjes nielsbasjes commented Feb 16, 2022

Jira issue SCM-977

My aim is to support having something like https://www.conventionalcommits.org/ in the maven-release-plugin.

This simply means that the next version of a release is calculated from the last tag in the version history and the patterns in the commit messages since that tag.

To support this idea the maven-scm should be extended to also retrieve the tags with the changelog command on SCM implementations that support this idea.

This patch adds

  • Generic support for a ChangeSet to also include the available tags.
  • Implementation for gitexe and jgit to actually set those if found.

@nielsbasjes
Copy link
Contributor Author

I have implemented the tags retrieval for gitexe, jgit and hg.

@michael-o
Copy link
Member

@nielsbasjes I will take a look at all of your PRs next month. This month, very unlikely.

@apache apache deleted a comment May 12, 2022
@apache apache deleted a comment May 12, 2022
Copy link
Member

@michael-o michael-o left a comment

Choose a reason for hiding this comment

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

If you want to move whatchanged to log I am fine with that, but let's do this in a separate JIRA issue and PR.

@nielsbasjes nielsbasjes force-pushed the SCM-977-ChangelogTags branch 2 times, most recently from a52f1a6 to 4c64430 Compare May 23, 2022 09:54
@michael-o michael-o self-requested a review May 23, 2022 18:36
@nielsbasjes nielsbasjes force-pushed the SCM-977-ChangelogTags branch 2 times, most recently from 3edaa52 to 60dec10 Compare May 25, 2022 11:31
@michael-o
Copy link
Member

So as far as I understand your implementation, it side walks with "git log" and reads out whether those commits belong to tags as well?!

michael-o pushed a commit to nielsbasjes/maven-scm that referenced this pull request May 26, 2022
@michael-o
Copy link
Member

Added those tiny changes myself. Requires #149 to be merged first.

@michael-o michael-o self-requested a review May 26, 2022 07:56
@asfgit asfgit merged commit b04525f into apache:master May 26, 2022
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.

3 participants