Skip to content

Commit 2b1bb8b

Browse files
SYS-8303 rename copilot_autofix variable
1 parent fffeab3 commit 2b1bb8b

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The commit will be flagged if it includes certain text files with:
1515

1616
The commit will also be flagged if the commit message does not include a Jira
1717
ID (unless marked with NO_JIRA or a Copilot Autofix co-author line), or if the
18-
size of new or modiffied files exceeds a threshold.
18+
size of new or modified files exceeds a threshold.
1919

2020

2121
# Github action

main/githooks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
# No jira marker in commit message
2727
NO_JIRA_MARKER = 'NO_JIRA'
2828
# Copilot Autofix co-author in commit message description
29-
COPILOT_AUTOFIX = re.compile(
29+
copilot_autofix_coauthor_pattern = re.compile(
3030
r'^Co-authored-by:\s+.*<\d+\+Copilot@users\.noreply\.github\.com>$',
3131
re.MULTILINE,
3232
)
@@ -861,7 +861,7 @@ def check_commit_msg(message, files, repo):
861861

862862
if (
863863
NO_JIRA_MARKER not in message
864-
and COPILOT_AUTOFIX.search(message) is None
864+
and copilot_autofix_coauthor_pattern.search(message) is None
865865
and jira_id_pattern.search(message) is None
866866
):
867867
_fail(

0 commit comments

Comments
 (0)