title: Overview
Merge and Pull Request analysis is available as part of Developer Edition and above.
SonarScanners running in GitLab CI/CD, Azure Pipelines, Cirrus CI, and Jenkins with a Branch Source plugin configured can automatically detect branches and merge or pull requests by using environment variables set in the jobs.
warning | Automatic configuration is disabled if any branch or pull request properties have been set manually.
In Community Edition, your analyzed branch is named “master” by default.
When upgrading to a current commercial edition version, automatic branch and pull request configuration creates branches based on their names in your code repository. If the name of your Main Branch (master) in SonarQube doesn’t match the branch’s name in your code repository, the history of your Main Branch won’t be taken on by the branch you analyze.
Before running analysis, you can keep your branch history by renaming the Main Branch in SonarQube with the name of the branch in your code repository at Project Settings > Branches and Pull Requests.
For example, if your Main Branch is named “master” in SonarQube but “develop” in your code repository, rename your Main Branch “develop” in SonarQube.
For GitLab CI/CD configuration, see the GitLab ALM integration page.
For Azure Pipelines configuration, see the Azure DevOps integration page.
For Bitbucket Pipelines configuration, see the Bitbucket Cloud integration page.
For Jenkins configuration, see Jenkins.