From 1452290d8b3987131777ce5ca0c4f6a3c08d0d5e Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Mon, 2 Jul 2018 12:13:40 -0500 Subject: [PATCH] small script to use buildbot account in gogs to comment on PRs with the build status --- gogs-notify.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 gogs-notify.sh diff --git a/gogs-notify.sh b/gogs-notify.sh new file mode 100644 index 0000000..1630ba0 --- /dev/null +++ b/gogs-notify.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +curl -H "Authorization: token $BUILDBOT" -H "Content-Type: application/json" -d "{\"Body\": \"Drone Build Status: ${DRONE_BUILD_STATUS}\n\n${DRONE_BUILD_LINK}\"}" -X POST https://git.openprivacy.ca/api/v1/repos/${DRONE_REPO}/issues/${DRONE_PULL_REQUEST}/comments +