Don't run git hookscripts on feature branches
Closed, InvalidPublic

Description

Given the GitLab adoption, a common workflow is to push your work to a feature branch in the repo in question, then merge it once it's ready. Unfortunately, if you happen to have included any special git keywords in the commit messages of any of the commits in your feature branch, the moment you push it to origin, the commit hookscript will run on it and possibly close Bugzilla bugs too early. See for example https://bugs.kde.org/show_bug.cgi?id=412185

It would be great if the commit hookscript that parses keywords could not run on feature branches, or only run on master/stable branches.

ngraham created this task.Oct 7 2019, 4:33 AM
ngraham closed this task as Invalid.Sep 17 2020, 9:34 PM

Heh, it already doesn't, as long as you prefix the branch name with work/