diff --git a/.gitignore b/.gitignore index 03e798f..b22c5d9 100644 --- a/.gitignore +++ b/.gitignore @@ -23,4 +23,5 @@ _testmain.go *.test *.prof +coverage.out drone-webhook diff --git a/MAINTAINERS b/MAINTAINERS index a63ad47..0ecaf19 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -4,6 +4,8 @@ email = "brad@drone.io" login = "bradrydzewski" [people.Bugagazavr] + name = "Kirill" + email = "" login = "Bugagazavr" [people.donny-dont] name = "Don Olmstead" @@ -23,9 +25,22 @@ login = "nlf" [people.tboerger] name = "Thomas Boerger" - email = "" + email = "thomas@webhippie.de" login = "tboerger" + [people.athieriot] + name = "Aurélien Thieriot" + email = "a.thieriot@gmail.com" + login = "athieriot" [org] [org.core] - people = ["bradrydzewski", "Bugagazavr", "donny-dont", "jackspirou", "msteinert", "nlf", "tboerger"] + people = [ + "bradrydzewski", + "Bugagazavr", + "donny-dont", + "jackspirou", + "msteinert", + "nlf", + "tboerger", + "athieriot" + ] diff --git a/Makefile b/Makefile index 3a28234..54eba0f 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,14 @@ -.PHONY: clean deps fmt vet test docker +.PHONY: all clean deps fmt vet test docker EXECUTABLE ?= drone-webhook IMAGE ?= plugins/$(EXECUTABLE) -CI_BUILD_NUMBER ?= 0 +COMMIT ?= $(shell git rev-parse --short HEAD) -LDFLAGS = -X "main.buildDate=$(shell date -u '+%Y-%m-%d %H:%M:%S %Z')" +LDFLAGS = -X "main.buildCommit=$(COMMIT)" PACKAGES = $(shell go list ./... | grep -v /vendor/) +all: deps build test + clean: go clean -i ./... diff --git a/README.md b/README.md index f903ee6..1d98e58 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ [![Coverage Status](https://aircover.co/badges/drone-plugins/drone-webhook/coverage.svg)](https://aircover.co/drone-plugins/drone-webhook) [![](https://badge.imagelayers.io/plugins/drone-webhook:latest.svg)](https://imagelayers.io/?images=plugins/drone-webhook:latest 'Get your own badge on imagelayers.io') -Drone plugin to send build status notifications via Webhook +Drone plugin to send build status notifications via Webhook. For the usage information and a listing of the available options please take a look at [the docs](DOCS.md). ## Binary diff --git a/main.go b/main.go index 253e839..d861248 100644 --- a/main.go +++ b/main.go @@ -20,11 +20,11 @@ const ( ) var ( - buildDate string + buildCommit string ) func main() { - fmt.Printf("Drone Webhook Plugin built at %s\n", buildDate) + fmt.Printf("Drone Webhook Plugin built from %s\n", buildCommit) system := drone.System{} repo := drone.Repo{}