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
0
votes
0 answers

Bitbucket server rest integration

I want to use an on prem bitbucket server using the bitbucket rest api from an application to create, update, and manage projects, repositories, teams etc while taking the parameters from my UI. And create we hooks from my java application. Can…
Saketh Ram
  • 53
  • 5
0
votes
1 answer

How to restrict merge permission for the author of the pull request on BitBucket

My team wants to restrict merge permissions to only the reviewers. Once a pull request is approved, only the default approvers must be given an option to merge the code. Currently, the author of the pull request also has the permission to merge the…
0
votes
1 answer

Bitbucket file change logs

Is it possible to get file change logs /commits list or latest commit at particular branch at specified file path? I tried using /commits/?path={filepath}&until={branch -name}.then extracted first element of json to get latest commit. But some data…
0
votes
1 answer

Using Bitbucket REST Api v2 - Unable to specify project when creating new repository

The repository is created but it is not added to the project specified in the request. I read somewhere it could be because I am using form keyword in the request but I am not sure how to get it working. let event = { reponame:…
Ali Shaikh
  • 121
  • 2
  • 13
0
votes
0 answers

Getting repo code from BitBucket using API

We have a requirement to get repo code using the Bitbucket API. I am able to list all the api for a user, using basic auth, but while using…
sak006
  • 1
  • 1
0
votes
2 answers

I want to get commits on a branch in bitbucket stash via rest api

I am trying to get commits on a particular branch in bitbucket stash. Branch was initially branched from master to develop some features after feature code was committed it was merged back to master But the branch was not deleted, so I want to use…
jamuna
  • 93
  • 1
  • 2
  • 10
0
votes
1 answer

Run Test automation code from Development repository on every push through Bitbucket pipelines

I am Test automation engineer and I have developed my automation code repository to test functional aspect of the product. I want this code to run when any developer pushes feature or bug on the beta environment. I have built the pipeline on…
0
votes
1 answer

Bitbucket REST Api: How can I order all branches by date desc with rest api call?

I need to get the name of the latest branch. So, I list branches but the order of the list is not by created date desc. And the below api call doesn't work. Its response is like that "message": "Invalid field name:…
Mert Malcok
  • 35
  • 1
  • 8
0
votes
1 answer

What is the Stash GIT API for a branch name that contains slash in it?

For example, I have a URL like this that works for a GET request: https://stash-server.com/rest/api/1.0/projects/something/repos/project/commits/develop/ This works for the develop branch, but when I try to do feature/something to access commits on…
Carmageddon
  • 2,627
  • 4
  • 36
  • 56
0
votes
2 answers

Extract list of Sources (branches) from Bitbucket using Python

I'm new to python and trying to update someone else's code. I need to pull a list of Sources (branches) from Bitbucket to allow user selection from that list. The existing code successfully used URL requests to retrieve lists from Bitbucket for both…
DWNewbie
  • 1
  • 4
0
votes
2 answers

Bitbucket get_tags() is not working

from bitbucket.bitbucket import Bitbucket # Access a private repository bb = Bitbucket(USERNAME, PASSWORD, repo_name_or_slug="https://bitbucket.org/ABC") success, result = bb.get_branches('https://bitbucket.org/ABC') print(str(success) + ' ' +…
0
votes
1 answer

Bitbucket 2.0 API get all commits merged to master

I am trying to create a utility tool for which I need to get the list of all commits that have been merged to master from the feature branch on Bitbucket. As you can see in the picture, the commit that has "M" label after the commit id is the one…
0
votes
1 answer

Downloading from bitbucket using REST Api Bitbucket

recently I found that I can use Rest Api Bitbucket to download repositories. I read the docs, but so far I didn't manage to download any files, but some HTTP headers using curl. Can someone give me a concrete example on how to use the API? I…
Daniel
  • 91
  • 1
  • 14
0
votes
2 answers

Configure bitbucket plugin to avoid hardcoding of secure variable

I have developed an Atlasian Bitbucket plugin which globally listens for push/PR and send repository details to databases using REST API. I need to configure REST API URL and credential so that my plugin can make an API call. Currently I have…
joy
  • 3,669
  • 7
  • 38
  • 73
0
votes
1 answer

Add custom link to pullrequest page in Bitbucket

I need add static link to all pullrequest pages in Bitbucket. How can I do it?
User
  • 9
  • 4