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

Group commits by scope #439

Open
onrige opened this issue Apr 24, 2019 · 6 comments
Open

Group commits by scope #439

onrige opened this issue Apr 24, 2019 · 6 comments
Labels
enhancement A change to a project's repository that adds new behavior for downstream consumers. help wanted We need the community's help to address this issue through the contribution of a pull request.

Comments

@onrige
Copy link

onrige commented Apr 24, 2019

Hello. I am trying to configure my own config based on angular preset. I want to group by commit scope but in writer there is no such property. Is there any way to achieve this one?

Example:
Screen Shot 2019-04-24 at 21 49 31

@hutson hutson added enhancement A change to a project's repository that adds new behavior for downstream consumers. help wanted We need the community's help to address this issue through the contribution of a pull request. labels May 6, 2019
@hutson
Copy link
Contributor

hutson commented May 6, 2019

@onrige to my knowledge there is not a way to group commits based on commit scope.

I've tagged this issue as an enhancement request, though I don't know when, or if, the core maintainers of conventional-changelog will have time to address this request.

If you are able to take the lead on this request, we may be able to help with guidance and code reviews.

@medikoo
Copy link

medikoo commented Feb 27, 2020

My use case is that I'd like to group commits by type and by scope, as it can be seen here: https://github.com/serverless/serverless/releases/tag/v1.64.0

I take it's not possible currently to automate that.

@ferm10n
Copy link

ferm10n commented Nov 18, 2020

Interested in this as well.

Is this something we'd want to use?

Maybe we'd want to modify

const commitGroupsObj = _.groupBy(commits, function (commit) {
return commit[groupBy] || ''
})

to allow more customized grouping.

For example:

const commitGroupsObj = _.groupBy(commits, groupBy instanceof Function ? groupBy : commit => commit[groupBy])

@alexanderPastornicky
Copy link

+1

@Stamo-Gochev
Copy link

@stevemao Is there any update on this as I see #908 hasn't been accepted? It would be nice if groupBy can be a function, which will allow full customization over how the grouping happens. Another options is to allow an array of strings like ["scope", "type"].

@dangreen
Copy link
Member

dangreen commented Apr 9, 2024

@Stamo-Gochev Hi. That PR should be up to date with fresh master. Feel free to open new PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A change to a project's repository that adds new behavior for downstream consumers. help wanted We need the community's help to address this issue through the contribution of a pull request.
Development

No branches or pull requests

7 participants