youngmon/atlassian-qna huggingface dataset:
pull request title does not contain branch name
Asked by Vivek Sharma:

As per atlassian [documentation](https://confluence.atlassian.com/bitbucketserver085/create-a-pull-request-1185452298.html?utm_campaign=in-app-help&utm_medium=in-app-help&utm_source=stash), point 4 says " By default, the pull request title will contain the commit message or branch name." We are using Bitbucket v8.5.1 but the Pull request title contains only commit message not the branch name. How can we alter this settings to have the branch name in pull request title ?

Thanks a lot


Answers:
author: Aron Gombas _Midori_
body: I think the description you linked suggests is that **either** the commit message **or**the branch name appears in the PR's default title:

1. If there is a commit on the source branch that is not available on the target branch yet -\> make commit message the PR's default title.
2. Otherwise (if the source branch doesn't contain any additional commit when compared to the target brach) -\> make the source branch name the PR's default title.

So I think, depending on a condition, it is either one or the other, but not both and it is not configurable.

comments: author: Vivek Sharma
body: Ok. Thanks for the response. For Jenkins-JIRA integration, I rely on the JIRA ID in the commit message. Usually developer puts the JIRA ID while creating feature branch(e.g., feature/ABCD-1234) however in case of commit message developers mostly does not mention the JIRA ID. In Bitbucket, when we merge the PR, the PR title becomes the commit message. Hence, I am investigating if feature branch name can be included with PR Title so that when it gets merge, it will become part of commit message and I extract the JIRA ID from commit message.


Tags: bitbucket-server

server
Tickets are not picked-up by deployment
Asked by Vlad Kusok:

Hey All,

Looks like we are running into an issue sometimes, we are using the Git-Flow approach during development, however after we create the release/\* branch from develop and deploy from the release/\* branch, not all tickets that are under that deployment are picked up and as a result automations doesn't work for those tickets.

The manual check has shown that ticket keys are present in "Commits" tab in deployments, however under "Issues" they are not present. We are following git commit messages pattern that has issue key to be mandatory filled in.

Please share why it might happen, any assistance is appreciated.


Answers:
author: Theodora Boudale
body: Hi Vlad,

This is a bit difficult to troubleshoot without checking your repo's deployments.

You can create a ticket with the support team and provide the repo URL and the build number of such a deployment. If we have an open support ticket, the engineer working on your case will be able to access the repo, and troubleshooting should be faster. You can create a ticket via <https://support.atlassian.com/contact/#/>, in "What can we help you with?" select "Technical issues and bugs" and then Bitbucket Cloud as product. Please make sure to provide the workspace URL of the workspace where this repo belongs to.

Otherwise, I would need some additional info so I can try to reproduce (I haven't been able to reproduce it so far, but I can try again with a setup that is similar to yours):

* Does the deployment step belong to a branch pipeline, a custom pipeline, a pull-requests pipeline, a tags pipeline, or the default pipeline?
* Is it a pipeline that runs automatically or do you trigger it manually?
* Were there any other deployments to that environment, before the problematic deployment?
* How many commits show in the "Commits" tab in deployments?
* Are there issue keys in all commits or only some?
* You mentioned that ticket keys are present in "Commits" tab in deployments. Do these ticket keys also show as links to the respective Jira issues?

It is also not clear what you mean by "automations doesn't work for those tickets". What kind of automations do you have that do not work when this problem occurs?

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
how can we integrate dynamics CRM with Bitbucket?
Asked by Sanket:

Any Updates on how we can integrate dynamics CRM with Bitbucket?  
I need to import and publish solutions in CRM from bitbucket. Any Idea how we can do that?


Answers:
author: Theodora Boudale
body: Hi [@Sanket](/t5/user/viewprofilepage/user-id/5238687) and welcome to the community!

We don't have an official integration with Dynamics CRM.

If Dynamics CRM offers an API or a CLI that can perform the actions you want, then you may be able to use [Bitbucket Pipelines](https://support.atlassian.com/bitbucket-cloud/docs/build-test-and-deploy-with-pipelines/) in order to run builds and use this API or CLI during your build.

For Pipelines that run in our own infrastructure, every step runs in a Docker container where the repo is cloned (unless you disable cloning). The commands added to a step's script are Linux commands.

You can also use one of our self-hosted runners that allow you to run builds in Pipelines on your own infrastructure, and you won't be charged for the build minutes used by your self-hosted runners:

* <https://support.atlassian.com/bitbucket-cloud/docs/runners/>

The first step though would be to figure out if Dynamics CRM offers an API or a CLI that you can use in order to perform the actions you want.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Unable to find OAuth consumer keys in bitbucket cloud
Asked by Ashwin Velappan P V:

Hi Team,  

Currently I am working on integration between bitbucket cloud and terraform enterprise.  

In terraform, in order to add bitbucket VCS provider, OAuth consumer keys are required.  
but I am unable to generate OAuth consumer keys from bitbucket cloud. Because it is not showing under workspace settings.  

As per the below document link, OAuth token can be generated from under workspace setting in bitbucket cloud, but in my portal it is not showing anything related to OAuth configuration. PFA.  

<https://support.atlassian.com/bitbucket-cloud/docs/use-oauth-on-bitbucket-cloud/>  

Please help me to generate the OAuth token in bitbucket cloud.![bitbucket_workspace_settings.png](https://community.atlassian.com/t5/image/serverpage/image-id/262035i019B1BA165AA989A/image-size/large?v=v2&px=999 "bitbucket_workspace_settings.png")![Key&secret is required to integrate in terraform enterprise.png](https://community.atlassian.com/t5/image/serverpage/image-id/262036i7D699B99C207361A/image-size/large?v=v2&px=999 "Key&secret is required to integrate in terraform enterprise.png")![Steps to create OAuth token in bitbucket cloud_1.png](https://community.atlassian.com/t5/image/serverpage/image-id/262040i4EF1196C95CCA819/image-size/large?v=v2&px=999 "Steps to create OAuth token in bitbucket cloud_1.png")  

Thanks  


Answers:
author: Theodora Boudale
body: Hi [@Ashwin Velappan P V](/t5/user/viewprofilepage/user-id/5238662) and welcome to the community!

The first screenshot you posted is from your **Personal Bitbucket settings**. This will show you settings related to your Bitbucket account.

A Bitbucket Cloud account can have access to one or multiple workspaces and OAuth consumers are available for workspaces (not an account).

You can follow these steps in order to access the OAuth consumers options:

1. Select your avatar (Your profile and settings) from the navigation bar at the top of the screen.
2. Select **All workspaces**.
3. For the workspace you want to add a consumer, select **Manage** under the **Actions** column
4. On the sidebar, under **Apps and features** , select **OAuth consumers**.
5. Click the **Add consumer** button.

Please keep in mind that you need to be an admin of a workspace, in order to be able to view the **Manage** option and generate an OAuth consumer. Otherwise, an admin of the workspace needs to generate the OAuth consumer.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
How to create new actions for the overflow (...) menu
Asked by CJCombrink:

Hosting: Bitbucket server (migrating to Data Center soon, in the coming week).

Is it possible to add a new button to the "..." menu of a repository that can pop up a dialog for the user to fill out and then send a REST command to an external service?  

My use case is a "Create release" button, the user populate some fields etc. , after which a REST request is sent to Jenkins to start a build and some other actions or services.  

The content of the dialog will probably be populated with information from the repo, like a version number in a file or results of REST requests, depending on how easy or this is.


Answers:
author: Aron Gombas _Midori_
body: It is possible to add new entry points (menu items in menus, button in different screens, custom navigation, custom screens, etc.) to the Bitbucket Server user interface, but it requires developing a so-called P2 plugin ("app"). Bitbucket Data Server is the same as Bitbucket Server in this sense.

If you are ready to develop an app, start reading here: <https://developer.atlassian.com/server/bitbucket/>


Tags: bitbucket-server

server
how to cherry pick up a new update after reset to very old commit?
Asked by Jeff Lu:

Hi All,

Here is my situation, I want to reset my commit to very old commit, but only need to pick up 1 or 2 after the very old commit? is it possible.

for example:

commit 10

commit 9

commit 8

commit 7

...

...

commit 1.

what I want to do is to reset to commit 1 and pickup commit 8 only.

Thanks,


Answers:
author: bgannin
body: Hi [@Jeff Lu](/t5/user/viewprofilepage/user-id/2247372),

I would recommend going back to commit 1 (double click on the commit in History), creating a new branch, and then cherrypicking commit 8 onto that new branch. Hope that helps.

Brian Ganninger  
Principal Developer, Sourcetree
Registration web callback on fresh install of Sourcetree wants to open SmartGit
Asked by nhada7:

Similar case as following Tower, but with SmartGit.

Registration web callback on fresh install of Sourcetree wants to open Tower

<https://community.atlassian.com/t5/Sourcetree-questions/Registration-web-callback-on-fresh-install-of-Sourcetree-wants/qaq-p/972471>

SmartGit seems not have the client app configuration in application preferences.

Is there any way to work around?


Answers:
author: bgannin
body: Hi [@nhada7](/t5/user/viewprofilepage/user-id/3001666),

There is not a workaround, we are behaving correctly. The sourcetree:// URI is meant for our app, not others, to use. If SmartGit is the problem, you'll need to contact their support team and/or remove the app if they don't provide a way to respect other applications' functionality.

Brian Ganninger  
Principal Developer, Sourcetree


Tags: mac

smartgit

tower
LFS is stuck
Asked by yeilam:

\* Cloning our "STV" repository

\* Then it asks me: ".. you checkout is using lfs components... lfs id missing ... do you want to install lfs"

\* I answer yes. (BTW, when I repeat the process it still asks me, as if the first re-installation did not change anything)

\* Then he asks me if to download the lfs components. I answer yes, it starts working and finally stuck. see screen shot.

![Untitled.png](/t5/image/serverpage/image-id/50768iB2E9DECFFB71F752/image-size/large?v=v2&px=999 "Untitled.png")


Answers:
author: minnsey
body: Can you pull from the command line?
How to use Sourcetree + Azure DevOps + Git LFS?
Asked by L05:

I've managed to successfully clone a couple Azure DevOps repositories using Sourcetree, but I'd like to make sure I'm using Git LFS with them so that I'm properly managing binary files.

I found the Git LFS menu in Sourcetree under *Repository \> Git LFS* , and I selected *Initialise Repository* . I'm using this workflow to develop for Unreal Engine, so I added two types of files to track to start: *\*.umap* and *\*.uasset*.

To be clear, I didn't know Git LFS wasn't setup by default, so I initialized the repository after I had received a warning that one of my *\*.umap* files was over 10 mb in size. Once I initialized Git LFS and started tracking the specified file types, I noticed that the *\*.umap* file was staged with both a + and - sign, which is different than how it usually looks when committing.

Does this indicate that it's working properly? I'm new to managing non-code related files using Git, and from what I've read, Git LFS seems like a powerful way to manage large files, so any help understanding this would be helpful.

Thanks!


Answers:
author: L05
body: It appears that it's working correctly. I tried adding some larger files to test it, and I saw the log below when showing full output on commit.

![Screenshot (89).png](https://community.atlassian.com/t5/image/serverpage/image-id/50753iE47BBF2FEBD2DA17/image-dimensions/712x474?v=v2 "Screenshot (89).png")


Tags: azure

git

git-lfs

repository

visual-studio
Sourcetree hangs on pull
Asked by vj:

Hello Source tree is hanging on pull from bit bucket, after remote clone. I have updated to latest it still hangs.

1. If I delete the repo on local, and clone remote it works.
2. Then when I go to pull it hangs again.

<https://community.atlassian.com/t5/Sourcetree-questions/Sourcetree-stuck-on-loading-when-pushing-pulling/qaq-p/599451>

<https://community.atlassian.com/t5/Sourcetree-questions/pull-on-sourcetree-takes-forever/qaq-p/659051>

These issues still remain

thanks


Answers:
author: minnsey
body: Hi  

What version of Sourcetree are you running.  

Can you pull from the command line, ultimately this is what Sourcetree runs. Occasionally authentication issues can cause it to hang.  

Does Sourcetree show any more information in the console window where it shows the running pull command?


Tags: bitbucket

bitbucket-cloud

bug

cloud
Trouble logging in to SourceTree
Asked by Ivan Mitri?:

Hello,

When I was using SourceTree (version 3.1.2, Mac OS 10.14.4), I was prompted for password for every push and pull I did, and after some time, it started showing me errors.   

I tried reinstalling SourceTree, I successfully passed installation process but when I try scanning remote repositories, I am again prompted to sign in. When I click the sign in button, I gat this error:

Invalid client_id

This integration is misconfigured. Contact the vendor for assistance.

Can you please help me to set SourceTree correctly?

Kind regards,

Ivan


Answers:
author: bgannin
body: Hi [@Ivan Mitri?](/t5/user/viewprofilepage/user-id/2692640),

We've not encountered this so far but QA is going to attempt to reproduce and I'm started a discussion with the Bitbucket Cloud team as well. We're sorry for the hiccup and appreciate your patience as we get to the root of this.

Brian Ganninger  
Principal Developer, Sourcetree

comments: author: Richard Bergeron
body: what a pain.

I get

Confirm access to your account {#toc-hId--1416466287}
-----------------------------------------------------

Invalid redirect_uri

This integration is misconfigured. Contact the vendor for assistance.


author: Simon Steel
body: i get This integration is misconfigured. Contact the vendor for assistance.


author: adamfother
body: Same issue for me when trying to confirm access to my bitbucket account. Any advice?


author: Daniel Carr
body: I'm getting the same on a fresh install of SourceTree for Windows.

I had a BitBucket account in the past and not long ago came back to it and had to change to an Atlassian ID. I don't know if that has anything to do with it.


author: Jimmy Seddon
body: Hey Guys,

I've seen a bunch of people posting about the url redirect issue this morning.

I think you might be running into this:

<https://jira.atlassian.com/browse/SRCTREEWIN-10965>

or

<https://jira.atlassian.com/browse/SRCTREEWIN-11942>

While there isn't a posted solution for it yet, you might want to go vote, watch and comment on that issue.

Sorry I can't offer more help.

-James


author: Josh Nelson
body: Same issue here. Looks like you probably have an OAuth config problem in your production environment.

Version 3.1.3, and 3.1.2 (Windows) both have the same problem.

My url includes the redirect_uri querystring parameter of 'http://localhost:34106/' - so either your installers have an invalid baked localhost uri redirect, or your production OAuth environment is not allowing a proper OAuth bounce-back to the localhost url.

Version 2.6.10 uses a different authentication interface and I was able to get that version to authenticate so I could complete installation successfully.


Tags: mac
Cannot login with client on OS X
Asked by thistlillo:

I cannot login with the latest SourceTree on Mac OS X 10.11.6

The client receives an "invalid redirect_url"

with the explanation "This integration is misconfigured. Contact the ventor for assistance".

I have login issues very often.

How can i solve this problem?


Answers:
author: bgannin
body: Hi [@thistlillo](/t5/user/viewprofilepage/user-id/1114477),

I'm sorry to report that prior registration methods for Sourcetree and our Bitbucket Cloud login (before 3.0) are no longer compatible. Unfortunately there's no workaround available, it's a technical limitation on our side. Existing accounts and installations are unaffected. Our apologies for the hassle.

Brian Ganninger  
Principal Developer, Sourcetree


Tags: mac
Multiple repository in same workspace
Asked by sarder-hilbert:

HI I need to setup 2 repository in the same workspace in Sourcetree.

so there will be 3 section to work on. One is the Master, Develop and the other one is Dev

here Master is one repo and Dev will be another repo. So after working on the Develop branch I want to merge it to the Dev repo to test the changes in dev mode.

Then everything ok then merge to master from the develop branch.

Let me know thanks.


Answers:
author: minnsey
body: Hi  

If you are using different repositories then you are effectively working as if you have formed one from the other. As such you would need to set up each repository as a remote of the other and then you can pull from one into another.  

But what not just use branches?

comments: author: sarder-hilbert
body: HI Michael,

Thanks for the reply. It was my mistake, Creating branches will do I think.

I need a setup like this;

dev - pointing to a remote site hosted a different domain

master - pointing to my production site

develop - pointing to my local git

Everytime I work first I need to check locally, if ok then merge it to dev which is in different server. After getting checked by the managers/ requesters finally I merge it to the master/ production branch.

Just need to know how will I be able to do that.

Also If possible if I can do it using source tree.

Please let me know.


author: minnsey
body: Hi  

I think you might want to try git-flow, it is built into Sourcetree  
<https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow>
Creating PR from Sourcetree leads to old Github repo rather than new Bitbucket repo
Asked by Kasper Rug?rd Thomsen:

Not sure if this is a bug or if I'm missing some setting somewhere, but we've recently moved our repository from Github to a Bitbucket server solution (not bitbucket.org).

Now usually I would be able to create a PR directly inside Sourcetree by right-clicking the branch I want to start from and then choosing \`Create Pull Request\`.

I can still use this feature, but problem is that Sourcetree opens up my browser pointing towards our old Github repository (which hasn't been removed yet and probably never will).

How do I make the \`Create Pull Request\` point to our new repository URL?


Answers:
author: minnsey
body: Hi  

Open the Repository Settings, the cog in the upper right of the UI, and then check the settings for the **origin** remote by double clicking it. I'm assuming origin now points to Bitbucket, if so check the remote is associated with either a main Bitbucket account in Sourcetree or a *generic* bitbucket account

comments: author: Kasper Rug?rd Thomsen
body: Thanks that was it - kinda. It was the part \`Optional extended integration\` that was still pointing towards Github apparently. After changing that to Bitbucket Server I now get to do create PRs towards our new remote :-)
Why does SourceTree 3.1.2 use 3.3GB of memory?
Asked by Jason_Price:

SourceTree seems to be using an awful amount of memory (over 3GB) while it is sitting idle.  

Is this normal and is anyone else experiencing the same?  

<br />

![SourceTree Memory.PNG](/t5/image/serverpage/image-id/50668i80BAD71D07127E69/image-size/large?v=v2&px=999 "SourceTree Memory.PNG")


Answers:
author: Jason_Price
body: I have determined a git repository was created at the root of the c drive and Sourcetree was scanning the C drive.


author: Patrick Perron
body: Mine is taking 21Gb of memory and 20% of mu CPU:  
![Sourcetree 2024-01-24.png](https://community.atlassian.com/t5/image/serverpage/image-id/302336iDEC6A3074E4C61FA/image-size/large?v=v2&px=999 "Sourcetree 2024-01-24.png")

Was working fine this morning and acting weird since I create a branch of my main branch (not in my root C: drive).

Restarted computer and when I open Sourcetree, it kind of freeze and reach the numbers I posted...


author: Guathan Medeiros
body: i have the same problem, and i don't have a .git folder in my c :, what should i do?


author: Piotr Markielau
body: ![2020-02-21_4-17-14.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/83906iF535AD78C7816740/image-size/large?v=v2&px=999 "2020-02-21_4-17-14.jpg")

I am having the same problem. SourceTree just freezes and it is impossible to use it!

comments: author: Jason_Price
body: check to see if there is a .git folder at the root of the c drive. Sourcetree will scan all files in the C drive if there is a git folder there.


author: Piotr Markielau
body: There was no .git folder at the root of C. I ended up deleting SourceTree and using PyCharm VCS.


author: minnsey
body: Hi  

It shouldn't be. If you expand it do you get anymore details, e.g. lots of child git processes? Also has Sourcetree been open a long time, have a lot of open tabs etc?


Tags: memory

performance
SourceTree????????????????????
Asked by ????:

?????????160??PC?SourceTree???????????Atlassia??Bitbucket???????????????????????


Answers:
author: Ai Hirama
body: ?????????????????????????

Sourcetree????????????????????????????Atlassian???Bitbucket???????????????????

????????????????

comments: author: ????
body: ?????????????

??????????????????


author: Ai Hirama
body: ??????????????????

??????????????????????????????


Tags: language-ja
Sourcetree bookmarks sidebar disappears when closing active tab, even when sidebar is pinned
Asked by Jeff:

Windows, Sourcetree version 3.1.2

I use the bookmarks sidebar (ctrl+ B) to get a nice view of all my local repos. Double clicking a repo here brings up a tab for the repo. The sidebar offers the option to pin it, which I've done. However, if I close the tab of whatever repo is active, the bookmarks sidebar disappears, even though I've pinned it. This doesn't seem like intended behavior given the pin option. Is this a bug, or am I doing something wrong?


Answers:
author: minnsey
body: Hi  

There are some improvements to this behavior going through beta testing currently.

comments: author: Jeff
body: Great, I will keep an eye out for updates then. Thanks.


Tags: windows