# Branch analysis

- [Main branch analysis](https://docs.sonarsource.com/sonarqube-cloud/analyzing-source-code/branch-analysis/main-branch-analysis.md): SonarQube Cloud’s Main Branch analysis is your third line of defense in keeping your code clean, after SonarQube for IDE and Pull Request analysis.
- [Branch analysis](https://docs.sonarsource.com/sonarqube-cloud/analyzing-source-code/branch-analysis/branch-analysis.md): SonarQube Cloud’s Branch analysis feature helps you expand coverage by triggering an analysis on a push to any specified branch (not just the main branch) without involving pull requests.
- [Branch analysis setup](https://docs.sonarsource.com/sonarqube-cloud/analyzing-source-code/branch-analysis/branch-analysis-setup.md): Setting up Branch analysis in SonarQube Cloud is simple when using on integrated CI. This page also covers how to set up branch analysis with a non-integrated CI or with a local build environment.


---

# 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://docs.sonarsource.com/sonarqube-cloud/analyzing-source-code/branch-analysis.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.
