-
Notifications
You must be signed in to change notification settings - Fork 239
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
feat: added support for parsing headers in body, e.g. to support squashed commits #39
base: master
Are you sure you want to change the base?
Conversation
…shed commits Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
Pull Request Test Coverage Report for Build 122
💛 - Coveralls |
Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm terribly sorry for late response 😭 And thank you for contributing!
This feature is looks good to me.
Would you please change the path to git-chglog
🐶 ?
@@ -7,7 +7,7 @@ import ( | |||
"time" | |||
|
|||
"github.com/fatih/color" | |||
chglog "github.com/git-chglog/git-chglog" | |||
chglog "github.com/fredbi/git-chglog" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
chglog "github.com/fredbi/git-chglog" | |
chglog "github.com/git-chglog/git-chglog" |
@tsuyoshiwada no worries we are all a bit sidetracked these days... |
if opts.MultilineCommit { | ||
// additional headers in body | ||
body := input | ||
body = p.reNotes.ReplaceAllString(body, "") // strip notes from mody |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
body = p.reNotes.ReplaceAllString(body, "") // strip notes from mody | |
body = p.reNotes.ReplaceAllString(body, "") // strip notes from body |
Any chances this will be merged? :) |
looks like there still are some outstanding PR requests. Additionally, this needs a rebase to resolve conflicts. |
@fredbi can we help to rebase this PR? :) |
Out of curiosity, was there a reason this PR didn't end up merged? |
Signed-off-by: Frederic BIDON fredbi@yahoo.com
What does this do / why do we need it?
added support for parsing headers in body, e.g. to support squashed commits
How this PR fixes the problem?
adds
multiline_commits: true|false
config option to enable parsing headers in bodyWhat should your reviewer look out for in this PR?
Here is a sample regexp I am using:
Check lists
Additional Comments (if any)
{Please write here}
Which issue(s) does this PR fix?
fixes #27