-
Notifications
You must be signed in to change notification settings - Fork 649
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Regex for label property #3661
Comments
I like the idea. I would recomment to reuse the label and regex property in the branch related property section like:
The important thing to notice here is that the user can use zero, one or more generic named capture groups in the regex of an branch which can be used in the label property per placeholder convention like @asbjornu what do you think? |
I agree to remove the |
That sounds awesome! Any ETA on a final release for 6.0.0? |
Of course when the tickets are done for milestone 6!? 😅 |
I can see that the milestone is 5% done, so I guess it will be a while :) With a little guidance as to where and how you see this change made, I might be able to do this PR myself. Just let me know. |
On the first glance the progress for 6.x seems to be not so advanced but some alpha and beta versions have been released already with alot of changes ;) I would appreciate your help very much. Any features or bugs which can be finished will help to speed up the release.
Of course I can guide you to the right location. For the beginning I would say let's start with this feature. :) |
Following steps I would recommend:
|
🎉 This issue has been resolved in version 6.0.0-beta.4 🎉 Your GitReleaseManager bot 📦🚀 |
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 labelPossible Implementation
The text was updated successfully, but these errors were encountered: