Skip to content

Commit c037dbb

Browse files
committed
githyb_sync: fix the unkonwn branch name format check
Skip branches for which branch name was _not_ parsed successfully. This bug was introduced in 462b933 Signed-off-by: Ihor Solodrai <[email protected]>
1 parent a947cfb commit c037dbb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

kernel_patches_daemon/github_sync.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,10 @@ async def sync_patches(self) -> None:
321321
if worker._is_relevant_pr(pr):
322322
parsed_ref = parse_pr_ref(pr.head.ref)
323323
# ignore unknown format branch/PRs.
324-
if parsed_pr_ref_ok(parsed_ref):
324+
if not parsed_pr_ref_ok(parsed_ref):
325+
logger.warning(
326+
f"Unexpected format of the branch name: {pr.head.ref}"
327+
)
325328
continue
326329

327330
series_id = parsed_ref["series_id"]

0 commit comments

Comments
 (0)