Closed SchmidtDawid closed 4 years ago
Hi @SchmidtDawid, the plugin use this RegExp -> "branchName".match(/([A-Za-z0-9]+)-(\d+)/) From this match use the first part for issue and the second one for the project name. You can also define your own mapping: config: Project Key Mapping in settings
- Is it possible to create branches named by the same rule? Unfortunatly VsCode git integration doesn't allow you to define a default branch name
Yes, but i don't know how to define my mapping. Should i pass 2 reqexes? or is there any variable to use? i don't understand this example CUSTOMKEY=JIRAKEY.
Maybe some code explain better than words 😄 Here you have the code. mapProjectKeyIfNeeed is the method that use this mapping configuration.
Oh ok i get it now ;). Thanks!
@SchmidtDawid Did you solve your issue? Can we close it?
Yes :)
If my task in jira look like that: "APINT-3456 - bla bla bla" and i want to sync it with branches named feature/#3456 how my key should looks like?
And one question: Is it possible to create branches named by the same rule?