Skip to content

Provide ${component} without whitespace of the beginning #1626

@tasshi-me

Description

@tasshi-me

Hi there, and thank you for maintaining the great package.

Is your feature request related to a problem? Please describe.

Related to #1623.

I want to use ${component} as the scope of the commit message in pull-request-title-pattern.
e.g. chore(${component}): release ${version}

However the ${component} contains whitespace at the beginning of it.

Describe the solution you'd like

Remove whitespace of ${component}

Describe alternatives you've considered

Provide another template value that represents a component.

Additional context

The whitespace is added in:

const component = this.component ? ` ${this.component}` : '';

and parsed in:

.replace('${component}', ' ?(?<component>[\\w-./]*)?')

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: p3Desirable enhancement or fix. May not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions