423 questions
2
votes
0
answers
58
views
How to download file contents from private BitBucket repository using API token
So far I got this
def _parse_bitbucket_url(value: str) -> Dict[str, str]:
parsed_url = urlparse(value)
if not parsed_url.scheme or "bitbucket.org" not in parsed_url.netloc:
...
1
vote
0
answers
53
views
Bitbucket downloaded file is always corrupted
Ok so I've been trying to create a library to use in multiple projects and I'm having a hard time with the limited tools at my disposal. All the projects are being hosted in Bitbucket, including the ...
-1
votes
1
answer
43
views
How do I convert #issue-id into link to my favorite issue tracker in commit message in a Bitbucket Data Center UI?
My company uses bitbucket data center but we are using our own issue tracker. We would like to convert text like bug#14 and feature#534 which appears in commit messages into links which leads to our ...
0
votes
0
answers
71
views
Bitbucket Cloud /2.0/users API: Forge platform failed to process runtime HTTP request
I'm trying to retrieve user details from Bitbucket cloud users API from my Forge app without success.
This is my code snippet:
const approverDetails = await api.asApp().requestBitbucket(
...
0
votes
1
answer
532
views
How to create/update a Bitbucket Cloud workspace variable via API?
I posted this in the Bitbucket Cloud forums too.
I see this article on how to update variables, but none of them refer to workspace variables. Is there a way to create/update Bitbucket Cloud workspace ...
1
vote
1
answer
655
views
BitBucket - get number of comments and time in review for a list of PRs
I'm an engineering manager with the following thesis about pull requests in my team:
1. Long PRs take longer to review (disproportionate to their length in lines of code)
2. Long PRs receive less ...
0
votes
1
answer
45
views
Unable to escape character in groovy bitbucket
I wanted to output shared path viewable on windows to bitbucket, however unable to get the expected output
Code snippet in groovy and out put as follow:
event_msg="\\\\blr-archieve\\Sfolder\\bins\...
0
votes
1
answer
55
views
Is it possible to check on which server a repository has been cloned in bitbucket and github
Github seems to provide details of the git clones that have been run on a repository in it's Graphs -> traffic tabs. Is this information also available from either the github api or gh cli tools? I'...
0
votes
0
answers
308
views
Programmatically Generate Bitbucket HTTP Access Token Using Existing Access Token
As the title states, is it possible to programmatically generate an HTTP access token on Bitbucket server from an existing access token, e.g. via their REST API?
From reading their documentation, it ...
1
vote
1
answer
1k
views
Get Pull requests from bitbucket REST-API assigned to my user
I am using the below REST-API to get the latest pull request from bitbucket
{link}/rest/api/1.0/projects/{my project}/repos/{my repo}/pull-requests?state=all&limit=1&size=1
It is working ...
0
votes
0
answers
124
views
How to pass payload to Bitbucket api to enable Yaac(yet another commit checker) using Python
I am trying to enable YAAC (Yet another commit checker) using Bitbucket api programatically
(Python 3.7), but somehow the payload looks not good and getting status code as 400, with an error expected ...
0
votes
0
answers
58
views
Get formatted file content from Bitbucket API
Is there some way to get Bitbucket formatted file content instead raw text using Bitbucket API? I'm using cURL in PHP.
1
vote
1
answer
441
views
Enable Git-LFS on BitBucket Server using REST API
I need to interact programmatically with a BitBucket Server to create and manage repositories.
To create a repository, a corresponding REST API method is available.
The created repositories should ...
0
votes
1
answer
98
views
BitBucket API call to get shortcuts details in a repo
For a repo in bitbucket in the left side menu option we can see source, commit, branch, pull request etc. Like wise there is shortcuts option available in my company domain.
I want to know the ...
0
votes
0
answers
423
views
How can I search for specific text in a repository using the bitbucket API?
I am trying to look for specific text in a repo but how can I achieve this with bitbucket server using the bitbucket version 1 API?
I am a bit limited with the advanced search feature on the bitbucket ...