Skip to content

Support Regex for label property #3661

@CasperWSchmidt

Description

@CasperWSchmidt

Detailed Description

We're using Shortcut to manage stories and bugs. Shortcut can automatically generate branches based on features and chores in the format feature/sc-xxxx/description. Using the default regex ^features?[/-] to recognize branches, useBranchName (or {branchName}) we'll get tags with sc-xxxx-description but we'd like to only have the story id (sc-xxxx) as the tag.

I'll be happy to make a PR once this feature has been discussed.

Context

I'm unsure of the actual syntax, but perhaps something like label: regex sc-\d+ so that the code can recognize the regex prefix. This regex will then be executed against the branch name to retrieve the part of the branch name that is returned as the label

Possible Implementation

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions