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

How to sort commit messages? #54

Open
FOhis opened this issue Sep 29, 2017 · 0 comments
Open

How to sort commit messages? #54

FOhis opened this issue Sep 29, 2017 · 0 comments

Comments

@FOhis
Copy link

FOhis commented Sep 29, 2017

Hello,

how can i sort commit messages depending on same tags in the commit message?

----8<----8< begin message format----8<----8<
[scope] [type] titel

detailed information

some text [component]
some text [customer]

----8<----8< end message format----8<----8<

with
[scope]= Modul A or Modul B etc.
[type]=new or change or fix or test or refactoring or test etc.
[component]=component A or component B etc.
[customer]=customer A or customer B etc.

I would like to generate a sorted changelog
a) with full infomration for internal use
b) with fewer information for external use

For filtering messages there is the regex Pattern within ignoreCommitsIfMessageMatches and maybe issue#53 (How to filter a message body item?)

But how can commit messages be sorted with adaptive possibilities in the name and sequence of scope, type, component and customer?
example - format
scope (level 1)
type (level 2)
component (level 3)
customer (level 2)

example - log output
scope Modul A - heading Modul A
type new - heading type new
component A - heading component A
message 1
message 2
component B - heading component B
message 3
change - heading type change
component C - heading component C
message 4
fix - heading type fix
component A - heading component A
message 5
message 6
component B - heading component B
message 7
heading customers
customer A - heading customer A
message 8
message 9
customer B - heading customer A
message 10
Modul B - heading Modul B
fix - heading type fix
component C - heading component C
message 10

I use git-changelog-lib with git-changelog-command-line Tool.

Thank you very much
FO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants