Closed kfly8 closed 3 years ago
Can you add document of release.branch to https://github.com/tokuhirom/Minilla#configuration too?
@skaji Thanks for the review. I added document of release.branch
: https://github.com/tokuhirom/Minilla/pull/305/commits/81dd9a1354f34eb1eba3ccdfc907245d4f371a8b
According to https://stackoverflow.com/questions/6245570/how-to-get-the-current-branch-name-in-git,
git branch --show-current
is only available on git 2.22+.
I think we should use git rev-parse --abbrev-ref HEAD
instead.
Thanks a lot! Fixed it.
If
release.branch
is set, check if the current branch matches that release branch. We can userelease.hooks
to check if the release branch is correct, but it's better to notice mistakes before editing Changes.