Customize Dependabot pull request branch names
You can now customize the branch names Dependabot creates for pull requests. New pull-request-branch-name options in .github/dependabot.yml let you set a prefix and maximum length, choose segment and word separators, set letter case, or define a custom template using placeholders.
For example, a branch like dependabot/npm_and_yarn/Lodash-4.17.21 can become dependabot-npm-and-yarn-lodash-4.17.21 with a few lines of configuration.
These controls help you keep Dependabot branch names compatible with CI/CD systems that enforce naming or length limits. They also make branches easier to identify in monorepos and repositories with established naming conventions.
This improvement is available to all github.com users and will be included in GitHub Enterprise Server 3.23.
Learn more in the Dependabot options reference.
Join the discussion within Dependabot’s open source community.