Push Rule for Specific Branch(es) Only?

We have many branches, some used by different teams.
We use GitLab Enterprise Edition 10.8.x.

I want to implement the use case described in the gitlab documentation:

every commit should reference a JIRA issue, for example: Refactored css. Fixes JIRA-123.
Push rules | GitLab

The pre-commit hook “push rule” must only apply to one branch (or branches I choose).

How to achieve this use case?

1 Like

Would definitely like to have this as well! Without it, I can’t see us using Push Rules. I think it is common to have more relaxed requirements on feature branches, but then once integrated it is the expectation that we have ticket numbers.