Skip to content

Commit f0754d0

Browse files
committed
rebuilder: Fix url for group owned projects
1 parent 6788c6e commit f0754d0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/rebuilder.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,10 +231,13 @@ def get_monthly_rebuild_regressions(
231231
continue
232232
if int(p.latest.submitted_on) < start_time.timestamp():
233233
continue
234+
owner_url = project_owner
235+
if owner_url[0] == "@":
236+
owner_url = f"g/{owner_url[1:]}"
234237
pkgs.append(
235238
{
236239
"name": p.name,
237-
"url": f"https://copr.fedorainfracloud.org/coprs/{project_owner}/{project_name}/build/{p.latest.id}/",
240+
"url": f"https://copr.fedorainfracloud.org/coprs/{owner_url}/{project_name}/build/{p.latest.id}/",
238241
}
239242
)
240243
return pkgs

0 commit comments

Comments
 (0)