marge/pipeline_message: print job status for jobs still running or waiting for manual action

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39815>
This commit is contained in:
Eric Engestrom 2026-02-10 21:52:02 +01:00 committed by Marge Bot
parent fb1cb00a96
commit c4afecfb28

View file

@ -277,6 +277,12 @@ async def process_single_job(session, project_id, job):
job_name = job.get("name", "Unnamed Job")
message = f"[{job_name}]({job_url})"
if job["status"] == "running":
return f"{message}: still running<br>"
if job["status"] == "manual":
return f"{message}: waiting for manual action<br>"
# if a job times out it's cancelled, so worth mentioning here
if job["status"] == "canceled":
return f"{message}: canceled<br>"