News Radar RSS

Customize Dependabot pull request branch names

GitHub Changelog Developers & Open Source Score 7/10

Summary

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,… The post Customize Dependabot pull request branch names appeared first on The GitHub Blog .

Original Text

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> 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.

The post Customize Dependabot pull request branch names appeared first on The GitHub Blog.

GitHubDeveloper ToolsSoftware

News Radar provides aggregated summaries. Full content and copyright remain with the original publisher.