Laur's blog
Sign in Subscribe

bitbucket

A collection of 3 posts
Bitbucket - Scan a repository
bitbucket

Bitbucket - Scan a repository

Following the previous post, we need to get the list of files in the repository. This is similar with listing the contents of a directory, without having the possibility to do it in a recursive way. A call to the list files API will return a list containing both files
Mar 3, 2025 2 min read
Bitbucket - Get Repository Information
bitbucket

Bitbucket - Get Repository Information

In the previous post, we wrote the helper functions, which will allow us to get multi-page responses from the Bitbucket server. Now, we can use them to get various repository information. Prerequisites As in the previous post, we need the requests python package. Once we have that, we can initialise
Feb 16, 2025 2 min read
Bitbucket - API Helper Functions
bitbucket

Bitbucket - API Helper Functions

Get all pages Normally, Bitbucket list queries return a JSON. They are structured so all the data is under a values key. You get a bunch of other data, among which a flag isLastPage that tells you if the page you retrieved is the last one. I wrote below a
Feb 16, 2025 1 min read
Page 1 of 1
Laur's blog © 2025
  • Sign up
Powered by Ghost