Naming convention check
All of the following error messages are displayed when a pull request is created and can also appear in combination.
Naming convention check in commits
Configuration

Regular Expression Explanation
^\[([A-Z]+)-(\d+)\](.|\n)+
→ Each commit message must start with an issue key, which is enclosed in brackets. After the key, there must be a further description.
Possible results
Commands | Expected results |
---|---|
BASH
|
→ The second commit doesn’t contain a further description |
BASH
|
→ The Issue-Key in the second commit isn’t enclosed in brackets |
BASH
|
|
Naming convention check in branch
Configuration

Regular Expression Explanation
^(feature|bugfix|hotfix|release|develop)\/[a-z0-9][a-z0-9\-_]*$
The branch must follow this pattern to match:
Start with one of the allowed prefixes:
feature/
,bugfix/
,hotfix/
,release/
, ordevelop/
Followed by a lowercase alphanumeric name:
Can include lowercase letters (
a-z
), numbers (0-9
), hyphens (-
), and underscores (_
).Must start and end with a letter or number (no trailing
-
or_
).
Possible results
Commands | Expected results |
---|---|
BASH
|
→ Missing a required prefix |
BASH
|
→ Double slashes are not allowed |
BASH
|
|
Naming convention check in Pull-Request
Configuration

Regular Expression Explanation
^(feature|bugfix|hotfix|release|develop)\/[A-Z]+-\d+\s+[A-Za-z0-9 _\-]+$
→ The PR title must follow this pattern to match:
Start with an allowed prefix:
feature/
,bugfix/
,hotfix/
,release/
, ordevelop/
Followed by a Jira issue key:
Format:
PROJECT-123
(uppercase letters, a hyphen, and digits)
Followed by a space and a descriptive title:
Can contain letters, numbers, spaces, hyphens (
-
), and underscores (_
).
Possible results
Pull-Request Title | Expected results |
---|---|
|
→ Missing required prefix |
|
→ Missing |
|
→ Issue key must use |
|
→ Missing descriptive title |
|
|
Configuration

Regular Expression Explanation
^[A-Z]+-\d+\n\n[\s\S]+$
→ The PR description must follow this pattern to match:
Start with a Jira issue key:
Format:
PROJECT-123
(uppercase letters, a hyphen, and digits).
Followed by a blank line (for readability).
Followed by a detailed description:
Can contain multiple lines.
Can include letters, numbers, spaces, punctuation, and special characters.
Possible results
Pull-Request Description | Expected results |
---|---|
|
→ Missing issue key |
|
→ Issue key must use |
|
→ Missing a description |
CODE
|
|