### Commit messages with a specific reference

Let’s assume you have the following requirements for your workflow:

every commit should reference a Jira issue, for example: Refactored css. Fixes JIRA-123.

Write a regular expression that requires the mention of a Jira issue in the commit message, like `JIRA\-\d+`

```text
(feat|fix|docs|style|refactor|perf|test|build|ci|chore|revert): #\d+ .+
```

https://docs.gitlab.com/ee/user/project/repository/push_rules.html#commit-messages-with-a-specific-reference
