-
-
Notifications
You must be signed in to change notification settings - Fork 203
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
Support creating the changelog based on pull requests only #656
Comments
I think adding a new configuration option for this might be too much. Instead, you can simply achieve this by filtering by the
The example I gave above will likely work in this case because we are checking if the Hope this helps! 🐻 |
I'm already using the suggested technique to filter out the commits, but it doesn't solve the case where the commit message don't allow me to use a parser to group them properly. So my fallback now is to use a catch all and assign a miscellaneous group, but the result is that PR:s that clearly should have a different group now end up in the miscellaneous group. If I could use the |
Can you share some example commits and snippet from your configuration (especially
That would be straightforward to implement actually 🤔 |
I'm also interested in this one, we have the exact same problem. We would like to mimic what Githubs built-in changelog generator does, which is to to list only the PRs, with the titles and some other metadata, grouped based on a label. |
This should be now possible after #758 (simply use See https://git-cliff.org/blog/2.5.0#-grouping-by-arbitrary-fields |
@orhun Awesome! 😄 |
That's good news. Thanks! |
Is there an existing issue or pull request for this?
Feature description
It's very common to use branch protection rules with GitHub to require a pull request before merging. With this in place, it's actually not that relevant to use the individual commits to create the changelog. Instead, you would rather use the PR titles alone with the commit-parsers to get the group, scope and so on. However, currently there is no support for doing this as
pr_title
attribute (maybe they do, but as not all commits are pull requests it doesn't work)Desired solution
When using GitHub, add a config flag that allows you to fetch only pull requests, e.g
pull_requests_only = true
. Furthermore, allow the commit parsers to use thepr_title
field instead of themessage
field to set the group and scope.Alternatives considered
Have tried pre-processing to modify the commit message, but sometimes there's a lot of commit messages in there when there's an associated PR, and it makes it very hard to make any sense of the contents of the message.
Additional context
No response
The text was updated successfully, but these errors were encountered: