Skip to content

New feature - Conditional tokens and its rendering #146

@midhun-vrize

Description

@midhun-vrize

Hi,

I appreciate your effort in building such a useful extension which makes it easier to construct commit messages. Over the top of my head, I can suggest a new feature, which is conditional tokens which will only be displayed in the form iff the linked/related token value in the form matches the provided value.

Use case

Let's consider the following scenario.

  • I've a dropdown field to select the issue type (story/bug)
  • If it's a story, It's straightforward. I can add the description in the body.
  • But if it's a bug, I need to add RCA (Root cause analysis) in the commit message, which I could just manually add to the content in the body. But a more intuitive way would be to have two inputs to receive the Root cause and Fix if the selected value for issue type in the form is 'bug'.

I'm a developer and I've already tried to implement this. And I believe I'm in the right path. Will raise a PR and link it to this issue once completed with the implementation.

Thanks @bendera

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions