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
3
votes
1 answer

How to extract inline comments given while code review using the bitbucket-api

I am using http://restbrowser.bitbucket.org/ In version2 and version1 even I could find rest calls to get details of the comments given during "commit" or during "pull-request". Bitbucket has a decent feature of inline comments for code review as…
Sai-K
  • 73
  • 9
3
votes
2 answers

Creating atlassian stash repo using rest and powershell

I ran into an impasse trying to automate the creation of new git repositories using powershell. As I understand one creates new repos using the POST Method on the url /rest/api/1.0/projects/$ProjectKey/repos …
Michael Kargl
  • 662
  • 10
  • 21
3
votes
3 answers

Bitbucket authentication to use LibGit2Sharp

I used the CSharp.Bitbucket library to authenticate users with Bitbucket (https://github.com/scottksmith95/CSharp.Bitbucket). The authentication works fine, I get the token value and token secret values. I have alredy written a logic - with the…
Gábor Domonkos
  • 1,081
  • 1
  • 17
  • 33
3
votes
1 answer

Delete bitbucket repository by cURL

Anyone know how to delete repositories from bitbucket by cURL ? At the moment I've made script to create remote repository on bitbucket by curl #!/bin/bash while read line do curl --user user:password https://api.bitbucket.org/1.0/repositories/…
Curl User
  • 115
  • 1
  • 3
  • 12
3
votes
2 answers

Get list of pull requests in Repository

I want to get all pull requests in repository but this seems impossible. I was able to find only pull requests comments (https://confluence.atlassian.com/display/BITBUCKET/pullrequests+Resource) How could one use this resource if he cannot get…
ewooycom
  • 2,651
  • 5
  • 30
  • 52
3
votes
1 answer

doing a GET request to bitbucket-api using curl

I'm trying to do a simple GET request and return whatever the response is too the screen. When i load the page i get a blank page. I feel like im close, but im not sure where i am going wrong. I'm assuming that i should get some kind of response if…
Adam Sweeney
  • 386
  • 3
  • 15
3
votes
1 answer

Trouble making authenticated calls to Bitbucket API via OAuth

I'm trying to make authenticated calls to the Bitbucket REST API, with Oauth authentication. I've successfully retrieved an oauth_token and an oauth_token_secret (although they are the same as the request_token and request_token_secret, which seems…
user1698229
  • 111
  • 1
  • 6
3
votes
1 answer

Getting last commit's zip with php

I found the code below for automated deploying php project. The problem is "https://bitbucket.org/$username/$reponame/get/tip.zip" this url doesnt work on private git repo on bitbucket private git repo: probably related with authentication (I…
Taleh Ibrahimli
  • 750
  • 4
  • 13
  • 29
2
votes
1 answer

Programmatically add an access key to a bitbucket repo (Bitbucket cloud API)

The documentation of the Bitbucket Cloud API specifies how to add an SSH key to a specific user. However, the Bitbucket website also allows to add several SSH "Access keys" (a.k.a. Deployment keys) to a repository, enabling read-only access to the…
Paolo Brandoli
  • 4,681
  • 26
  • 38
2
votes
1 answer

search a file with bitbucket rest api (v1.0)

How can I search a file with a name on bitbucket via rest API? (v1.0) It seems there is an endpoint useful to get the file but there is no one to search and find the file(s) with name.
erdem
  • 103
  • 1
  • 11
2
votes
0 answers

List of merged branches of a repo

Bitbucket Server 7.17.1 When I click on 'Branches' menu for any repository, I get a list like this: The objective is to get only those branches(and NOT pull requests) which are 'MERGED'. I tried a call like this which returns ALL the…
Kaliyug Antagonist
  • 3,512
  • 9
  • 51
  • 103
2
votes
1 answer

Bitbucket Repository Hook: create PullRequest with source and targetBranch in Java

I want to develop a hook that will automatically merge a branch (always the same one) into the master when smth happens. This should happen because there are some strange diffs when pull requests are opened and we found out that this merging is the…
dinkelbrot
  • 31
  • 3
2
votes
1 answer

Snyk How to set reviewers on automatic pull requests (Bitbucket Cloud)

I'm using Snyk Bitbucket Cloud integration. Is there a way to add a group of reviewers on automatic pull requests (Bitbucket Cloud). At this moment, the pull requests are created without reviewers. Thanks!!!
satellite satellite
  • 893
  • 2
  • 10
  • 27
2
votes
0 answers

how do you use the specific parameter _body in the nodejs bitbucket package?

I'm trying to utilize this package: https://www.npmjs.com/package/bitbucket I'm trying to do multiple things such as creating a repository and creating branches. However, creating branches requires the _body parameter according to…
2
votes
0 answers

How to authenticate to bitbucket cloud APIs and then use them post authentication?

Bitbucket cloud APIs have decent documentation, but I could not find a comprehensive exampl showing how to make authenticated calls to those APIs. My requirement is very simple.  As a bitbucket cloud admin for a given workspace, I would like to get…
qre0ct
  • 5,680
  • 10
  • 50
  • 86