Skip to content

Commit

Permalink
[Koji] filter out prod builds by releng
Browse files Browse the repository at this point in the history
We do not want to create updates for these.
  • Loading branch information
lbarcziova committed Mar 9, 2024
1 parent 5f156be commit 93cc925
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packit_service_fedmsg/callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ def _koji(topic: str, event: dict, packit_user: str) -> CallbackResult:
pass_to_service=False,
)

if event.get("owner") == "releng":
return CallbackResult(
msg="[Koji] Koji build built by 'releng'.",
pass_to_service=False,
)

what = (
f"[Koji] build:{event.get('build_id')} task:{event.get('task_id')}"
f" {event.get('old')}->{event.get('new')}"
Expand Down

0 comments on commit 93cc925

Please sign in to comment.