Bitbucket

Developer tools Username and app password

Read repositories, manage pull requests and issues, and run pipelines on Bitbucket Cloud from any Windmill script, flow or app.

Set up in 3 steps

1

Create an app password

In Bitbucket, open Personal settings then App passwords. Create one, tick only the permissions your scripts need, and copy it — it is shown only once.

2

Add the resource in Windmill

Open Resources, add a resource of type bitbucket. username is your Bitbucket username — not your email — and password is the app password.

3

Run your first script

Fork any script below and read a repository before writing anything.

Scripts

Building blocks, if none of the projects above fit. Fork one, run it, or call it as a step inside your own flow.

Get issue

Script bitbucket

Get File From Repository

Script bitbucket

Update Issue Comment

Script bitbucket

Creates a new issue

Script bitbucket

Create Issue Comment

Script bitbucket

Get snippet

Script bitbucket

Create Snippet Comment

Script bitbucket

Update a task on a pull request

Script bitbucket Verified

Create a task on a pull request

Script bitbucket Verified

Delete a task on a pull request

Script bitbucket Verified

List tasks on a pull request

Script bitbucket Verified

Get a task on a pull request

Script bitbucket Verified

List pull requests

Script bitbucket Verified

Create a commit by uploading a file

Script bitbucket Verified

Run a pipeline

Script bitbucket Verified

Get file or directory contents

Script bitbucket Verified

Update a snippet

Script bitbucket Verified

Create a snippet

Script bitbucket Verified

Get a snippet

Script bitbucket Verified

List a pull request activity log

Script bitbucket Verified

Get a tag

Script bitbucket Verified

Check if current user is watching a issue

Script bitbucket Verified

Create a comment on an issue

Script bitbucket Verified

Update an explicit user permission for a repository

Script bitbucket Verified

Delete a report

Script bitbucket Verified

Get log file for a step

Script bitbucket Verified

Update the branching model config for a project

Script bitbucket Verified

Get a pull request

Script bitbucket Verified

Check if the current user is watching a snippet

Script bitbucket Verified

List explicit user permissions for a repository

Script bitbucket Verified

Resource type

bitbucket — the shape of the credential every script on this page expects.

View raw schema →
FieldTypeRequiredWhat it is
passwordstringYes
usernamestringYes

Questions

Why my username and not my email?

Bitbucket authenticates app passwords over HTTP Basic against the account username. An email address there fails.

Can I use my account password?

No. Bitbucket only accepts app passwords on the API, which is also what lets you scope and revoke one without touching your account.

Is my app password stored on the hub?

Never. It lives only in your own Windmill workspace, encrypted at rest.