Closed geoffthibeau closed 3 years ago
Thank you for the PR! I should probably rework the default branch detection at some point, but this will help for now.
A suggestion: provide a setter for what reference is preferred. E.g., $myUpdateChecker->setReference('getLatestTag')
or $myUpdateChecker->setReference('getLatestRelease')
or $myUpdateChecker->setReference('getBranch')
.
Basically a hook into Puc_v4p11_Vcs_Api::chooseReference()
without relying on a specific branch name.
Adds
main
as a possible default branch name to invoke$this->getLatestTag()
inside ofPuc_v4p11_Vcs_BitBucketApi::chooseReference()
.Previously, only branches named
master
inherited this special behavior. With more VCS providers opting for an inclusive default branch name, this commit addsmain
as a default branch name configuration.Related to #422.