youngmon/atlassian-qna huggingface dataset:
Approve Merged Pull Requests
Asked by connor_ferguson:

We used to be able to approve or request changes on already merged pull requests (Bitbucket Cloud) but have recently noticed the approve button is no longer available once the PR is merged. Is there a setting to allow this again?


Answers:
author: Ben
body: Hey Connor,

This change was implemented recently and was a change that was intended.

Bitbucket is improving its compliance posture by freezing the state of a PR once it has been merged/declined. Changes to branch restrictions will no longer be reflected in merged PRs:

* Minimum number of approvals

* Minimum number of approvals from default reviewers

* No changes are requested

* No unresolved pull request tasks

* Minimum number of successful builds for the last commit with no failed builds and no in progress builds

Changes to the following actions will no longer be permitted on merged PRs:

* Tasks

* Reviewer approval status

In other words, users will not be able to edit tasks or approval status on a merged PR, nor will updates to branch permissions in repository settings retroactively update the merge checks on a merged PR.

We have had users raise concerns about this change, if you would like to have your say - please refer to this ticket raised with our developers below, vote for it to improve visibility and "Watch" it to receive future updates:  
<https://jira.atlassian.com/browse/BCLOUD-22396>

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Bitbucket workspace ID is not available (but it's not used)
Asked by Whitecoate:

I just created the account and trying to setup the Bit Bucket Workspace.   
Somehow it's not allowing me to take the Workspace ID same as my account username.   

Is there a way to fix it?


Answers:
author: Patrik S
body: Hello [@Whitecoate](/t5/user/viewprofilepage/user-id/5126398) ,

Welcome to Atlassian Community!

You are not being able to use that particular ID because all the **workspaceIDs** in Bitbucket Cloud must be **globally** **unique**, considering all the other existing workspaces in the platform, including different workspaces than yours. Since there's likely a workspace already using the ID you are trying, it's expected that you are not being able to create a new workspace with that name.

Hope that helps to clarify your questions.

Thank you, [@Whitecoate](/t5/user/viewprofilepage/user-id/5126398) !

Patrik S


author: Nic Brough -Adaptavist-
body: Welcome to the Atlassian Community!

What makes you think the ID is not used? Could someone have already used it, and then stopped, so it's gone dormant? Atlassian delete these eventually, after a few months, but I don't know if they keep the name reserved for longer


Tags: bitbucket-cloud

cloud
I changed my account email address and no longer receive bitbucket commits, why?
Asked by Mary-Kyri:

I updated my email address linked tom account, but now I no, longer receive the bit bucket commits to my new email address. Does anyone know why?

Or maybe I did not change my email address correctly? Steps to change the email please?


Answers:
author: marc -Collabello--Phase Locked-
body: Emails about bitbucket commits go to the email address in git, which might be different from the account email address if you changed the account email.

You can see your git email by typing: \`git config --list\` on your local machine.


Tags: bitbucket-cloud

cloud
Unuse project in bitbucket
Asked by sangsub.kim:

We have a lot of projects.

Some projects have already ended and exist only on bitbucket.

The project has been closed and is rarely accessed by users.

But I don't want to clear it for the record.

The problem is that when you run bitbucket, both currently used and unused projects are displayed.

What would be the best way to operate?


Answers:
author: Ulrich Kuhnhardt _IzymesCo_
body: You could change the project name in Project settings from 'MyProject' to 'MyProject_OBSOLETE'

The project key can remain the same.

Hope it helps.

Best, Ulrich

// [Izymes](https://marketplace.atlassian.com/vendors/1210584/izymes-pty-ltd) - Tools for efficient teams


Tags: bitbucket-cloud

cloud
curl example of adding a permission group to a repository
Asked by Len Esterhuyse:

Detailed example of adding a permission group to a repository with curl?


Answers:
author: Theodora Boudale
body: Hi [@Len Esterhuyse](/t5/user/viewprofilepage/user-id/4894962),

You can use the following endpoint:

<https://developer.atlassian.com/cloud/bitbucket/rest/api-group-repositories/#api-repositories-workspace-repo-slug-permissions-config-groups-group-slug-put>

An example with curl is as follows:

```
curl -u BitbucketUsername:AppPassword -X PUT -H "Content-Type: application/json" https://api.bitbucket.org/2.0/repositories/<workspace-id>/<repo-slug>/permissions-config/groups/developers -d '{"permission": "write"}'
```

where

**BitbucketUsername** is the username of a Bitbucket account with admin permissions to the repo  
**AppPassword** is an app password for this account   
**\<workspace-id\>** replace with the workspace id where the repo belongs  
**\<repo-slug\>** replace with your repository slug  
**developers** replace with the group slug of the group you want to add  
**write** is the permission you want to give, it can also be 'read' or 'admin'

If the group already has access to the repo, the group permission will be changed to what you set in this call. Otherwise, the group will be added to the repo with the permissions you set in the call.

Kind regards,  
Theodora

comments: author: Len Esterhuyse
body: Thank you very much for the example [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086)

Tweak a bit by escaping last bit to :

-d "{\\"permission\\": \\"write\\"}"


Tags: bitbucket-cloud

cloud
Active Directory and Bitbucket on Linux server
Asked by MD:

Can active directory be setup if Bitbucket server is installed on Linux?


Answers:
author: Christian Glockner
body: Hi,

Yes, you can configure Active Directory to be used as a User Directory even if Bitbucket Server is running on Linux.

Cheers,

Christian

Premier Support Engineer

Atlassian

comments: author: MD
body: I am not sure what this mean: "Please note that Using Windows Authentication between a Linux Bitbucket Server installation and SQL server is not supported. Windows authentication is only available for Bitbucket instances running on Windows. It cannot be used on Linux because Microsoft does not provide shared objects for it. You will need to enable mixed-mode authentication for SQL Server if you are running Bitbucket on Linux."

Can you please explain. Thank you


Tags: bitbucket-server

server
Pipelines seems to remove text from output
Asked by rob_norman-clarity:

I have the following lines in my bitbucket-pipelines.yml inside a step:

```
- printf "$conf['reverse_proxy'] = true;\n" >> settings.php
- printf "$conf['reverse_proxy_addresses'] = array($_SERVER['REMOTE_ADDR']);\n" >> settings.php
```

which should append the two lines of text into the settings.php file. Neither of the two $conf or $_SERVER are variables defined in my repository or deployment, but when I check the content of the file they are being removed and all i'm left with is:

```
['reverse_proxy'] = true;
['reverse_proxy_addresses'] = array(['REMOTE_ADDR']);
```

at the bottom of the file. I have tried everything I can think of to escape the $ and i've tried echo instead of printf in case it was some weird edge case. I've also tried running the commands directly in a bash terminal and they output exactly what i'd expect.

In case it's relevant, i'm using the atlassian/default-image:3 image for the pipeline


Answers:
author: Mark C
body: Hi [@rob_norman-clarity](/t5/user/viewprofilepage/user-id/5125433),

Welcome to the community.

I do believe this is possible using **echo** command, you'll just need to produce those literal $ signs outside the double quotes.

You can use the below commands instead:

```
- echo '$conf'"['reverse_proxy'] = true;\n" >> settings.php- echo '$conf'"['reverse_proxy_addresses'] = array("'$_SERVER'"['REMOTE_ADDR']);\n" >> settings.php
```

Hope it helps and let me know how it goes.

Regards,  
Mark C


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
How to retrieve all the users and their respective permissions for a particular repository?
Asked by sachin shejul:

I want to fetch details about user and their permission for a particular repository in a single API. Currently I am able to fetch details about all the repos for a particular workspace and using response of it, I have to use another API to fetch user and permission details.

Is there any way that for a particular project, I will get the details about all repos and their user and permissions under that project?

Thanks in advance


Answers:
author: Theodora Boudale
body: Hi [@sachin shejul](/t5/user/viewprofilepage/user-id/5125380) and welcome to the community.

This is not possible to do with a single API call.

Please keep in mind that there are two ways a user can have access to a repo

**(1)** via a user group (i.e. you invite a user to a user group, and then you add this user group to a repo from **Repository settings \> User and group access**)

**(2)** direct repo access (i.e. you add a user to a repo from **Repository settings \> user and group access**)

You can use this endpoint to list all explicit group permissions for a repository:

* <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-repositories/#api-repositories-workspace-repo-slug-permissions-config-groups-get>

You can use the following endpoint to list all explicit user permissions to a repository:

* <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-repositories/#api-repositories-workspace-repo-slug-permissions-config-groups-get>

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Do you have a target date for the next Bitbucket LTS release that we can expect it to roll out?
Asked by Francisco Villena:

Hello

In order to plan a Bitbucket version upgrade, I would like to know, when is expected to be released next LTS Bitbucket version.

Thanks


Answers:
author: Alex Koxaras _Relational_
body: Hi [@Francisco Villena](/t5/user/viewprofilepage/user-id/4575677)

Atlassian made a post here <https://community.atlassian.com/t5/Data-Center-articles/Announcing-the-next-Bitbucket-Data-Center-Long-Term-Support-LTS/ba-p/2122796> about the next LTS which is coming this quarter (Q1 2023).

Let me know if that helps.


Tags: bitbucket-server

server
Scheduled Repository Polling in Pipelines
Asked by daniel copping:

Is there any way to configure pipelines with repository polling on a schedule? This feature was available in Bamboo (but missing in Bitbucket cloud).  

The only option I can find in Bitbucket Cloud is to set the pipeline to *RUN* on a schedule. The problem here is that we are using the build number for versioning. The pipeline is using this value to inject into the code and also to tag the repository. We don't want to run a build (which generates a new build number) unless there are changes in the repository.

Repository Polling, as it works in Bamboo, checks for changes in the repo (or any number of repos) and only triggers the build if there are changes. Is a similar function available? Are there any plans to introduce this feature in Bitbucket Cloud?

Thanks

Dan


Answers:
author: Theodora Boudale
body: Hi Dan and welcome to the community!

I'm afraid that this is not possible at the moment.

I went ahead and created a feature request in our issue tracker:

* <https://jira.atlassian.com/browse/BCLOUD-22413>

I mentioned your use case in that ticket. Please make sure to add your vote (by selecting the **Vote for this issue** link) as the number of votes helps the development team and product managers better understand the demand for new features.

You are more than welcome to leave any feedback, and you can also add yourself as a watcher (by selecting the **Start watching this issue** link) if you'd like to get notified via email on updates.

Implementation of new features is done as per our policy [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) and any updates will be posted in the feature request.

Kind regards,  
Theodora


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
"already has a repository with this name."
Asked by Sam Briggs:

I am trying to create a new repo and I keep getting "already has a repository with this name."   

Yet I can't see it in the list or repositories or if I search via URL, I get URL not found.

Does it exist or is it a bug?


Answers:
author: Nic Brough -Adaptavist-
body: Welcome to the Atlassian Community!

Both. The bug (in my opinion) is that the error message is a bit unhelpful - it should be saying "there is already a repo with this name, but it is not one you have any access to view".

comments: author: marcioprudencio
body: Hi Nic, I'm having the same issue. Even in different projects, I'm receiving this message. Why I can't have the same repository name if they are in different projects?  

Ex:

Project \[ClientOne\] =\> Repo \[public_html\]

Project \[ClientTwo\] =\> Repo \[public_html\]  

Regards;


author: Nic Brough -Adaptavist-
body: Because projects are a view, not a container. Your repositories need to have unique names to help people to distinguish between them.


author: marcioprudencio
body: I get it [@Nic Brough -Adaptavist-](/t5/user/viewprofilepage/user-id/781454), thanks for the reply, although still sounds like preference to me, not a thing that should be mandatory.  

So to me the only solution I see would be to use different names like \[public_html_01 ... 02\] and after pull the updates, delete the original \[public_html\] folder and rename the folders back to \[public_html\] which is the root folder of Hostinger. Is that make any sense to you?

\*Just a note here: We are talking about Private repositories. People shouldn't be looking for these...

Regards;


author: Nic Brough -Adaptavist-
body: I don't think it's a preferences problem, I think it's an identification problem, easily solved by having uniqueness.

Yes, you could use different names like that, or you could choose some other identifier. One of my clients simply prefixes the name of the service to it.


author: marcioprudencio
body: Get it, thanks a million Nic!

Regards;


Tags: bitbucket-cloud

cloud
How do I delete\remove a push message from Bitbucket?
Asked by Naveen Kumar D P:

Hello All,

I want to remove/ delete the rejected commit messages.

Reason is when ever 2nd am try to commit a valid message it wont accept

It returns as message is rejected.

Thanks

Naveen


Answers:
author: Manju
body: Please detail the issue with screenshots/error messages and the version of Sourcetree along with the OS used and git version you are using to help you on this.
Source tree problem install
Asked by nina_bernard:

Hi, I had some issues with Win10 and I work now on new installation of win 10.

I try to reinstall SourceTree but when I execute the application and click on "use a existing account " I have a white scrren and when I click on "go to my atlassian" I see that support expire avril 2018 , but I use that in May so I don't know why it can't install now ?


Answers:
author: Mikael Sandberg
body: Hi [@nina_bernard](/t5/user/viewprofilepage/user-id/1452508),

And welcome to the Atlassian Community.

See if the workarounds mentioned in this thread helps, <https://community.atlassian.com/t5/Sourcetree-questions/Source-tree-doesn-t-work-on-windows-10/qaq-p/659483>

Sourcetree relies on Internet Explorer to access <https://id.atlassian.com/> to validate your account, so you could try and see if you can get to that URL directly from IE.

comments: author: nina_bernard
body: Hi Mikael

Tnank you for your answer, I try the first possibility but it isn't working.

It's weird because it was working before on my old win10.


author: Mikael Sandberg
body: Okay, then check out this thread and see if the workarounds in it helps, <https://community.atlassian.com/t5/Sourcetree-questions/Use-an-existing-account-window-is-blank/qaq-p/643924>
CVE-2018-11235, is there a patch/fix for SourceTree?
Asked by Sandra Rivera:

CVE-2018-11235, is there a patch/fix for SourceTree?


Answers:
author: bgannin
body: Hi Sandra,  

There aren't yet but we are currently working on updates that include Git 2.17.1. Until these are available we recommend installing and using it directly as detailed in [our article about configuring Git](https://community.atlassian.com/t5/Sourcetree-articles/Tip-from-the-team-configuring-Git-or-Mercurial-in-Sourcetree/ba-p/808919).

Brian Ganninger  
Product Manager, Sourcetree


Tags: cve

patch
Cannot Push (fatal: unable to access 'https://blah': OpenSSL SSL_connect: SSL_ERROR_SYSCALL in conne
Asked by davidosullivan:

I have recently bought a new computer.

I started working on a previous repo and to begin with I was amazed that installing Sourcetree seemed to 'just work'- once I opened the repo it noticed all the changes I'd made. Great

Now I am trying to push them and it wont do it.

I get:

git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags origin master:master  
fatal: unable to access '<https://myrepo.git/>': OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to bitbucket.org:443

And I cannot find anything to fix it. Tried uninstalling and re-installing, deleting the passwd file, and a few other suggestions on here but no progress...

Thanks in hope!


Answers:
author: davidosullivan
body: Also I'm using Windows 10, and I'm also using Sourcetree so I dont have to use the CLI because I dont know how to use that/undertstand it....

comments: author: davidosullivan
body: The solution I found that worked \*after uninstalling the free anti virus software that came free with my computer in case that was causing the issue\* (anyone gonna refund me the cost of that?!) was to add '104.192.143.3 bitbucket.org' to the windows hosts file as described here:

<https://bitbucket.org/site/master/issues/13060/failed-to-connect-to-bitbucketorg-port-443>

This is an insane solution and should not be necessary for any decent software. Sourcetree should be utterly ashamed of themselves that they cannot make their product work without hacks like this on brand new DELL computers.


author: davidosullivan
body: Oh jesus, now I have set up a new local account on this computer THIS doesn't work either!!!!!!!

Now I get...

Logon failed, use ctrl+c to cancel basic credential prompt.  
remote: Invalid username or password. If you log in via a third party service you must ensure you have an account password set in your account profile.  
fatal: Authentication failed for 'https://davidosullivan@bitbucket.org/davidosullivan/ice2017.git/'

PLEASE IS THERE ANYONE WHO CAN HELP ME GET THIS SORTED FOR ANY AMOUNT OF MONEY I AM TOTALLY SICK OF IT!!!!!!!!


Tags: push
How do I clean up previously tracked branches in SourceTree?
Asked by Richard Quadling:

I've got several branches that I've worked on that have been tracked on origin.

The branches have been merged into master and have been deleted on origin.

If I use the 'Fetch' option and select the 'Purge' option, I can see that branches that have been removed on origin.

But the list of branches I see locally still exist.

I can see that at this stage, there's no difference between a local branch that has not been pushed to origin and a branch that had previously been pushed to origin but is now deleted on origin.

Is there a way to keep this in sync in some way?

By that I mean, if the branch is deleted on origin, then really delete it locally, including the tracking branch data (I think that's what the list of branches is in SourceTree under WORKSPACE - not the Remote branches).

I'm on MacOS using SourceTree 2.7.3 (169) with the dark theme.


Answers:
author: Mikael Sandberg
body: Git has a default disposition of keeping data unless it's explicitly thrown away. Prune will only remove the remote-tracking references, not the local branch itself.

There is a request to have the feature to sync removed remote branches with local ones, [SRCTREEWIN-8631](https://jira.atlassian.com/browse/SRCTREEWIN-8631). This one if for Windows, I could not find one for Mac, but add a comment that you would like to see this functionality on Sourcetree for Mac too.

comments: author: Andreas Beer
body: at least adding some icon that indicates "remote has been deleted" would be convenient for the manual cleanup.


author: Schroef
body: Why wouldnt they make the same functionality also available for OSX. I dont understand why this would need to be requested for OSX users separatly, makes no sense with development in mind.


author: mirandali1020
body: Agree. As the dev lead, I have way too many branches on my local, where they are all closed from origin. It would be nice if I can clean those up with a single command.


author: Richard Quadling
body: Thanks ... I ended up with

\`\`\`alias git-clean-branches='git branch --merged\|egrep -v "(\^\\\*\|master\|develop\|staging)" \| xargs git branch -d'\`\`\`


author: nawazibrahim
body:     git branch | grep -v develop | xargs git branch -d

This works
Error pushing to GIT
Asked by Alyssa Cameron:

We are receiving the following message when trying to push commits to our GIT repository from SourceTree. I have one coworker that has had this working fine, and all of the sudden it doesn't. And for myself, I push to multiple GIT repositories. I got a new computer and one of the repositories works fine, and the other now throws this error. Any suggestions?

git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags origin master:master  
POST git-receive-pack (863 bytes)  
remote:  
remote: =====================================================================  
remote: You cannot push the following commits as they are authored by users not known to Stash by author name:  
remote:  
remote: b62d081ae12: acameron \<acameron@uplandsoftware.com\>  
remote:  
remote: Check your gitconfig has the correct author name, or contact an administrator.  
remote: =====================================================================  
remote:  
remote:

Thanks!


Answers:
author: Mikael Sandberg
body: It looks like you have a hook on the repository that is verifying the committer. Bitbucket Server 5.0 added a new committer verification hook, see <https://www.atlassian.com/blog/software-teams/enterprise-devops-bitbucket-server-5-bamboo-6>.


author: Alyssa Cameron
body: [@Mikael Sandberg](/t5/user/viewprofilepage/user-id/853579) - That was it! Thank you!


author: Alyssa Cameron
body: [@Mikael Sandberg](/t5/user/viewprofilepage/user-id/853579) - that was it. Thank you!


author: Manju
body: Can you please specify the version of Sourcetree and OS on which you are seeing this error?


Tags: git
Why does my existing user account page throws this error?
Asked by Ebby Marshall:

This Javascript error occurs when I start setting up my SourceTree when I click to use my existing Atlassian account.

![Url link error.png](/t5/image/serverpage/image-id/23125i18DAA7AD8B2E6721/image-size/large?v=v2&px=999 "Url link error.png")![Atlassian soft error.png](/t5/image/serverpage/image-id/23126i4B98C41BA13BF83D/image-size/large?v=v2&px=999 "Atlassian soft error.png")


Answers:
author: Mike Corsaro
body: Hello! Could you please [try the steps listed in this answer](https://community.atlassian.com/t5/Sourcetree-questions/Re-Installation-of-SourceTree-cannot-be-completed-becaus/qaq-p/630255/comment-id/16451#M16451)? Thanks!