Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any way to Create Pull request to bitbucket git repository using intelliJ IDEA

I have a git repository in bitbucket, is there any way to create a pull request using IntelliJ IDEA instead of doing it through web?

I found that this can be done from within IntelliJ for a github repository. But have not found anything similar for Bitbucket.

like image 656
Supun Induwara Avatar asked Oct 13 '16 05:10

Supun Induwara


People also ask

Can we create pull request from IntelliJ?

Create a pull requestFrom the main menu, choose Git | GitHub | Create Pull Request. The Create Pull Request dialog opens. Under Base Fork, specify the project that you want to send the pull request to. Either select a repository from the list populated by IntelliJ IDEA, or click Select Other Fork.

How do I connect IntelliJ to Bitbucket?

Open IntelliJ and import your local project from File->Open. Once you have imported the project in local IDE, let's enable version control Integration so that we will be able to Push and Pull changes seamlessly in that project. Select Git and click OK. Click on “+” symbol to add Bitbucket repo URL.


2 Answers

Summary: Currently not supported (Details below)

This has just been confirmed. I raised a support ticket to ask about this and received a reply:

enter image description here

If you are interested in this feature, please vote for https://youtrack.jetbrains.com/issue/IDEA-88198


Looking at this blog post, it appears that Bitbucket integration is not a plugin native to Intellij IDEA:

And the Atlassian team just did that! A new Bitbucket plugin is now available in our repository that offers a simple and well-working integration allowing you to:

  • checkout your existing Bitbucket repository and auto-open it as a project, and
  • share a project on Bitbucket instantly, without leaving the IDE.

The Atlassian plugin mentioned above is here, but it has not been updated since 2013 and even if it works for recent versions of Intellij, it does not have the functionality you are looking for.


Looking at other requests to add support to Intellij IDEA for 'Support Bitbucket functionality X', there hasn't been much traction. Examples:

Bitbucket Issue Trackers Integration (Created Aug, 2011)
Bitbucket Snippets support (Create Oct, 2015)

That would imply that the 'Bitbucket pull requests' functionality is unlikely to be supported in Intellij IDEA anytime soon.


There is another Jetbrains product, for code review, called Upsource but that does not have it either. From this jetbrains blog post:

Despite the pros listed above, there are still a few things missing that I am waiting for:

  • Swift and Obj-C support (we are a mobile app development company and iOS app development is a large part of our services).
  • More valuable code review analytics (with over 50 projects configured it is hard to track overall code review performance).
  • Support for Bitbucket pull requests (only GitHub is currently supported).
like image 56
Ashutosh Jindal Avatar answered Oct 06 '22 14:10

Ashutosh Jindal


The "Bitbucket Linky" plugin for IDEA supports this, binding it to Cmd+Shift+X P on Mac and Ctrl+Shift+X P on Windows.

like image 5
user2418914 Avatar answered Oct 06 '22 14:10

user2418914