Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JGit - Create Merge Requests through Java

Tags:

java

gitlab

jgit

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

like image 691
code-geek Avatar asked Jan 26 '26 11:01

code-geek


1 Answers

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.

like image 154
Shababb Karim Avatar answered Jan 28 '26 23:01

Shababb Karim



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!