Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to select a specific branch against which Dependabot should open PRs?

Like the title says, on GitHub is it possible to manually select a branch against which Dependabot should open its Pull Requests?

From what I can see, it opens PR against whichever branch is set to be the main one in the repo settings, but it is possible to select another one?

like image 620
Sekhemty Avatar asked Sep 06 '25 03:09

Sekhemty


1 Answers

According to the documentation, this is possible with the option target-branch. For example, if you want to have the updates from the branch develop, you can write the following configuration for the python pip environment:

version: 2
updates:
  - package-ecosystem: "pip"
    directory: "/"
    schedule:
      interval: "daily"
    # Raise pull requests for version updates
    # to pip against the `develop` branch
    target-branch: "develop"
    # Labels on pull requests for version updates only
    labels:
      - "pip dependencies"
like image 50
flaxel Avatar answered Sep 09 '25 03:09

flaxel