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

Use in non-interactive mode? #62

Open
BelkaDev opened this issue Jun 27, 2022 · 3 comments
Open

Use in non-interactive mode? #62

BelkaDev opened this issue Jun 27, 2022 · 3 comments

Comments

@BelkaDev
Copy link

Any way to include the Jira ticket using git-cz --non-interactive ?

@juliuscc
Copy link
Collaborator

I am not familiar with the non interactive mode. What does it mean? Does it skip the prompts somehow?

@BelkaDev
Copy link
Author

BelkaDev commented Jun 27, 2022

Yes. It allows to format it into a oneliner
Example:
git-cz --type=feat --scope=scope --subject="short description"
What I'm looking for is something like this:
git-cz --type=feat --scope=scope --subject="short description" --issue=XXXX

@juliuscc
Copy link
Collaborator

Hmm I have no idea how that works TBH. The integration between git-cz and this library is very decoupled. Basically git-cz only calls a function that we provide and then this function returns a string. We decide entirely what to prompt the user for and how that builds the string. So if git-cz get's specific flags we do not access them.

Do you think there is a way to get those flags from git-cz? Do you otherwise think that we could manually parse it out? Could it be that there is some plugin that does this that you could link to?

To be explicit about why I ask these questions: I like the idea. I just want to figure out how we can best implement it. 😁

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

No branches or pull requests

2 participants