Feature Request: support pre-commit hooks to validate Jira Issue IDs included in commit messages

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

Proposal

As part of Jira integration, users can configure Jira issue ID as a trigger action that creates a cross link in Jira back to GitLab.

The customer would like to request the addition of a pre-commit hook to validate the Jira Issue ID in the commit message. Right now, there are no checks, and the user will see a Jira issue hyperlink even if the Issue ID is invalid, which is very confusing. The ideal user experience would be that if the Jira Issue ID in the commit message is invalid, the commit should fail with a message informing the user that this is because the Jira Issue ID does not exist or is incorrect.

Edited by 🤖 GitLab Bot 🤖