Bitbucket
Developer tools Username and app passwordRead repositories, manage pull requests and issues, and run pipelines on Bitbucket Cloud from any Windmill script, flow or app.
Set up in 3 steps
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.
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.
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
Get File From Repository
Update Issue Comment
Creates a new issue
Create Issue Comment
Get snippet
Create Snippet Comment
Update a task on a pull request
Create a task on a pull request
Delete a task on a pull request
List tasks on a pull request
Get a task on a pull request
List pull requests
Create a commit by uploading a file
Run a pipeline
Get file or directory contents
Update a snippet
Create a snippet
Get a snippet
List a pull request activity log
Get a tag
Check if current user is watching a issue
Create a comment on an issue
Update an explicit user permission for a repository
Delete a report
Get log file for a step
Update the branching model config for a project
Get a pull request
Check if the current user is watching a snippet
List explicit user permissions for a repository
Resource type
bitbucket — the shape of the credential every script on this page expects.
| Field | Type | Required | What it is |
|---|---|---|---|
| password | string | Yes | |
| username | string | Yes |
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.