From 4cf3cd5102470b5c5a47c7326bb78f9a3ed26fd3 Mon Sep 17 00:00:00 2001 From: garrettmills Date: Mon, 29 Mar 2021 12:01:43 -0500 Subject: [PATCH] Add PR notifications to Drone config --- .drone.yml | 32 ++++++++++++++++++++++++++++++++ .idea/cli.iml | 5 +++++ .idea/modules.xml | 5 +++++ .idea/vcs.xml | 6 +++++- 4 files changed, 47 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 7f8689e..d32974b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -2,6 +2,16 @@ kind: pipeline name: default type: docker steps: + - name: post build in progress comment to PR + image: tsakidev/giteacomment:latest + settings: + gitea_token: + from_secret: gitea_token + gitea_base_url: https://code.garrettmills.dev + comment: "Build ${DRONE_BUILD_NUMBER} started." + when: + event: pull_request + - name: build module image: glmdev/node-pnpm:latest commands: @@ -24,6 +34,17 @@ steps: when: status: success + - name: post build success comment to PR + image: tsakidev/giteacomment:latest + settings: + gitea_token: + from_secret: gitea_token + gitea_base_url: https://code.garrettmills.dev + comment: "Build ${DRONE_BUILD_NUMBER} completed successfully." + when: + status: success + event: pull_request + - name: send build error notifications image: plugins/webhook settings: @@ -39,6 +60,17 @@ steps: when: status: failure + - name: post build error comment to PR + image: tsakidev/giteacomment:latest + settings: + gitea_token: + from_secret: gitea_token + gitea_base_url: https://code.garrettmills.dev + comment: "Build ${DRONE_BUILD_NUMBER} failed!" + when: + status: failure + event: pull_request + - name: trigger documentation build image: plugins/downstream settings: diff --git a/.idea/cli.iml b/.idea/cli.iml index c956989..36599f7 100644 --- a/.idea/cli.iml +++ b/.idea/cli.iml @@ -4,5 +4,10 @@ + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml index 6fcc0dc..ce30c7d 100644 --- a/.idea/modules.xml +++ b/.idea/modules.xml @@ -3,6 +3,11 @@ + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml index 94a25f7..9daea1e 100644 --- a/.idea/vcs.xml +++ b/.idea/vcs.xml @@ -1,6 +1,10 @@ - + + + + + \ No newline at end of file