From 0337e9fd149dc43ee2bff4743804ed46a63e637d Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Sun, 1 Jan 2023 20:11:15 +0100 Subject: [PATCH] ci(pipeline): comment on failure (pr) --- .woodpecker.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 13bc870..f1c2728 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -64,12 +64,13 @@ pipeline: comment_on_failure: image: tsakidev/giteacomment:latest secrets: [gitnet_token] + environment: + - DRONE_REPO_NAMESPACE=${CI_REPO_NAME} + - DRONE_REPO_NAME=${CI_REPO} + - DRONE_PULL_REQUEST=${CI_COMMIT_PULL_REQUEST} settings: gitea_token: ${GITNET_TOKEN} gitea_base_url: https://gitnet.fr - drone_repo_namespace: ${CI_REPO_NAME} - drone_repo_name: ${CI_REPO} - drone_pull_request: ${CI_COMMIT_PULL_REQUEST} comment: "Pipeline [#${CI_PIPELINE_NUMBER}](${CI_PIPELINE_LINK}) failed. when: status: [failure]