Issue Task Closed

#107881Standardize commit-msg hook error to mention only Resolves: tag

Sebastian Mendel 10/28/25, 10:30 updated 03/31/26, 09:00

Description

The commit-msg hook displays a misleading error message suggesting contributors can use either Resolves: or Fixes: tags, but TYPO3 community practice has standardized on using only Resolves: for consistency.

## Current Behavior

Error message (line 218 in Build/git-hooks/commit-msg):
```
You need at least one ‘Resolves|Fixes: #<issue number>‘ line.<br>```</issue>

## Expected Behavior

Should be:
```
You need at least one ‘Resolves: #<issue number>‘ line.<br>```</issue>

## Rationale

Core team members emphasized that TYPO3 uses only Resolves: and should not make this chooseable to prevent inconsistent commit message practices.

## Solution

Update line 218 in Build/git-hooks/commit-msg to remove Fixes: from error message.

The validation regex remains unchanged for backward compatibility.

## References

- Documentation PR: https://github.com/TYPO3-Documentation/TYPO3CMS-Guide-ContributionWorkflow/pull/397
- Code: https://github.com/TYPO3/typo3/blob/main/Build/git-hooks/commit-msg#L218

Reviews 2