youngmon/atlassian-qna huggingface dataset:
Are Bitbucket build minutes assigned per user or per Team for Standard License?
Asked by Saarang Tiwari:

My question is regarding Bitbucket Pricing.

If I go for a Standard License and I have 5-7 users. Then will I get 2500/month per license i.e

5 \* 2500 / month minutes?

or 2500 / month per Team?

Also, I am a bit confused by:  

**/ user / month starting price**

Does it mean if I buy Standard, I will have to pay 3$ only or 3$ per user?  

Could anyone please help me with this?

Thank you!


Answers:
author: Ajay _view26_
body: Hi [@Saarang Tiwari](/t5/user/viewprofilepage/user-id/4579816)

Welcome to the community!

First the topic of pricing - For standard you pay $3 per user per month. As you add the no of users to the workspace, the billing per month would keep getting added.

Build minutes are minutes executing a pipeline on a runner, excluding time acquiring a runner. They're the minutes when your pipeline status is "In progress".

Each Bitbucket plan comes with a set number of monthly build minutes. Its cacluated at the account level and is not on a per user basis.

Read more about build minutes in Bitbucket Pipelines [here](https://bitbucket.org/blog/everything-you-need-to-know-about-build-minutes-in-bitbucket-pipelines).

Cheers

Ajay

comments: author: Saarang Tiwari
body: Thank you for your response.

Just to clarify:

We are a small team (\<10), will we have to buy 1 standard account License?

As it gives unlimited users within the team. Also, 2500 build minutes/month.


author: Theodora Boudale
body: Hi [@Saarang Tiwari](/t5/user/viewprofilepage/user-id/4579816) ,

In Bitbucket Cloud a billing plan is associated with a workspace: when someone upgrades their plan to Standard or Premium, they upgrade it for a specific workspace.

If you upgrade a workspace to the Standard plan, you pay a monthly flat rate of $15 if the workspace has up to 5 users with access to this workspace's repos. For every additional user with access to this workspace's repos (6th, 7th etc user) you pay an additional $3 per month, so if the workspace has 7 users with access, you pay $21 per month.

If the repositories your team is working on are owned by one workspace, you can upgrade this one workspace.

Regarding build minutes, it is 2500 minutes / month for all repositories owned by the workspace on the Standard plan.

E.g. let's say you have a workspace <https://bitbucket.org/my-workspace> on the standard plan.

Repository <https://bitbucket.org/my-workspace/repo-1> uses 400 build minutes for a billing period  
Repository <https://bitbucket.org/my-workspace/repo-2> uses 700 build minutes for the same billing period

These both count towards the workspace's 2500 build minutes. If these are the build minutes used by the end of the billing period, then your workspace's usage is 400+700=1100 build minutes.

If the workspace is on the Standard or Premium plan and you go over your build minutes, we'll automatically add 1,000 additional build minutes for that billing cycle for $10.

If you have any other questions, please feel free to let us know.

Kind regards,  
Theodora


Tags: bitbucket-pipelines
How do I require branches to originate from Jira cloud.
Asked by Bill Rachilla:

I need to restrict branching to originate from Jira cloud. Meaning, I wish to restrict users from creating new branches without doing so through Jira.

Is there a way to do this?


Answers:
author: Caroline R
body: Hi, [@Bill Rachilla](/t5/user/viewprofilepage/user-id/3160474)!

Thank you for reaching out to Atlassian Community!

Just to confirm that I understand your request correctly: you would like that it was not possible to create branches directly in the Bitbucket repository, only through Jira, is that correct?

If that's the case, just to make sure we are on the same page, currently, when we create a branch from Jira, we are redirected to Bitbucket to create the new branch:

* [Video 1](https://share.getcloudapp.com/6quY6pnL)

So, at this time, it is not possible to restrict branch creation only through Jira. What exists is a feature to require issue keys in commit messages (you can enable this by accessing **Repository settings** \> **Links**), but I believe this is not what you need.

In this case, I would like to ask you for more details about your business case to further understand why this feature would be important to your team. With this information, I can raise a feature request to our dev team.

Thank you. Looking forward to hearing from you.

Kind regards,  
Caroline

comments: author: Prasad Bharadwaj
body: I'm also looking for this feature ::

I wanted to restrict branch creation without an Isuse type. In other words, A developer cannot create a branch from Bitbucket directly. He/She should create it from the Jira issue only. By this way, i want to prevent some kind of random names been given to Branches


author: Caroline R
body: Hi, [@Prasad Bharadwaj](/t5/user/viewprofilepage/user-id/4843337)!

We do have a feature request to Restrict branch creation only from Jira:

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

I would suggest that you add your vote there (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,  
Caroline


Tags: bitbucket-cloud

cloud
my repos from Github
Asked by Tom TH:

How to import


Answers:
author: Theodora Boudale
body: Hi [@Tom TH](/t5/user/viewprofilepage/user-id/511887),

We are currently limiting the number of repositories a user on the free plan can create in a single day, to help prevent spam in Bitbucket Cloud.

I went ahead and exempted your Bitbucket workspace from that rule, so you should be able to create more than 30 repositories a day for that workspace while being on the free plan.

If you need anything further, please feel free to let me know.

Kind regards,  
Theodora


author: Nic Brough -Adaptavist-
body: You need to get in touch with Atlassian to confirm that you are a real person. Follow the links given in the message for more information on that, and how to contact them.


Tags: bitbucket-cloud

cloud
Getting 500 error when repository list exceeds 200 in group_privileges Bitbucket API 1.0
Asked by Shelby Calma:

When I issue this call that returns a repository list which exceeds 200 repos, I get an HTTP 500 error.

<https://api.bitbucket.org/1.0/group-privileges/team/test/groupname/>

This is the response I get:

b'{"type": "error", "error": {"message": "Something went wrong", "id": "ca1abe7e9dd646bbbd18b69bb96d7df3"}}'

It's working If the return list is less than 200 repos.

Is there a return limit for this call? Is there an equivalent "pagelen" parameter than I can use to paginate the return list? Is there a workaround for this? I need to get the list of repositories for each usergroup. Thanks!


Answers:
author: tomlankhorst
body: I get similar issues. It seems like this error pops up whenever the backend takes more than 30 seconds to respond.

API 1.0 has been announced deprecated for multiple years, but there's no 2.0 alternative yet.

For a medium-sized organization, this call quickly returns megabytes of JSON info. Unfortunately, the lack of pagination makes the response sometimes take more than 30 seconds, which results in a 500 response.

Not only does this effectively block access to the endpoint, but it also puts needless strain on both Atlassian's and the client's servers.

When can we expect that the deprecated 1.0 endpoints get their 2.0 counterparts?

Thanks a lot for your time.

comments: author: Shelby Calma
body: Thanks for the clarification. Hopefully, they can provide the 2.0 counterparts soon.


Tags: api

bitbucket-server

server
How to conditionally hide Pull Request Overview Web Panel?
Asked by Amit Rathi:

We're building a Bitbucket Connect App add-on. It shows an overview message on a PR page if the PR contains Jupyter Notebook changes. See Screenshot below.

![Screenshot 2021-09-29 at 6.56.40 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/162804i4B4D1352EAF09C4C/image-size/large?v=v2&px=999 "Screenshot 2021-09-29 at 6.56.40 PM.png")

We'd like to hide this overview panel completely if the PR does not have any Jupyter notebook changes. I've looked at [Conditions](https://developer.atlassian.com/cloud/bitbucket/conditions/) but there doesn't seem to be anything to match file names in PR.

I've also tried returning an empty iFrame but that still shows empty whitespace in the UI.

Am I missing something? Is there a way to hide the overview message when not required?


Answers:
author: seanaty
body: You're not missing anything. You can't specify filenames as conditions for this web. Empty iframe won't work either because the title will still always show up.


Tags: app

bitbucket-cloud

cloud

connect
Patching files via composer using bitbucket pipelines
Asked by Christian Biggins:

I have a very simple pipelines, I am just trying to get the app to build before I look to adding anything else to it. But, even in its simple state, I can't get composer to successfully patch a file. The entire composer install works flawlessly until this point:

      - Applying patches for drupal/core    https://www.drupal.org/files/issues/2021-03-05/3007386-language-negotiator-weight-12.patch (Language negotiation weight)   Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2021-03-05/3007386-language-negotiator-weight-12.patch                                                                                                                                                  [Exception]                                                                                                                                     Cannot apply patch Language negotiation weight (https://www.drupal.org/files/issues/2021-03-05/3007386-language-negotiator-weight-12.patch)!  

After it started failing, I added some debug to the config including trying to cat the file that was to be patched, but it is not there.

    + cat docroot/core/modules/language/src/LanguageNegotiator.phpcat: can't open 'docroot/core/modules/language/src/LanguageNegotiator.php': No such file or directory

This is the composer patch chunk:

      "extra": {    "patches": {      "drupal/core": {        "Language negotiation weight": "https://www.drupal.org/files/issues/2018-10-17/3007386-language-negotiator-weight-2.patch"      }    },

This is the pipeline yml:

    # Template PHP Build# This template allows you to validate your PHP application.# The workflow allows running tests and code linting on the default branch.image: php:7.3-alpinepipelines:  default:    - parallel:        - step:            name: Prepare environment            script:              - /sbin/apk update              - /sbin/apk add git              - curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer              - docker-php-ext-install mysqli pdo pdo_mysql              - /sbin/apk add libpng-dev              - docker-php-ext-install mbstring              - docker-php-ext-install gd              - pwd              - ls -la              - cat docroot/core/modules/language/src/LanguageNegotiator.php              - /usr/local/bin/composer install            caches:              - composer

Do I need to change directories or do something similar?


Answers:
author: Mark C
body: Hi [@Christian Biggins](/t5/user/viewprofilepage/user-id/1341513)

Thank you for reaching out to the community.

Based on the error message, it appears the patch is not being skipped.

To debug it further, would it be possible for you to [test your Pipelines build locally in a Docker container](https://support.atlassian.com/bitbucket-cloud/docs/debug-pipelines-locally-with-docker/)?  
Ideally, if it works locally, it should also work on Pipelines.

Let me know how it goes.

Regards,  
Mark C


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
How to know what branches contains this branch?
Asked by Shu Chen:

Suppose I have 3 branches, dev, feature1, feature2. I merge feature 1 into dev. How can someone else see that feature1 branch is now on dev?

Preferably by not looking at the graph. If there are 50 feature branches, it becomes difficult to follow in graph. Can Sourcetree do something like click on feature1 and it shows a list of other branches that feature1 is on?


Answers:
author: stevestreeting
body: We don't expose this right now but here's the command line version which you can execute via the Terminal button:

Find branches which a commit (or branch pointing to a commit) have been merged into:

```
git branch --contains &lt;commit/tag/branch&gt;
```

Find branches which have been merged into the named branch:

```
git branch --merged &lt;commit/tag/branch&gt;
```
SourceTree is very slow when moving from one display to the other
Asked by Stefan:

Hello,

since version 1.0 SourceTree is very slow when moving it from one of my displays to the other; it also freezes often (during it checks for updates in the repositories?) when I try to commit...

Is there anything I can do about it?

I have version 1.0.4.0 for Windows.

Ciao!  
Stefan


Answers:
author: stevestreeting
body: 1.0 added quite a lot of new code and I've spent the last few days profiling and improving - one of the issues was a UI stall which could happen after the bulk remote check had happened in the background (most of the time this was evident when switching back to the app after a while). I've improved things a lot and 1.0.5 will be out early next week which should make a considerable difference.
The sheet shown for git-stage is annoying
Asked by Pascal Pfiffner:

I know this is nitpicking, but I would prefer that the sheet that quickly shows and hides when staging a file in a git repository would not exist. When staging multiple files I always have to wait a second or two, which could be eliminated if that sheet would go. Does this make sense?


Answers:
author: KieranA
body: Hi Pascal,

The sheet is there as a visual cue to know when the operation is running and when it completes it will then close. This is important do you don't, for example, try committing before staging a load of files in some cases. Usually actions are dependent on one another which is why we show the sheet.

I'm not sure in what case you wouldn't want to see the progress of an action, however.

Hope that helps

comments: author: Pascal Pfiffner
body: You are right that staging a bunch of files will take a second or two, but when staging individual files that action takes a few milliseconds. In SourceTree however it takes a second because the show-animation has to finish and the hide-animation immediately kicks in.

I think it would be much more elegant if staging didn't block the entire application but only disabled the commit button for as long as the operation is running. The visual cue could for example be the files appearing dimmed in the staged area until they truly are staged, similar to when iTunes is downloading new songs.
Seeing changes by file
Asked by 13m2:

Hello all,

I am using Git with Sourcetree for version control of a WordPress site. There are many different files in my project. I may work on a page-template, then a CSS file, a functions file, another template and so on.

My main window shows all my commits, across all files in chronological order. I would like to limit that to one file, so that I can check all the changes I made to only that particular file.

Is there a way to do that?

Thanks


Answers:
author: KieranA
body: Hi Andre,

You can context-click on a file and hit "Log Selected" to reveal a new window which shows log entries for just that file.

![](http://i.imgur.com/6P15mUW.png)

Hope that helps

comments: author: 13m2
body: Yes, that was exactly what I was looking for.

Thanks Kieran!


author: 13m2
body: I am on a Mac


author: KieranA
body: Hi Andre,

Are you using the WIndows or Mac version?

Thanks
How to improve performance of sourcetree on windows
Asked by Bob Marinier:

I've been using sourcetree on windows 7 since it was released. In that time, I've noticed it can sometimes be very slow, especially, when switching to it from another window (typically, eclipse). I thought it was actually locked up a few times, but if I wait long enough (10+ seconds), it becomes responsive again. Once it starts responding, it seems ok (still a little slow, but definitely usable).

One thing I've noticed is that if I'm running [distributed.net](http://distributed.net) in the background (a distributed computing program that runs at lowest priority), sourcetree becomes extremely unresponsive (e.g., things don't refresh, I can't click on anything, etc.). Pausing [distributed.net](http://distributed.net) helps, but sourcetree is still really slow to "wake up" when switching to it from another app.

From what I can gather looking at similar reports, the developers don't seem to experience these performance problems. Thus I assume there must be other things on my machine that are causing the problem. Other stuff running in the background includes F-Secure, VPN client, RescueTime, and various audio, video, and storage, wi-fi, and touchpad stuff (whatever those drivers install). I also am usually running thunderbird, firefox, and notepad++.

Any ideas which of these might be responsible, or other ideas to try?


Answers:
author: stevestreeting
body: There seems to be a UI delay when you tab back to SourceTree after it's been long enough that the 'automatic remote check' (which happens every 10 minutes by default) has happened and potentially updated the push/pull counts for a number of bookmarks. It's the same reason I believe that it can have a delay at startup. I'm tracking this issue here: <https://jira.atlassian.com/browse/SRCTREEWIN-728> and am trying to get to the bottom of it.


author: Bob Marinier
body: Agreed, that issue seems consistent with my experience. I have 7 repos bookmarked, and they are all open in tabs. I'll see if I can reduce that some to speed things up.
Sourcetree git commands
Asked by scottsue:

Hi,

Is there any way for me to view the git commands that Sourcetree issues to the git repository? I am trying to find a way to script the actions that I perform on Sourcetree.

Regards


Answers:
author: KieranA
body: Hi Scott,

On the "General" tab in the SourceTree preferences there's an option that says "Always show full console output". If you check this then the console output window for the task will stay open after the task has finished so you can see what happened.

Hope that helps.

comments: author: scottsue
body: Thanks Kieran, just what I needed


author: Chris Ofstad
body: This is not applicable for SourceTree actions such as Restart Merge on a single file. Is there a command that can be run in the Terminal which does the same as Restart Merge?


author: KieranA
body: Hi Scott. Is this for Windows or Mac?


author: scottsue
body: Hi Kieran, I'm on Mac
Unable to add using SourceTree
Asked by Jun Cho:

Hello

I'm getting the following error message when I try to add file(s) using SourceTree.

git -c diff.mnemonicprefix=false -c core.quotepath=false add -f -- readme.txt

warning: LF will be replaced by CRLF in readme.txt.

The file will have its original line endings in your working directory.

error: unable to write sha1 filename .git/objects/1c/18a9e638b2dea1aa7c81bf21900faef855bc0d: Permission denied

error: readme.txt: failed to insert into database

error: unable to index file readme.txt

fatal: adding files failed

I'm using BitBucket and there is a private repository and trying to commit and push.

As a first time user of Git, BitBucket and SourceTree, I might have made a mistake but can't find what the problem is.... Any help or tip would be appreciated.

Many thanks in advance

Jun


Answers:
author: Ian Chan
body: I ran into this error when some items in the .git/objects folder were owned by root rather than my user account. In other words, you might check the permissions on that folder.


author: Jun Cho
body: Thanks guys.

I first had a go Ian's suggestion as it looked a bit easier to try and the error seems came from the permission issue.

Just for other people who might hit the same problem.

I use Windows and the server, where all my works are, is running on Mac. Although I had set the folder permission as read\&write, SourceTree was still not able to save(write) to the folder. So that I recreated a folder on my computer(local machine) and it just worked!

I now know what caused the issue and will need to speak to a network manager.

Cheers\~!


author: KieranA
body: Hi Jun,

This is a result of something going wrong with Git rather than SourceTree. This issue has been highly reported and the solutions are varying. One simple solution is to recursively chmod your repository folder to the user that's going to be committing. This is provided that user should have access to the various files. You can issue the following command:

```
chmod -R 644 &lt;dir&gt;
```

Make sure this is run from the project directory. If this doesn't work then we can look at alternate solutions from there.

Hope that helps
SourceTree pending files on initial clone
Asked by Neil Wheeler:

I'm using sourcetree with a mercurial repo. After an initial clone from bitbucket its telling me I have many pending files, although I haven't touched the clone. In the diff the files look exactly the same, although it thinks every line is different. I've tried "discarding" the change but this makes no difference.


Answers:
author: stevestreeting
body: This is usually because of line ending issues. Please see my answer here: [https://answers.atlassian.com/questions/185169/sourcetree-win-1-0-3-0-what-happened-to-my-line-endings](/questions/185169/sourcetree-win-1-0-3-0-what-happened-to-my-line-endings)

To summarise, it's because SourceTree was trying to be helpful with its initial setup to default to unifying line endings - however existing repos may be in a state where this shows up as files needing re-committing to get their line endings into a unified LF format inside the repo (but still CRLF in your working copy).

We've stopped setting this by default for the next update and if you don't want to re-commit these files to change the line endings inside the repo then just remove these lines from mercurial.ini in your home directory:

```
[encode]**=cleverencode:[decode]**=cleverdecode:
```

comments: author: Neil Wheeler
body: Thanks that did the trick. :)


author: Bret Askeland
body: I think I have the same issue as Neil except I just did a clone from my remote repository and we are not using mercurial. The original repo was TFS. Is there a similar approach to resolve this for TFS to Git? The files in question are \*.sql files that have specific CRLF at the top and bottom of files.