Bitbucket actions not available at all

Issue #19 closed
Thomas Tardy created an issue

What I see in the log files is

2017-03-01 10:30:46,834 [1337250]  DEBUG -            BitbucketReferences - Disabled BitbucketCreatePullRequestAction action for file ....

Any idea why this happens?

Comments (10)

  1. Daniil Penkin staff

    Hello @thomastardy,

    Thank you for trying out Bitbucket Linky!

    It looks like it was not able to detect that your remote repository is hosted on Bitbucket. The possible reasons depend on your setup. Linky logs some notes when it attempts to discover remote hosting, and that happens after you open the project and then every few minutes, if some of the repositories have not been recognized.

    Let's start with inspecting remotes. Is you repository under Git or Mercurial?

    • If under Git, what is the output of git remote -v?
    • If under Hg, what is the output of hg paths?

    Cheers, Daniil

  2. Daniil Penkin staff

    Hi @thomastardy ,

    Did you have a chance to find out what remotes are listed for the repository where Linky doesn't work?

    Regards, Daniil

  3. Daniil Penkin staff

    I'm closing this issue due to inactivity. Feel free to reopen if you still experience the problem you've described.

    Regards, Daniil

  4. Thomas Tardy reporter

    Hi @dpenkin

    Sorry for missing your replies. For whatever reason I didn't receive notifications.

    To answer your questions. * I'm using git repositories * git remove -v shows

    origin  ssh://git@aaa.aaaaaa.com:9876/aa/aaaaaa.git (fetch)
    origin  ssh://git@aaa.aaaaaa.com:9876/aa/aaaaaa.git (push)
    

    Thanks for your help!

  5. Daniil Penkin staff

    Hi @thomastardy

    No worries, I'm happy to help :)

    I guess you're trying to get Linky working in a project that is hosted on Bitbucket Server. What is the HTTP URL of its UI? Is it available at http://aaa.aaaaaa.com or https://aaa.aaaaaa.com? Or maybe it has different application path, e.g. https://aaa.aaaaaa.com/some/path?

    The reason I'm asking is that Linky tries both HTTP and HTTPS on the same host in case it found a remote pointing to SSH, like in your case. However, if the port is non-standard (not 80 for HTTP, not 443 for HTTPS) or if app path differs from SSH, it won't be able to detect BBS.

    So if this is the case, you can manually configure the base URL that Linky should use for the repo. To do that, go to IntelliJ properties and find Bitbucket Linky tab (in IDEA it'll be under Other Settings, in other IDEs it might be just in the bottom of the sidebar menu) and set up the base Bitbucket Server URL, like on the screenshot.

    Make sure that that's the correct URL cause at the moment you won't be able to easily modify it after you save the changes. You can use "Test in browser" button to verify that Linky built the correct URL for the repository.

    Preferences 2017-04-06 12-41-53.png

    Let me know if that helped. Otherwise we'll look further in what might be going wrong with Linky.

    Cheers, Daniil

  6. Thomas Tardy reporter

    Hi @dpenkin

    Thanks, it works perfect now. Sorry, didn't see this configuration option before.

    Cheers, Thomas

  7. Daniil Penkin staff

    Awesome, I'm glad to hear it works now.

    I'm closing this issue then. Let me know if you have any other issues or ideas of improvements for Linky.

    Cheers, Daniil

  8. Log in to comment