Add summary_url variable

This commit is contained in:
tituspijean 2022-01-09 22:38:28 +01:00 committed by GitHub
parent c4c812581f
commit 646e5d72e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

1
run.py
View file

@ -1169,6 +1169,7 @@ async def github(request):
job_url = app.config.BASE_URL + app.url_for("html_job", job_id=job.id)
badge_url = app.config.BASE_URL + app.url_for("api_badge_job", job_id=job.id)
shield_badge_url = f"https://img.shields.io/endpoint?url={badge_url}"
summary_url = app.config.BASE_URL + f"/summary/{job.id}.png"
body = f"{catchphrase}\n[![Test Badge]({shield_badge_url})]({job_url})\n[![]({summary_url})]({job_url})"
api_logger.info(body)