3

Looking through the JGit API for a way to create a Merge Request in GItlab. Is there a way to get it done?

Shababb Karim
  • 3,614
  • 1
  • 22
  • 35
code-geek
  • 441
  • 1
  • 8
  • 22

1 Answers1

3

Merge request or Pull Request is not a GIT specific feature, so its natural there is no available way to create one using JGit.

What you can do however is use the Rest API from Github to create a pull request from your Java code. I am not sure whether you are using Github though, but popular Git repositories do have such an API which you can utilize to create a merge request.

Shababb Karim
  • 3,614
  • 1
  • 22
  • 35