Skip to content

Commit cc99ca6

Browse files
authored
fix: duplicate build runs for PR (#416)
1 parent d04ca99 commit cc99ca6

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.github/scripts/lintcommit.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,8 @@ def lint_range(git_range: str, *, skip_dirty_check: bool = False) -> LintResult:
164164
status = subprocess.run(
165165
["git", "status", "--porcelain"],
166166
capture_output=True,
167-
text=True, check=False,
167+
text=True,
168+
check=False,
168169
)
169170
if status.stdout.strip():
170171
return LintResult(
@@ -178,7 +179,8 @@ def lint_range(git_range: str, *, skip_dirty_check: bool = False) -> LintResult:
178179
result = subprocess.run(
179180
["git", "log", "--no-merges", git_range, "-z", "--format=%H%n%B"],
180181
capture_output=True,
181-
text=True, check=False,
182+
text=True,
183+
check=False,
182184
)
183185
if result.returncode != 0:
184186
return LintResult(git_error=result.stderr.strip())

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ permissions:
77

88
on:
99
push:
10+
branches: [ main ]
1011

1112
pull_request:
1213
branches: [ main ]

0 commit comments

Comments
 (0)