I have been working on a solution to create branches directly from an YouTrack issue.
I have been able to write an action that does this with my GitLab server, by using GitLab's APIs while only branching from main. What I'd like to be able to do is select a "Branch From?" in YouTrack then use that branch in order to automatically create the new branch in GitLab. This is where I am stuck.
I've thought of a couple options but not sure if I am capable to do them.
- Part of the Action gives users a list of available branches. This could be populated from an API request to GitLab or
- Intercept the VCS changes coming from GitLab on my existing integration and create a list of branches as an EnumField
Not sure if anyone has tried anything similar, looking over the documentation I don't believe either of these are possible and wanted to reach out here.