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

History 27

  1. Gerrit Code Review pushed patch set 1 for main to change 91302 status New Under Review 10/28/25, 10:34

  2. Gerrit Code Review pushed patch set 2 for main to change 91302 10/28/25, 10:57

  3. Gerrit Code Review pushed patch set 3 for main to change 91302 11/01/25, 23:59

  4. Gerrit Code Review pushed patch set 4 for main to change 91302 11/02/25, 09:01

  5. Gerrit Code Review pushed patch set 1 for 13.4 to change 93073 03/04/26, 20:06

  6. Netresearch DTT GmbH commented and changed status Under Review Resolved done 0 % 100 % 03/04/26, 20:10

    Applied in changeset commit:2e2474fe4250d375a9979e621a0dca3ce727673f.

  7. Benni Mack changed status Resolved Closed 03/31/26, 09:00