feat(additionalQuestion): support additional questions for commit#243
feat(additionalQuestion): support additional questions for commit#243leonardoanalista merged 1 commit intoleoforfree:masterfrom
Conversation
|
@leonardoanalista Can you please check this PR and see if ti can be merged soon ? We are in need of this feature urgently. |
.cz-config.js
Outdated
| ], | ||
|
|
||
| additionalQuestions: [ | ||
| { |
There was a problem hiding this comment.
@parveen14 please remove explicit data here. additional questions should be optional. In here, I think it must be empty array.
There was a problem hiding this comment.
Yes, I agree. You could add it to the README docs for this field and leave the other files as is because most people won't use it straight away.
I believe the subject, body, and footer are ideal for most cases and are already decent/solid defaults.
The new field additionalQuestions could exist, no problems with it.
We need to think about the initial API and keep it as simple as possible for someone new starting to use this package. We don't want them to feel overwhelmed by the number of options.
There was a problem hiding this comment.
@samarpan-b @leonardoanalista Yes, got it.
changes done and additionalQuestions removed from .cz-config.js as its optional field.
we have additionalQuestions in readme and config example file.
.cz-config.js
Outdated
| isTicketNumberRequired: false, | ||
| ticketNumberPrefix: 'TICKET-', | ||
| ticketNumberSuffix:'', | ||
| ticketNumberSuffix: '', |
There was a problem hiding this comment.
Can you please revert these changes ?
|
|
||
|
|
||
| Leonardo Correa | ||
| Leonardo Correa No newline at end of file |
There was a problem hiding this comment.
no changes done on this line , not sure why it showing as same line removed & added
dc6ff87 to
5028a05
Compare
cz-config-EXAMPLE.js
Outdated
| { value: 'WIP', name: 'WIP: Work in progress' }, | ||
| ], | ||
|
|
||
| additionalQuestions: [ |
There was a problem hiding this comment.
Thanks for the PR!
I believe the "standard" questions are suitable for most users.
Most people are going to copy and paste this example file. My only concern is they would be overwhelmed by the additional questions.
The README file explains how to use the new field additionalQuestions if they need it.
So it would LGTM if we leave this file cz-config-EXAMPLE.js untouched like a bare minimum to get started. Does it make sense?
There was a problem hiding this comment.
@leonardoanalista , Got it, readme is sufficient enough to explain additionalQuestions options.
Removed additionalQuestions from this file now
|
@samarpan-b @leonardoanalista can we merge this PR ? |
You can add n number of additional questions for commit.
And append answers to the body of commit message.
These question can help you to create smart-commit and pass information to third party like jira (with help of mapping)