Create Branch in Fork from Issue

Description

Add a "Create a branch in my fork" action for issues, if the user has already forked the project.

From the issue description page, e.g. https://gitlab.example.com/namespace/project/issues/N, there are currently two "quick actions" (for lack of a better term).

  • Create a merge request
  • Create a branch

Since the feature branch / topic branch development pattern is so common (I'm not saying it's the best pattern by any means, just that it is very common), it would be great to have a quick action for "Create a branch in my fork".

Proposal

  1. Add an action to create a branch in the user's forked version of the project.
  2. Also allow configuration in gitlab.rb for the format of the branch names e.g. "[num]-[sanitized-branch-title]" or "issue/[num]/[sanitized-branch-title]".

Links / references

https://www.atlassian.com/git/tutorials/comparing-workflows/feature-branch-workflow https://gist.github.com/forest/19fc774dde34f77e2540

Feature checklist

Make sure these are completed before closing the issue, with a link to the relevant commit.

Edited by Christopher Friedt