Add summary image in response comment

This commit is contained in:
tituspijean 2022-01-09 22:37:23 +01:00 committed by GitHub
parent 04777b259a
commit c4c812581f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

2
run.py
View file

@ -1170,7 +1170,7 @@ async def github(request):
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}"
body = f"{catchphrase}\n[![Test Badge]({shield_badge_url})]({job_url})"
body = f"{catchphrase}\n[![Test Badge]({shield_badge_url})]({job_url})\n[![]({summary_url})]({job_url})"
api_logger.info(body)
await comment(body)