Hmmm fix emojos?

This commit is contained in:
Alexandre Aubin 2023-01-20 12:51:03 +01:00
parent 708b590beb
commit e939a10d98

View file

@ -483,12 +483,12 @@ async def github(request):
if description == "Pipeline failed on GitLab": if description == "Pipeline failed on GitLab":
pipeline_id = target_url.split("/")[-1] pipeline_id = target_url.split("/")[-1]
await notify( await notify(
f'[{repository}] :red_circle: Pipeline [#{pipeline_id}]({target_url}) failed on branch {branches}' f'[{repository}] 🔴 Pipeline [#{pipeline_id}]({target_url}) failed on branch {branches}'
) )
elif description == "Pipeline canceled on GitLab": elif description == "Pipeline canceled on GitLab":
pipeline_id = target_url.split("/")[-1] pipeline_id = target_url.split("/")[-1]
await notify( await notify(
f'[{repository}] :heavy_multiplication_x: Pipeline [#{pipeline_id}]({target_url}) canceled on branch {branches}' f'[{repository}] ✖️ Pipeline [#{pipeline_id}]({target_url}) canceled on branch {branches}'
) )
else: else:
await notify( await notify(