Adnan Hajdarevic
1039151a16
added hook reload on USR1 signal
2015-03-31 22:10:35 +02:00
Adnan Hajdarević
db928228c8
bumping up the minor version
2015-03-30 15:33:15 +02:00
Kevin Le Brun
5f853d8aba
Allow charset to be defined in Content-Type header
...
The payload couldn't be parsed when charset was present in the
`Content-Type` header. The content type should begin with the MIME type
so we now check if the content type starts with `application/json` or
`application/x-www-form-urlencoded`.
This closes #20
2015-03-29 20:01:56 +02:00
Adnan Hajdarevic
231426da57
removed leftover debug trace, fixed a panic bug
2015-03-21 01:26:04 +01:00
Adnan Hajdarevic
688483d6d1
added parse-parameters-as-json property to hooks, fixed some bugs in old code
2015-03-21 01:10:17 +01:00
Cameron Moore
7dd55f5232
Refactor to remove helpers package
...
This commit removes the "helpers" package by moving functions from the
package into the other packages that use them.
CheckPayloadSignature() and ExtractParamater() are simply moved to the
"hook" package. I'm not sure of the usefulness of having these
functions exported, but I left them allow for now.
ValuesToMap() is moved to the "main" webhook package and renamed to
valuesToMap().
Tests were moved into the "hook" package since we only test
ExtractParameter() right now.
This commit closes adnanh/webhook#12 .
2015-03-20 08:55:42 -05:00
Cameron Moore
e9aaeb579e
Rework negroni Logger creation
...
From `go vet`:
webhook.go:98: github.com/codegangsta/negroni.Logger composite literal uses unkeyed fields
2015-03-19 09:23:47 -05:00
Adnan Hajdarevic
f83af97138
added per-hook defined response message
2015-03-17 19:34:54 +01:00
Adnan Hajdarevic
5a96a5721a
added custom url prefix for served hooks url path
2015-03-17 19:05:18 +01:00
Adnan Hajdarevic
ad76b51e6a
updated minor version to 2.2.0
2015-03-14 13:04:28 +01:00
Adnan Hajdarevic
c9adceb5d8
added support for https
2015-03-14 12:59:54 +01:00
Adnan Hajdarevic
d3f5da5489
bumped up the minor version to 2.1.0
2015-03-14 12:44:05 +01:00
Adnan Hajdarevic
652109d46e
added ability to hot reload the hooks file
2015-03-14 12:37:45 +01:00
Adnan Hajdarevic
90528b2ed9
webhook 2.0.0
2015-03-13 01:31:49 +01:00
Adnan Hajdarević
2e16eb5d77
bumped up the minor version
2015-02-26 15:56:41 +01:00
Adnan Hajdarević
f47ba2ad97
Update webhook.go
...
misplaced closing bracket...
2015-02-26 15:56:15 +01:00
Adnan Hajdarevic
d285c08f9f
logical error
2015-02-25 01:06:55 +01:00
Adnan Hajdarevic
73278ff99b
github hookshot user agent fix
2015-02-25 00:27:05 +01:00
Adnan Hajdarevic
ea7fd4cb87
fix
2015-02-25 00:21:10 +01:00
Adnan Hajdarevic
f1c4415fc8
refactoring
2015-02-25 00:12:24 +01:00
Adnan Hajdarevic
a5d79fddd9
separated github from post handler
2015-02-24 16:52:55 +01:00
Adnan Hajdarevic
4e4260e24f
wording
2015-01-20 19:00:31 +01:00
Adnan Hajdarevic
3c4c025233
added support for x-hub-signature
2015-01-20 18:57:16 +01:00
Adnan Hajdarevic
450852e1be
removed signals
2015-01-15 16:52:26 +01:00
Adnan Hajdarevic
7b3ebcc9cb
added signal watcher
2015-01-15 16:49:32 +01:00
Adnan Hajdarevic
f5276ea955
debugging...
2015-01-15 16:37:34 +01:00
Adnan Hajdarevic
fb8ac8564b
bumped up the version to 1.0.1
2015-01-15 16:31:28 +01:00
Adnan Hajdarevic
179367a28d
added support for secrets
2015-01-15 16:27:54 +01:00
Adnan Hajdarevic
363a5359bd
refactoring
2015-01-13 02:12:19 +01:00
Adnan Hajdarevic
6af1966ac7
rotation is annoying
2015-01-13 02:07:08 +01:00
Adnan Hajdarevic
a4ce24550c
fix
2015-01-13 01:49:49 +01:00
Adnan Hajdarevic
6c6f353c88
added logging support
2015-01-13 01:43:46 +01:00
Adnan Hajdarevic
7d9d3652ba
refactoring
2015-01-13 01:07:47 +01:00
Adnan Hajdarevic
c70c21fda7
added flags to specify the hooks json file path, ip and port the webhook should serve on
2015-01-13 00:59:18 +01:00
Adnan Hajdarevic
ffabc5541e
initial commit
2015-01-12 22:14:25 +01:00