Set defaults for the max length of PR branch names #7564
Labels
T: feature-request
Requests for new features
V: AWS CodeCommit
Issues related to AWS CodeCommit support
V: Azure Devops
Issues relating to Azure Devops support
V: Bitbucket
Issues relating to Bitbucket support
V: GitLab
Issues relating to GitLab support
This PR added a param for setting max length of the branch name:
However, we don't set a default value, which means many of our users never benefit from this. In fact, several months later we were investigating errors for hosted on on GitHub.com and realized we ourselves had forgotten to set this value!
So I vote we start setting a reasonable default for each platform within
dependabot-core
.This is similar to what I suggested in:
Implementing platform-defaults at first glance seems like a backwards-breaking change. However, given that branch names longer than these limits would already be erroring/failing to create, I don't think there's any backwards compatibility issue.
🤔 Do all users of this param set it to the max allowed by their platform? I can't think of a reason to pick a different value... So once we start setting that within
dependabot-core
, should we also remove the top-level configurablebranch_name_max_length
param? Might as well keep our public API surface small...dependabot-core/common/lib/dependabot/pull_request_creator.rb
Line 51 in 6ba5296
@TomNaessens, you've got the most context here, what say you?
cc @SimonSomlai, @nudded as appears you also wanted this PR, do you simply set this value to the max of your platform?
The text was updated successfully, but these errors were encountered: