youngmon/atlassian-qna huggingface dataset:
how to get Jira ticket number when export commit log
Asked by Scarlett Zhao:

I have been tasked with pulling the full commit history for all repositories. The resulting file will be audited by an external and internal auditors. They are requesting the commit log should have repository name, commit date, commit message, branches information, and Jira ticket number so that they can categorized and track the log via Jira tickets.  
The way I did now is running the git log below:  
git log --branches --tags --remotes --full-history --date-order --format='%ai %an \<%ae\> %h %f %d' --output commits.csv  
which includes most of the information I need except Jira ticket. Is there anyway to get the Jira ticket number?  
By the way, I tried to create an API but the token is not working

Thanks in advance for your help!


Answers:
author: Erez Maadani
body: Hey [@Scarlett Zhao](/t5/user/viewprofilepage/user-id/5091462)

git commits are not aware of Jira, or any other ticketing system. From my personal experience, there are branch name conventions and sometime commit message conventions which contain the Jira ticket. This way, BB knows how to connect the PR to relevant Jira ticket.

If you are using some convention which includes the jira ticket, you could parse it out.

If you are not using a convention or have commits which don't align with a convention, you might need to do some backward fixing (re-writing the message to include the Jira id).

Recently I've learned that Bitbucket has a feature of commit comment (not the commit message). You might be able to use it for backward fixing without re-writing git history.

Hope that helps.

comments: author: Scarlett Zhao
body: Hi Erez,

Thank you so much for your reply. Yes I think you are right. If the developer adds Jira ticket number when they commits, Bitbucket will automatically link the commits to Jira ticket, which can be parse it out

Would it be possible if you could give me some advice on how to re-write the git history or how to use commit comment?

Much appreciated for your help! Thanks!


Tags: bitbucket-cloud

cloud

sourcetree
How move HEAD on Remote Repository?
Asked by Dmitry Leyzerovich:

Hi All,

In origin, I have two branches - default and master.

Currently, the HEAD in origin points to the branch named '**default** ', but the branch called **master** is defined as the MAIN branch.

So, how can I move the HEAD on the origin from the default branch to the master branch?

Thank you!


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

Could you please provide some more details as to where exactly you see the HEAD of the remote repo?

Are you perhaps referring to the reference located in **.git/refs/remotes/origin/HEAD** in your clone of the repo?

If so, this reference is set when you clone the repo, and a **git fetch** doesn't update it if you change the main branch after you clone.

If you changed the main branch after cloning the repo, you can use the following command to update this specific ref locally:

```
git remote set-head origin -a
```

This will work if the ref **refs/remotes/origin/master** exists already locally (otherwise you need to fetch it first).

See here for reference: <https://git-scm.com/docs/git-remote#Documentation/git-remote.txt-emset-headem>

Kind regards,  
Theodora


Tags: atl-gruland

bitbucket-cloud

cloud
Unable to do pull request in Bitbucket
Asked by p_scofie:

Now unable to do a pull request in Bitbucket. Cleared browser cache but still unable to do so, where I could last week without a problem. No recent software installs/upgrades, etc. Bibtucket Administrator can do this for my branch, but I no longer can. Any ideas of what went wrong would be helpful. Thanks.


Answers:
author: Ben
body: G'day!

Welcome to the Bitbucket Cloud community :)

If it's only you who cannot create a pull request - I would suggest trying to create a PR either in the current browser with all browser add-ons disabled or a different browser to rule out it being a browser-specific problem.

If this still fails, I would suggest having your admin check the branch restrictions - I have recently created documentation related to this. Whilst the documentation is not the exact use case, it still applies - it is likely that there is a branch restriction on that repository preventing you from having access to creating PR's:  
<https://confluence.atlassian.com/bbkb/merge-button-is-not-visible-on-pull-request-1167743257.html>

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: p_scofie
body: Thanks, Ben. I tried to run the pull request from different browsers and even on different computers, to no avail. We did stumble on a solution, however. Our BB Admin dropped by account and then re-added it. That did the trick. G'day back. Must be early summer down in the south end. Enjoy. Paul


author: Ben
body: Ahh good stuff, glad to hear you were able to resolve this.

