Questions tagged [bitbucket-api]

The Bitbucket REST API allows third-party application developers the means for writing applications for the Bitbucket service.

The Bitbucket REST API allows third-party application developers the means for writing applications that integrate with the Bitbucket service. The API includes ways to manage the repository changesets, issues on the issue tracker, permissions etc.

See also

430 questions
5
votes
0 answers

BitBucket App Password: Which permissions for git command-line access?

I understand how to create an app password for BitBucket, as discussed in Atlassian's app password information and this SO answer. Which permissions are needed for what, though? In my case, specifically, I'm using this for command-line git for my…
leanne
  • 7,940
  • 48
  • 77
5
votes
0 answers

Rest API for bitbucket branch Sync

Need Rest API to Sync branches in Bitbucket (Cloud) without merge pull request. Cannot find in API documentation. Is there any rest API for syncing branches? Please help on above query (high priority).
Atit
  • 125
  • 2
  • 10
5
votes
3 answers

In Bitbucket API, how can I get a list of ALL licensed users?

I've looked at the Bitbucket API docs and this post BitBucket get list of all contributors. The second link asks about users belonging to a repo, but in my case I just want a list of ALL licensed users. Is there really NO way to do this or did I…
Chris F
  • 14,337
  • 30
  • 94
  • 192
5
votes
2 answers

git push tag only and commit difference

I have small problem. Recently started using gitKraken to test how it works (thinking of moving from sourcetree). From what I understood it is more like "raw" git command. SourceTree does things for me like auto tag pushing (ok, found that it allows…
Grzegorz
  • 3,538
  • 4
  • 29
  • 47
5
votes
5 answers

BitBucket 1.0 REST API Retrieve all Pull-Requests for repository

When I curl the rest api, I get back an empty response but I know that there are pull-requests open. What is the setting in bitbucket stash that allows anyone to view/read pull-requests without being authenticated? curl -X GET…
Jon Erickson
  • 112,242
  • 44
  • 136
  • 174
5
votes
2 answers

How to integrate Bitbucket cloud with Concourse CI?

I have worked out to set a new team in concourse ci and can login as Bitbucket users. fly set-team -n main \ --basic-auth-username myuser \ --basic-auth-password xxxx \ --generic-oauth-display-name bitbucket \ --generic-oauth-client-id xxxx …
Bill
  • 2,494
  • 5
  • 26
  • 61
5
votes
4 answers

How to create a branch using Bitbucket REST API

How can I create a new branch in Bitbucket repository using REST API? I'm using Postman client.
snir.tur
  • 461
  • 3
  • 7
  • 14
5
votes
2 answers

Bitbucket API adding branch restriction - malformed groups

Trying to add branch restriction to a repository, I was successful in adding a rule, however, I cannot get a group added to the rule. curl -XPOST --user user:password -H "Content-Type: application/json" -d '{"kind": "push", "pattern": "testing*",…
Mir S Mehdi
  • 1,482
  • 3
  • 19
  • 32
5
votes
4 answers

How do I send Issues into BitBucket by email?

I Love BitBucket.org But is there a way to configure BitBucket to accept email and automatically put them into my 'New' Issue list in the issue tracker? BitBucket sends out email notifications, but I want something the other way around. I don't want…
7wp
  • 12,505
  • 20
  • 77
  • 103
4
votes
1 answer

Best way to run bitbucket scheduled pipelines on weekdays

Bitbucket scheduled pipelines UI does not have an option for us to enter a cron expression and we can only run the pipeline hourly, daily or weekly. There is an option to create schedule via API call with cron expression in payload, however,…
4
votes
0 answers

Gitlab SAST with mirrored repo

We have a bitbucket repo which is mirrored to Gitlab. Now we want to enable SAST plugin for go (gosec): https://docs.gitlab.com/ee/user/application_security/sast/ Since the imports in the go code still point to bitbucket, when the analyser runs it…
Harshit Gupta
  • 167
  • 1
  • 1
  • 10
4
votes
0 answers

Jenkins GitHub plugin is caching an old SCM host

So, we've migrated from bitbucket to github. Some projects are working with GitHub hook trigger for GITScm polling. therefore they're being able to listen for changes when a push happens. But, there are some projects in which we're getting this…
Christian Saiki
  • 1,568
  • 15
  • 22
4
votes
1 answer

Get latest tag commit from bitbucket api 2.0

I am trying to create a utility tool for which I need to get the latest tag committed to a specific repo. I have tried so far: curl -X GET \ https://api.bitbucket.org/2.0/repositories///refs/tags \ -H 'Accept: */*' \ -H…
Dota2
  • 456
  • 4
  • 16
4
votes
1 answer

How to add bitbucket private repository in gradle with bitbucket api v2.0

My gradle project is down because it has some dependencies on bitbucket repo and the bitbucket v1 api was deprecated. I've googled a lot about how to migrate to v2 but doesn't find a good solution. The v1 api in gradle is like this: repositories { …
Kan
  • 53
  • 1
  • 6
4
votes
2 answers

Bitbucket rest api to compare two branches

Doing some automation for our dev team and wanted to know if its possible to find the difference between two branches in bitbucket using the rest API. I know there is a rest endpoint for diff but I am not able to get it to work.
jtkSource
  • 675
  • 9
  • 21
1 2
3
28 29