> For the complete documentation index, see [llms.txt](https://help.aikido.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.aikido.dev/pr-and-release-gating/bitbucket-pr-gating.md).

# Bitbucket PR Gating

Aikido Bitbucket PR gating runs security scan on each pull request (PRs). It focuses on **newly introduced** issues in the PR and shows which existing issues the PR solves.

Use it to catch risky changes before they land on your main branch. You decide what should fail the gate.

### Pick the right guide

Start with the page that matches your Bitbucket plan. Then configure repositories in the dashboard.

* **Bitbucket Free & Standard**
  * Follow: [Bitbucket Free & Standard: PR Scans Setup](/pr-and-release-gating/bitbucket-pr-gating/bitbucket-ci-pr-gating-via-aikido-dashboard.md)
* **Bitbucket Premium**
  * Use a dedicated Workspace Access Token
  * Follow: [Bitbucket Premium: PR Gating Setup](/pr-and-release-gating/bitbucket-pr-gating/bitbucket-ci-pr-gating-via-aikido-dashboard-with-a-workspace-access-token.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.aikido.dev/pr-and-release-gating/bitbucket-pr-gating.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
