Skip to content

Commit

Permalink
<fix>[.gitconfig]: Add new jira project: ZSV
Browse files Browse the repository at this point in the history
Change-Id: I6962767564666b62677065626170707a7570636b
  • Loading branch information
littleya authored and AlanJager committed Nov 9, 2023
1 parent 7bb96e3 commit 9974f59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitconfig/hooks/commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def check_commit_msg(file_path):
FAIL = False

jira_patterns = [r"\bZSTAC-\d+\b", r"\bZSTACK-\d+\b", r"\bMINI-\d+\b",
r"\bZOPS-\d+\b", r"\bZHCI-\d+\b"]
r"\bZOPS-\d+\b", r"\bZHCI-\d+\b", r"\bZSV-\d+\b"]
with open(file_path, 'r', encoding='utf8') as f:
lines = f.readlines()
full_lines = len(lines)
Expand Down
2 changes: 1 addition & 1 deletion .gitconfig/hooks/prepare-commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def get_tags(changed_folders, changed_paths):
def get_jiras():
jiras = []
jira_patterns = [r"\bZSTAC-\d+\b", r"\bZSTACK-\d+\b", r"\bMINI-\d+\b",
r"\bZOPS-\d+\b", r"\bZHCI-\d+\b"]
r"\bZOPS-\d+\b", r"\bZHCI-\d+\b", r"\bZSV-\d+\b"]

bashCommand = "git rev-parse --abbrev-ref HEAD"
process = subprocess.Popen(bashCommand.split(), stdout=subprocess.PIPE)
Expand Down

0 comments on commit 9974f59

Please sign in to comment.