Pull Requests via command line

Problem to solve

Create Pull Requests from the Command-Line

Further details

  • User does not have to use the Web GUI to create a push request.

  • Workflow is more consistent with native Git.

  • Git branch descriptions can be transported to Gitlab.

Proposal

Allow the user to use the git request-pull command to create a pull request and either mail or http post that to the Gitlab instance. I.e., create a parser that maps the output of git request-pull to a Gitlab pull request.

The syntax of git request-pull requires a starting commit <start>, an <url> to pull from, and a final commit <end>. The semantics are a request to merge the changes from <start> to <end>, as found on <url>.

In particular, git request-pull adds the branch description as defined by git brach --edit-description to the resulting request; I know of no other way of transporting that information across git repositories.

What does success look like, and how can we measure that?

The user can create a reasonably complete Gitlab pull request from the command line.

Links / references