Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions scripts/commit-msg.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
FAIL_C = "\033[91m"
END_C = "\033[0m"

JIRA_REGEX = "(SPII|PCRM|NEMS|KF|IGWAY|NRL|APM|APMSPII|SPY3|SPINECLI)\-(\d+)" # Example match: SPII-12345
JIRA_REGEX = "(SPII|PCRM|NEMS|KF|IGWAY|NRL|APM|APMSPII|SPY3|SPINECLI)\\-(\\d+)" # Example match: SPII-12345
FEATURE_REGEX = (
"feature\/\w+\-(\w+\-\d+)\-" # Example match: feature/das-SPII-12345-foo
"feature\\/\\w+\\-(\\w+\\-\\d+)\\-" # Example match: feature/das-SPII-12345-foo
)
OLD_FEATURE_REGEX = "feature\/\w+\-(\d+)\-" # Example match: feature/das-12345-foo
OLD_FEATURE_REGEX = "feature\\/\\w+\\-(\\d+)\\-" # Example match: feature/das-12345-foo
sys.stdin = open("/dev/tty") # Ensure that input can be taken by hook
MSG_FILE = sys.argv[1] # commit-msg hook provides file name as first arg

Expand Down
Loading