gitmoji-cli icon indicating copy to clipboard operation
gitmoji-cli copied to clipboard

Additional custom fields

Open SkyaTura opened this issue 1 year ago • 6 comments

Description of the problem

Some platforms allow quick actions to apply changes on issues/PRs through specific commands written on commit messages.

Solution

Allow custom fields to be created with specific prompts or lists to fulfill some template.

For instance:

? Choose a gitmoji: ✨  - Introduce new features.
? Enter the commit title [24/48]: Add super awesome button
? Enter the commit message:
? Time spent on this issue: 32h
? The issue is complete already (y/N): y

That is a heck of button

If the last fields are filled, the final commit message would have /spent 32h and /request_review appended at the end, adding time-tracking features from GitLab.

This could be used not only for convenience, but also to help enforcing team patterns usage...

Alternatives

Well, just type the full command on the message body... ~but that is not as cool~

Additional context

I think this may be somewhat related to #780, but I chose to create a new one because this concept doesn't exist yet, unlike scopes which is already a feature.

Validations

SkyaTura avatar Jan 09 '23 04:01 SkyaTura