Skip to content

Commit 05faaa3

Browse files
committed
Pass repository parameter to check_commit_msg for improved context NO_JIRA
1 parent 7f125a4 commit 05faaa3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,15 @@
2121
print(f'Commit message: {message}')
2222

2323
files = githooks.get_commit_files()
24+
repo = githooks.get_repo()
2425
print(f'Checking {githooks.get_event()} modified files:')
2526
print(' ' + '\n '.join(files['M']))
2627
print(f'Checking {githooks.get_event()} new files:')
2728
print(' ' + '\n '.join(files['A']))
2829

2930
retval = 0
3031

31-
retval += githooks.check_commit_msg(message, files['M'] + files['A'])
32+
retval += githooks.check_commit_msg(message, files['M'] + files['A'], repo)
3233

3334
if githooks._is_pull_request():
3435
retval += githooks.check_do_not_merge(files['M'])

0 commit comments

Comments
 (0)