[go: up one dir, main page]

Skip to content

Provide a small example for each push rule

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Proposal

Currently when you specify a push rule regex and a user tries to push an invalid commit or branch it receives the following message (example regex for conventional commits):

remote: GitLab: Commit message does not follow the pattern '^(build|chore|ci|docs|feat|fix|perf|refactor|style|test)(\([\w\-\s]+\))?: .{1,72}$`

It would be great, if for each push rule an example, or some additional text or link to documentation could be specified. In order to make it easier for the commiter to know what pattern(s) should follow.

Edited by 🤖 GitLab Bot 🤖