It's hot and sunny at the moment but another bout of La Ni?a is on the horizon, unfortunately, so I'm savouring the good weather while I still can :)

Have a good week!

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Self Hosted Bitbucket runner stuck in queue state
Asked by Edward Davies:

I have two separate runners one for prod and dev and both are stuck in a queued state and can't execute any runs. I even tried creating a whole new runner and this is also stuck in the queued state. All runners say they are online. Is there any resolution for this?


Answers:
author: Mark C
body: Hi [@Edward Davies](/t5/user/viewprofilepage/user-id/5091025),  

Welcome to the community.  

To troubleshoot your Bitbucket Cloud Pipelines runners, I'd recommend following the steps on this documentation: [Troubleshooting runners](https://confluence.atlassian.com/bbkb/troubleshooting-runners-1167819666.html)

This is for you to check on the logs locally on what might be causing it.  

Regards,  
Mark C


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
We need to be able to activate more than 50 webhooks
Asked by Sergio Gasca:

We have a project that for CI/CD needs we need to have more than 50 webhooks activated. Is there any possibility for this?

Maybe with another tier?


Answers:
author: Ben
body: Hey Sergio,

By default, all users (paid/free) with a Bitbucket Cloud workspace will be soft limited to 50 webhooks, as well as limits to number of repositories, tasks and snippets.

This is a feature that was implemented to reduce spam accounts and requires a member of support to remove this limit accordingly when a user reaches out requesting as such.

I have since removed the soft limit on your workspace, so feel free to create as many webhooks as you like :)

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
ssh: Could not resolve hostname bitbucket.org: Temporary failure in name resolution
Asked by Aymen Tiouiri:

Hello everyone,

I am new in bitbucket, and I am setting my ssh key, I have set an SSH key following the steps provided by bitbucket on my linux terminal. the last step ssh -T git@bitbucket.org shows the error above for several days. Please I need your help


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

The error message indicates that your DNS cannot resolve our domain name, this could be related to a network misconfiguration.

I would suggest reaching out to your network administrator and asking them to check if there are any issues with the DNS server, and also provide them with the following link that has info about which ports should be open and which IPs need to be whitelisted for connecting to Bitbucket Cloud:

* <https://support.atlassian.com/bitbucket-cloud/docs/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall/>

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Atlassian/kubectl-run by default runs with --dry-run enabled
Asked by Jurgen Heeffer:

I'm using atlassian/kubectl-run:3.3.1 and trying to deploy resources in a namespace that doesn't exist yet but is created in the same apply.

The namespace is defined like this:  

```
apiVersion: v1
kind: Namespace
metadata:
  name: namespace-name
```

Due to the pipe running dry-run by default I'm unable to apply both the namespace resources and the to be deployed resources in a single apply.

Is there a way around this (by disabling the dry-run by default) or am I stuck creating the namespaces and the resources in two separate applys?


Answers:
author: Igor Stoyanov
body: Hi [@Jurgen Heeffer](/t5/user/viewprofilepage/user-id/5082393) . Thanks for your question. Please provide us your configuration details of how you use the pipe.

Maybe you use the pipe this way:

```
script:  - pipe: atlassian/kubectl-run:3.3.1    variables:      KUBE_CONFIG: $KUBE_CONFIG      KUBECTL_COMMAND: 'apply'      RESOURCE_PATH: 'nginx.yml'      KUBECTL_ARGS:        - '--dry-run'
```

then you should remove '--dry-run' from KUBECTL_ARGS.  

Regards, Igor

comments: author: Jurgen Heeffer
body: Hi [@Igor Stoyanov](/t5/user/viewprofilepage/user-id/4550492)

I'm currently using it like this.  

```
- pipe: atlassian/kubectl-run:3.3.1
  variables:
    KUBE_CONFIG: ${!kube_config}
    KUBECTL_COMMAND: 'apply'
    KUBECTL_APPLY_ARGS: '-k'
    RESOURCE_PATH: '.deploy/overlays/${ENVIRONMENT}/'
```

I'm not currently specifying dry-run.  
With regards,  
Jurgen


author: Igor Stoyanov
body: [@Jurgen Heeffer](/t5/user/viewprofilepage/user-id/5082393) Thanks for your response. Please provide also your pipeline output.

