From 154857a0c2189c751a51b1e9a8a935edf65460cd Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Sun, 1 Jan 2023 19:39:18 +0100 Subject: [PATCH 1/7] ci(pipeline): comment on failure (pr) --- .woodpecker.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.woodpecker.yml b/.woodpecker.yml index 7a2d6f0..6428b4a 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -61,6 +61,17 @@ pipeline: - osv-detector composer.lock yarn.lock failure: ignore + image: tsakidev/giteacomment:latest + settings: + gitea_token: + from_secret: gitnet_token + gitea_base_url: https://gitnet.fr + comment: | + Pipeline [#CI_PIPELINE_NUMBER](${CI_PIPELINE_LINK}) status is: ${CI_PIPELINE_STATUS} + when: + status: [failure] + event: pull_request + deploy: image: deblan/php:8.1 secrets: [ssh_user, ssh_host, ssh_priv_key, app_directory] From e13d9378ebef40797bcaf6844529803c944cb0ca Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Sun, 1 Jan 2023 19:43:07 +0100 Subject: [PATCH 2/7] ci(pipeline): comment on failure (pr) --- .woodpecker.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 6428b4a..3fcdc28 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -66,8 +66,7 @@ pipeline: gitea_token: from_secret: gitnet_token gitea_base_url: https://gitnet.fr - comment: | - Pipeline [#CI_PIPELINE_NUMBER](${CI_PIPELINE_LINK}) status is: ${CI_PIPELINE_STATUS} + comment: Pipeline [#CI_PIPELINE_NUMBER](${CI_PIPELINE_LINK}) status is: ${CI_PIPELINE_STATUS} when: status: [failure] event: pull_request From 01117d031b475254d10e15cf2f81965f7c86bcf6 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Sun, 1 Jan 2023 19:43:47 +0100 Subject: [PATCH 3/7] ci(pipeline): comment on failure (pr) --- .woodpecker.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 3fcdc28..f00527a 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -66,7 +66,7 @@ pipeline: gitea_token: from_secret: gitnet_token gitea_base_url: https://gitnet.fr - comment: Pipeline [#CI_PIPELINE_NUMBER](${CI_PIPELINE_LINK}) status is: ${CI_PIPELINE_STATUS} + comment: "Pipeline [#CI_PIPELINE_NUMBER](${CI_PIPELINE_LINK}) status is: ${CI_PIPELINE_STATUS}" when: status: [failure] event: pull_request From 68a713bda46f21f53e31b0cdcc873555738744c1 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Sun, 1 Jan 2023 19:44:15 +0100 Subject: [PATCH 4/7] ci(pipeline): comment on failure (pr) --- .woodpecker.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index f00527a..df1d9bb 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -61,15 +61,16 @@ pipeline: - osv-detector composer.lock yarn.lock failure: ignore - image: tsakidev/giteacomment:latest - settings: - gitea_token: - from_secret: gitnet_token - gitea_base_url: https://gitnet.fr - comment: "Pipeline [#CI_PIPELINE_NUMBER](${CI_PIPELINE_LINK}) status is: ${CI_PIPELINE_STATUS}" - when: - status: [failure] - event: pull_request + comment_on_failure: + image: tsakidev/giteacomment:latest + settings: + gitea_token: + from_secret: gitnet_token + gitea_base_url: https://gitnet.fr + comment: "Pipeline [#CI_PIPELINE_NUMBER](${CI_PIPELINE_LINK}) status is: ${CI_PIPELINE_STATUS}" + when: + status: [failure] + event: pull_request deploy: image: deblan/php:8.1 From ee6f4a5966a63a980bc7af163798c80dce06d967 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Sun, 1 Jan 2023 19:58:35 +0100 Subject: [PATCH 5/7] ci(pipeline): comment on failure (pr) --- .woodpecker.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index df1d9bb..4278153 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -63,10 +63,14 @@ pipeline: comment_on_failure: image: tsakidev/giteacomment:latest + secrets: [gitnet_token] + environment: + - 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} settings: - gitea_token: - from_secret: gitnet_token - gitea_base_url: https://gitnet.fr comment: "Pipeline [#CI_PIPELINE_NUMBER](${CI_PIPELINE_LINK}) status is: ${CI_PIPELINE_STATUS}" when: status: [failure] From 7c47d9dd351b1976106e5f781c765a2e8f823580 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Sun, 1 Jan 2023 20:06:38 +0100 Subject: [PATCH 6/7] ci(pipeline): comment on failure (pr) --- .woodpecker.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 4278153..13bc870 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -64,14 +64,13 @@ pipeline: comment_on_failure: image: tsakidev/giteacomment:latest secrets: [gitnet_token] - environment: - - 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} settings: - comment: "Pipeline [#CI_PIPELINE_NUMBER](${CI_PIPELINE_LINK}) status is: ${CI_PIPELINE_STATUS}" + 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] event: pull_request From 0337e9fd149dc43ee2bff4743804ed46a63e637d Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Sun, 1 Jan 2023 20:11:15 +0100 Subject: [PATCH 7/7] 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]