Cosmetics

This commit is contained in:
Alexandre Aubin 2023-01-20 12:46:35 +01:00
parent 4730e66f15
commit dcd0a669e8

View file

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