Regards, Igor


author: Igor Stoyanov
body: --dry-run is used in validate spec file by default, and i guess you receive  
spec file validation failed error. Our team may think about disable validation with an option available for user, will be this solution ok for you?  
Regards, Igor


author: Jurgen Heeffer
body: Hi Igor,

Ah yes that would be perfect.

Thank you for the response!

With regards,  
Jurgen


author: Igor Stoyanov
body: [@Jurgen Heeffer](/t5/user/viewprofilepage/user-id/5082393) . We released a [new version 3.4.0 of the pipe:](https://bitbucket.org/atlassian/kubectl-run/src/3.4.0/)

```
script:  - pipe: atlassian/kubectl-run:3.4.0    variables:      KUBE_CONFIG: $KUBE_CONFIG      KUBECTL_COMMAND: 'apply'      RESOURCE_PATH: 'nginx.yml'      DISABLE_VALIDATION: 'true'
```

Regards, Igor


author: Jurgen Heeffer
body: Hi Igor,  

Thank you for the change this is perfect!  

With regards,

Jurgen


Tags: bitbucket-cloud

cloud

kubernetes
Someone has already added that key as an access key to a repository.
Asked by Shrey Shrotriya:

I cannot add my SSH key to my account because of this: "Someone has already added that key as an access key to a repository."

I have checked all the places (company user, all the repositories I see etc.) but this key is not associated to none of the repositories nor users I know of.


Answers:
author: Syahrul
body: Hey [@Shrey Shrotriya](/t5/user/viewprofilepage/user-id/5090766)

G'day, and welcome to the community!

Are you using a shared machine, or did someone else use it before you? The previous user may have added the key to their Bitbucket account; hence you can't use it anymore.

That said, you can either generate a new [SSH key](https://support.atlassian.com/bitbucket-cloud/docs/set-up-an-ssh-key/), or I can try to help you locate the SSH key, but do note that if you don't have access to the current account that uses the SSH key, you can't remove it.

Let me know which option you wish to proceed with.

Cheers,  
Syahrul


Tags: bitbucket-cloud

cloud
Is this possible to restore deleted repository ?
Asked by hahmedosama:

Hi, I lost my repository and I don't have a local backup. I just only have the repository name. Is there any way to get the repository back?   
Also, how can identify who deleted it and how it was deleted?


Answers:
author: Ben
body: Hey Hahmed,

It is possible to restore deleted repositories - but only if they were deleted in the last 7 days - this is explained in our documentation:  
<https://confluence.atlassian.com/bbkb/does-bitbucket-backup-my-repositories-1168845079.html>

If you can confirm that this was deleted in the last 7 days, please let me know and I will create a ticket on your behalf to investigate this for you.

If this was deleted more than 7 days ago, I would suggest reaching out to any teammates to locate local copies and push these to the workspace.

Cheers!

- Ben (Bitbucket Cloud Support)
Time out when trying to navigate to bitbucket.org in Chrome
Asked by Minh Tran:

I cannot navigate to bitbucket.org in Chrome or Edge but it is working fine with Firefox. it got time out.

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/228184iE2FA363AFF549793/image-size/large?v=v2&px=999 "image.png")


Answers:
author: Syahrul
body: Hey [@Minh Tran](/t5/user/viewprofilepage/user-id/5090560)

G'day, and welcome to the community!

It looks like an issue with your local network from the screenshot error. I understand Firefox has no problem, but it affects Chrome and Edge.

Note that Chrome and Edge browser is based on Chromium, so I suspect you may have a proxy configured on the browser level that may have caused this issue on both browsers.

Can you check with your network team to verify if any recent change to your proxy may have blocked the Bitbucket connection?

Let me know how it goes.

Cheers,  
Syahrul

comments: author: Minh Tran
body: Hi Syahrul,

Thanks for getting back to me. My proxy setup is completely off. How can I check if there is a proxy configured on the browser level for Chrome and Edge?

![Screenshot 2022-12-01 154337.png](https://community.atlassian.com/t5/image/serverpage/image-id/228568i938A76AB81CF96C1/image-size/large?v=v2&px=999 "Screenshot 2022-12-01 154337.png")


author: Syahrul
body: Hey [@Minh Tran](/t5/user/viewprofilepage/user-id/5090560)

Noted. I have created a support ticket for you to continue the investigation further.

Please check your ticket at our [Support portal.](https://support.atlassian.com/requests/BBS-195350/)

Cheers,  
Syahrul


author: Minh Tran
body: Thanks, Syahrul.
My google account was deleted for login, can I add a new email address?
Asked by Alan Wisell:

I had a \<username\>@gmail.com account to login and manage my account but it was deleted. Can I assign a new gmail account?


Answers:
author: Ben
body: Hey Alan,

You can associate a new gmail address to your Atlassian Account, this in turn will ensure that Bitbucket Cloud can be logged in using this new email address - we have documentation related to this below:  
<https://confluence.atlassian.com/bbkb/how-to-update-bitbucket-cloud-email-address-1155477708.html>

Hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)
Re-run failed steps via api
Asked by Andrea Sciutto:

Hi,

Is there a way to re-run failed steps in a pipeline via api calls? I can't seem to find an endpoint to do that?

Kind Regards

Andrea


Answers:
author: Patrik S
body: Hello [@Andrea Sciutto](/t5/user/viewprofilepage/user-id/2373109) ,

Thank you for reaching out to Atlassian Community!

I'm afraid Bitbucket Cloud API currently doesn't have an endpoint to rerun just the failed steps. However, we already have a feature request to implement that endpoint, which you can find in the following link :

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

I would suggest you to add your vote there, since this helps both developers and product managers to understand the interest. Also, make sure you add yourself as a watcher in case you want to receive first-hand updates from that ticket. Please note that all features are implemented with [this policy](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) in mind.

Thank you, [@Andrea Sciutto](/t5/user/viewprofilepage/user-id/2373109) .

Patrik S


Tags: bitbucket-cloud

cloud
SourceTree Authentication error after changing AD password
Asked by atedw:

Is there and easy way to get SourceTree to recognize the AD password has changed? We are required to changed our Windows passwords on a regular basis, and every time SourceTree give Authentication failed errors reading from our TFS GIT repo.


Answers:
author: minnsey
body: HI  

We don't have any direct experience of AD + TFS, but.... any credentials the Sourcetree uses for interacting git git with the remote host are essentially managed by Git and the Git Credential Manager (GCM).  

If you enter account details in the Tools/Options/Authentication tab Sourcetree will save them to the Windows Vault/Credential Manager in the format the GCM expects, i.e. with a key in form 'git:https://{hostname}'

If you don't use Sourcetree's accounts then Git may well prompt you directly using the GCM, again any credentials that you enter and are valid will be stored in the Windows Vault/Credential Manager.  

Assuming there is no domain/network magic at work effectively authorizing your access to the TFS server outside of core git, I would try deleting any 'git:' prefixed entries form the Windows Vault/Credential Manager and trying again.


Tags: authentication

credential

windows
A new branch is not always drawn correctly in the graph in history
Asked by David Driver:

When branching off a point that isn't the head of branch the graph does not always update correctly. The old branch appears to be orphaned, and a number of commits around the branch point may also be out of order.

This seems to occur when multiple commits happened at the same second (I've been dealing with rebases). As far as I can tell this is purely graphical, but it still unnerving. Is there any way to increase the resolution used by the graph drawing algorithm?


Answers:
author: bgannin
body: We don't expose the graph's drawing at all to users. Please file a ticket for either Mac (<https://jira.atlassian.com/browse/SRCTREE>) or Windows (<https://jira.atlassian.com/browse/SRCTREEWIN>) with a screenshot and we'll take it from there.

Brian Ganninger  
Senior Mac Developer, Sourcetree
windows10?????????sourcetree????????????4006????????
Asked by munokura:

????????????github???????????????????  
sourcetree ????????????github??????????????????

???????????????????????sourcetree?????????????????4006???????????  
????????????????

??????????OS?????????????????????????????????  
?????????????????????

????  
OS?windows10 pro 32bit  
Sourcetree ver.2.4.8.0


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

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

* [The date format is wrong when the Calendar type is in Japanese date format(??)](https://jira.atlassian.com/browse/SRCTREEWIN-8442)

????? *Start watching this issue* ?????????????????????????????????????????????????????

??????????????????????????????????????????????????[???????????????](https://confluence.atlassian.com/pages/viewpage.action?pageId=841188574)????????


Tags: language-ja

windows
HG authentication with remote
Asked by Serguei Kalentchouk:

Hi,

After updating Sourcetree on my Mac I am no longer able to authenticate with an HG remote.

I tried removing the saved username for the remote, as well as deleting the saved password from Keychain Access but still no luck.

Any help or advice would be much appreciated.

Thank you!


Answers:
author: Manju
body: Can you please specify if this is a custom host or Bitbucket cloud?  
If the account is added in Sourcetree or not?  
If added, protocol used and also the error that you see when trying to perform any action.

Thanks,  
Manjunath  
Sourcetree Mac Developer

comments: author: Serguei Kalentchouk
body: This is with a custom host, error simply says "abort: authentication failed".

The account is not added to SourceTree, as in it does not show up under the Accounts tab.


author: Manju
body: What is the protocol on the remote URL? https/ssh?


Tags: authentication

mac

mercurial
SourceTree 2.4.8 enterprise offline installation (without account registration and internet access)
Asked by SCMTeam:

Already been addressed here - <https://community.atlassian.com/t5/Sourcetree-questions/SourceTree-2-4-8-Offline-Installation/qaq-p/738678>

Thank you!


Answers:
author: Manju
body: We do have an enterprise installer which would allow distribution and bypass Atlassian Account login if you are using Bitbucket server by just logging in to it instead. Please sign up [here](https://groups.google.com/d/forum/atlassian-sourcetree-beta#) for beta access if you'd like to try that.
Password Required Issue
Asked by Gajalakshmi:

Hi Support Team,

When I tired to clone the repository, Its not cloning and asking for the password required. And when i give the password, it not works. Kindly give a solution to sort out the issue.

Regards

Gajalakshmi


Answers:
author: Ana Retamal
body: Hi Gajalakshmi! Have you double checked that the password you're entering is the right one. Is your account connected to Sourcetree already? If not, you can do so by following the steps at [Connect your account](https://confluence.atlassian.com/get-started-with-sourcetree/connect-your-bitbucket-or-github-account-847359096.html).

For troubleshooting purposes, have you tried cloning from the command line? Do you get any error?

Let us know if you need further assistance!

Best regards,

Ana
Blank login screen during SourceTree installation
Asked by mkeshmirian:

During SourceTree installation on a Windows 10 enterprise VM machine, when I click on the "Use an existing account", I get a blank (white) pop screen.


Answers:
author: Ana Retamal
body: Hi Mansour, this issue was reported in our bug tracker at [SRCTREEWIN-7244](https://jira.atlassian.com/browse/SRCTREEWIN-7244). Our developers rolled a fix, but if you haven't been prompted for the upgrade yet you can use the following workaround:
> From a working install collect the accounts.json and passwd files.
>
> Delete the Atlassian folder from the AppData/Local directory for your user. Run the installer for 2.3.1, close it when you get the blank login window. Place the account.json and passwd files into the Atlassian/SourceTree folder. Rerun the installer. It should detect the account and password from those files and bypass the request for a login.

Note that in order to be in compliance with the Atlassian EULA you must ensure the email address used in the file is valid, yours and associated with a valid Atlassian account.

Let us know if you need any further assistance!

Cheers,

Ana

comments: author: mkeshmirian
body: Installing older version solved the problem. Later I upgraded to the latest version.

Thanks,


Tags: install
Authorization in the network without the Internet
Asked by ????????? ????????:

Good afternoon.  
There was a problem of checking / using / authorizing an account on the network without access to the Internet. Those. there is no Internet access (and will not be) on the security policy, but Bitbucket, confluence, jira is deployed inside the local network,.  
Is there a way to run this product?


Answers:
author: ????????? ????????
body: Solution found in another branch  
<https://community.atlassian.com/t5/Sourcetree-questions/How-to-install-SourceTree-through-proxy/qaq-p/642198>