small script to use buildbot account in gogs to comment on PRs with the build status

This commit is contained in:
Dan Ballard 2018-07-02 12:13:40 -05:00
parent 42dffa6ad0
commit 1452290d8b
1 changed files with 4 additions and 0 deletions

4
gogs-notify.sh Normal file
View File

@ -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