Skip to content

Commit 8bae40c

Browse files
authored
Merge pull request #432 from ExaWorks/no_ci_on_draft_prs
Do not CI test draft PRs.
2 parents 2ca7e56 + 882d5fe commit 8bae40c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/ci_runner.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,9 @@ def get_core_pr_branches(conf: Dict[str, str]) -> List[str]:
7676
resp.raise_for_status()
7777
branches = ['main']
7878
for pr in resp.json():
79-
if pr['head']['repo']['full_name'] == repo:
79+
if pr['head']['repo']['full_name'] == repo and not pr['draft']:
8080
branches.append(pr['head']['ref'])
81+
print('Branches that will be tested: %s' % branches)
8182
return branches
8283

8384

0 commit comments

Comments
 (0)