-
Notifications
You must be signed in to change notification settings - Fork 662
Closed
Labels
Milestone
Description
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