tokuhirom / Minilla

Authorizing tool for CPAN modules
https://metacpan.org/release/Minilla
Other
97 stars 65 forks source link

Detect default branch from "origin" and remove the convention of release branch as "master" #313

Closed Songmu closed 2 years ago

Songmu commented 2 years ago

Minilla initially has a convention that the master branch is the release branch, but that is no longer used except for badge URL generation. Also, the practice of using master as the default branch has depreciated in general.

Therefore, I propose to abolish this convention.

It is enough for the badge URL generation to use the "config.release.branch" or extract the default branch from the output of git remote show origin. I've made those changes.

An unintended side effect of this change is that the generated badge URLs may change, but it is not a critical issue and is acceptable.