# Bitbucket PR Gating

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

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: 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.
