You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can you link to a case where this actually failed? I haven't seen any issue like this myself, so I suspect it may be more nuanced. And/or submit example PRs that show this rejection behavior?
I think it was because i had 'fix' in the title rather than Fix.
It might be wroth adding git hooks for message formats to the repos that are enforcing this.
I think it would look like this
cat .githooks/commit-msg
#!/bin/bash## Purpose: Check that message has correct format# Check for issue tag in commit message
issue_tag_regex="^((Fix|HotFix|Part)\s\#[0-9]+,\s[a-zA-Z0-9]+|Merge\spull\srequest\s\#[0-9]+\s[a-zA-Z0-9]+|IC:\s[a-zA-Z0-9]+)"if! grep -qE "$issue_tag_regex""$1";then
cat <<EOFERROR - Commit message does not contain proper formatExpected Commit Format: (Fix|HotFix|Part) #ZZZ, messageEOFexit 1
fiexit 0
Checklist (Please check before submitting)
Describe the bug
See title, on pull requests the commit message is reworded form #zzz to nasa#zzzz
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Code snips
If applicable, add references to the software.
System observed on:
Additional context
Add any other context about the problem here.
Reporter Info
Full name and company/organization if applicable
The text was updated successfully, but these errors were encountered: