chore(review-callback): generalize the event project name

Signed-off-by: Raito Bezarius <raito@lix.systems>
This commit is contained in:
raito 2024-05-06 20:26:42 +02:00
parent 98b5d1ed27
commit 8dd3d67735

View file

@ -701,7 +701,7 @@ def gerritReviewCB(builderName, build, result, master, arg):
if result == util.RETRY: if result == util.RETRY:
return dict() return dict()
if builderName != 'lix/nix-eval': if builderName != f'{build["properties"].get("event.project")}/nix-eval':
return dict() return dict()
failed = build['properties'].get('failed_builds', [[]])[0] failed = build['properties'].get('failed_builds', [[]])[0]