是否可以 select Dependabot 应该针对其打开 PR 的特定分支?

Is it possible to select a specific branch against which Dependabot should open PR's?

如标题所说,在 GitHub 上是否可以手动 select 一个 Dependabot 应该针对其打开其 Pull Requests 的分支?

据我所知,它会针对回购设置中设置为主要分支的任何分支打开 PR,但可以 select 另一个?

根据 documentation,这可以通过选项 target-branch 实现。例如,如果你想从分支 develop 获得更新,你可以为 python pip 环境编写以下配置:

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"