Skip to content

Commit 2b81681

Browse files
lint: Set repository variable in tools/lint-commits.
refer to: zulip/zulip#17506
1 parent 5b5fda2 commit 2b81681

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/lint-commits

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@
99

1010
# The rules can be found in /.gitlint
1111

12+
repository="zulip/python-zulip-api"
13+
1214
if [[ "
1315
$(git remote -v)
1416
" =~ '
15-
'([^[:space:]]*)[[:space:]]*(https://github\.com/|ssh://git@github\.com/|git@github\.com:)zulip/python-zulip-api(\.git|/)?\ \(fetch\)'
17+
'([^[:space:]]*)[[:space:]]*(https://github\.com/|ssh://git@github\.com/|git@github\.com:)"$repository"(\.git|/)?\ \(fetch\)'
1618
' ]]; then
1719
range="${BASH_REMATCH[1]}/master..HEAD"
1820
else

0 commit comments

Comments
 (0)