Skip to content

Commit a992764

Browse files
authored
Merge pull request #327 from hbrunn/master-326-ignore-skipped-suite
[IMP] /ocabot merge: ignore skipped check suites
2 parents 4e02124 + 223b69f commit a992764

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/oca_github_bot/tasks/merge_bot.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,13 @@ def _get_commit_success(org, repo, pr, gh_commit):
371371
f"PR #{pr} of {org}/{repo}"
372372
)
373373
success = True
374+
elif check_suite.conclusion == "skipped":
375+
# skipped
376+
_logger.info(
377+
f"Ignoring skipped check suite {check_suite.app.name} for "
378+
f"PR #{pr} of {org}/{repo}"
379+
)
380+
continue
374381
elif not check_suite.conclusion:
375382
# not complete
376383
check_runs = list(github.gh_call(check_suite.check_runs))

0 commit comments

Comments
 (0)