Is it possible to change the target branch of a Pull Request that dependabot has opened?
We have set up dependabot to usually target a specific branch, that is not main
, but for security updates it will still target main (as discussed on this question). So, I would like to re-target those PRs which are targeting main directly to our normal testing branch.
You can use 'target-branch' config option to set the target Dependabot branch to something else than
main
: https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#target-branchFrom the docs: