Skip to content

Custom prompts #192

Description

@assyrus-favolo

I would like to be prompted for other specific information in separate fields while committing, something suited for my use case rather than a generic one.
I'd like to define that via configuration with something like:

[[commit_types]]
name = "custom"
description = "A custom template"
ticket.prompt = "What ticket does this resolve?"
ticket.type = "number"
ticket.required = false
ticket.template = "Ticket number: {answer}"

So that at the end it asks me:

What ticket does this resolve?
? Describe the breaking changes in detail:  
[<esc> or <return> to skip]

Generating:

custom(scope): Short description

Long description
Ticket number: 1234

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions