Skip to content

Commit f15c3ff

Browse files
committed
Fix: ignore lack of commit status for issues
1 parent 50d9172 commit f15c3ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: process_pr.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2026,7 +2026,7 @@ def process_pr(repo_config, gh, repo, issue, dryRun, cmsbuild_user=None, force=F
20262026
# if not extra_labels[ltype]:
20272027
# del extra_labels[ltype]
20282028

2029-
if bot_status is None and issue.state != "open":
2029+
if bot_status is None and issue.pull_request and issue.state != "open":
20302030
create_status = False
20312031

20322032
# Always set test pending label
@@ -2302,7 +2302,7 @@ def process_pr(repo_config, gh, repo, issue, dryRun, cmsbuild_user=None, force=F
23022302
if need_external:
23032303
labels.append("requires-external")
23042304

2305-
if (not bot_status) and issue.state != "open":
2305+
if (not bot_status) and issue.pull_request and issue.state != "open":
23062306
labels = [l for l in labels if not l.startswith("tests-")]
23072307
labels.extend(l for l in old_labels if l.startswith("tests-"))
23082308

0 commit comments

Comments
 (0)