Commit graph

531 commits

Author SHA1 Message Date
Su Yang
46f93d752f
Merge pull request #5 from lostsnow/feature/stream-output-as-response
add ability to stream command output as a response
2023-01-09 22:15:28 +08:00
Su Yang
741423f00b
Merge pull request #4 from nopcoder/docs/contributing
Fix CONTRIBUTING.md links to issues
2023-01-09 22:14:15 +08:00
Su Yang
603f5b3d4c
Merge pull request #3 from bakwc/bakwc-removed-snap
Update README.md
2023-01-09 22:13:40 +08:00
Su Yang
3f83f1fe0c
Merge pull request #2 from atlekbai/test/hook-request
Test/hook request
2023-01-09 22:11:42 +08:00
Su Yang
f90fc7ce77
Merge pull request #1 from nopcoder/fix/load-unrecognized-keys
Fix error on unrecognized configuration keys
2023-01-09 22:10:03 +08:00
soulteary
b05d94db06
chore: update ignore list for coverage.out 2023-01-09 22:08:55 +08:00
soulteary
5f59f90f9c
fix: Fix 1.19 incompatibilities 2023-01-09 22:02:57 +08:00
soulteary
5730b0e588
chore: rm legacy vendor 2023-01-09 22:02:13 +08:00
soulteary
90fdae322f
chore: go mod vendor 2023-01-09 20:44:55 +08:00
soulteary
f93670d9ae
chore: update docker 2023-01-09 19:21:10 +08:00
soulteary
d7226e823b
chore: update deps, go 1.19 2023-01-09 19:19:46 +08:00
Su Yang
32a781920e
Merge branch 'adnanh:master' into master 2023-01-09 19:13:37 +08:00
Barak Amar
d7367bcb8b Fix error on unrecognized configuration keys
- Error while loading configuration with unrecognized keys
- Do not start if failed to load configuration from file
2022-10-11 10:04:37 +03:00
Barak Amar
e439cac36e
Fix CONTRIBUTING.md links to issues 2022-10-11 00:26:35 +03:00
Ali Tlekbai
14ec47b214 add: additional test for invalid json payload 2022-10-03 17:25:37 +06:00
Ali Tlekbai
1cdbd7e6ad add: tests for internal/hooks/requests.go 2022-10-03 17:20:05 +06:00
Kārlis K
dab29e7267
Update Hook-Examples.md (#576)
Synology webhook example
2022-08-31 10:30:47 +02:00
Arran
0c0bf0b244
Add Gitea and Uberspace Guide (#579) 2022-02-21 13:15:17 +01:00
Marek Isalski
c7f7163aaa
Update Bitbucket example to reference Atlassian's outgoing IP subnets (#578)
* Update Bitbucket example to check all of Atlassian's outgoing IP ranges

Co-authored-by: Marek Isalski <git@maz.nu>
2022-02-14 09:24:38 +01:00
soulteary
9da8289ef8 feat: add dockerfile for debian, alpine 2022-01-01 23:54:14 +08:00
Adnan Hajdarević
36e77b1c7a
Merge pull request #567 from Prince-Mendiratta/master
Fix broken link for guide to Jira and webhook integration
2021-12-31 09:22:42 +01:00
Prince Mendiratta
5189c62651
Fix broken link for guide to Jira and webhook integration
Signed-off-by: Prince Mendiratta <prince.mendi@gmail.com>
2021-12-29 16:51:20 +05:30
Filipp Ozinov
45d0e83b65
Update README.md 2021-12-16 01:40:38 +03:00
Adnan Hajdarević
75f406845f
Update README.md 2021-10-11 12:47:23 +02:00
Adnan Hajdarević
105b019e2b
Merge pull request #559 from Anksus/master
Update README.md
2021-09-27 13:41:06 +02:00
Ankit_Susne
4f00a26293
Update README.md 2021-09-25 22:56:38 +05:30
lostsnow
afd20c569e add ability to stream command output as a response 2021-08-04 12:49:20 +08:00
Adnan Hajdarević
2a36f24269
Merge pull request #529 from benjaoming/patch-1
Clarify version number for which the example works
2021-07-29 14:20:53 +02:00
Benjamin Balder Bach
1ec494fb0d
Clarify version number for which the example works
#461 changed option name and in https://github.com/adnanh/webhook/pull/528#issuecomment-826165812, @moorereason suggests to look at old tags of example documentation. This would mean that users have to read through random old documentation to discover why their packaged version doesn't work . Suggesting that clarity in the examples is preferable.

Recall that renaming this doesn't give the user some easy exception. It just mean that the trigger isn't satisfied, so there are A LOT of options for debugging.

(which takes a lot of time to do, so that's why this information is important)
2021-04-25 13:26:02 +02:00
Adnan Hajdarević
e329b6d9ff
Merge pull request #518 from adhawkins/busybox-tests
Allow tests to run on systems that use busybox (such as Alpine)
2021-03-15 22:43:13 +01:00
Andy Hawkins
181672afcc Allow tests to run on systems that use busybox (such as Alpine) 2021-03-13 16:02:44 +00:00
Adnan Hajdarević
d523af1b6c
Fixes #497 2021-02-28 09:55:08 +01:00
Adnan Hajdarević
390e3bd772
Merge pull request #503 from TheCatLady/add-alt-docker-images
Add alternative Docker images
2021-01-29 20:08:46 +01:00
TheCatLady
21549749c0
Add alternative Docker images 2021-01-28 12:16:03 -05:00
Adnan Hajdarevic
6184509494 Add build directory to .gitignore 2021-01-26 20:53:07 +01:00
Adnan Hajdarevic
b1f69564a3 Merge branch 'development' 2020-12-06 08:42:20 +01:00
Adnan Hajdarevic
159cb4a911 bump version to 2.8.0 2020-12-06 08:42:09 +01:00
Adnan Hajdarević
b5af9a3968
Merge pull request #489 from moorereason/iss487-doc-string
Add string parameter example to docs
2020-12-06 08:40:31 +01:00
Adnan Hajdarević
2e4aea4cbc
Merge pull request #486 from moorereason/iss439-raw-body
Add option to send raw request body to command
2020-12-06 08:39:55 +01:00
Adnan Hajdarević
b6e5b11174
Merge pull request #485 from moorereason/iss234-soft-sig-errors
Add soft signature failure support
2020-12-06 08:39:31 +01:00
Adnan Hajdarević
9dec52c727
Merge pull request #484 from moorereason/iss421-slash-path
Add support for slashes in hook IDs
2020-12-06 08:38:53 +01:00
Cameron Moore
f2b536dbad Add string parameter example to docs
Fixes #487
2020-12-05 16:34:49 -06:00
Cameron Moore
62f9c01cab Add option to send raw request body to command
The existing `entire-payload` option sends a JSON representation of the
parsed request body.  Add a new `raw-request-body` source to send the
raw request body.

Fixes #439
2020-11-25 10:20:10 -06:00
Cameron Moore
6d2f26d952 Add soft signature failure support
Add a new trigger-signature-soft-failures option to allow soft signature
failures in Or rules.

Fixes #234
2020-11-24 21:16:57 -06:00
Cameron Moore
c2ffd465c4 Add support for slashes in hook IDs
When matching variables in routes, gorilla/mux uses a default pattern of
"[^/]+", thereby prohibiting slashes in variable matching.  Override the
default pattern to remove this restriction.

See https://github.com/gorilla/mux/blob/v1.8.0/regexp.go#L50

Fixes #421
2020-11-24 16:56:54 -06:00
Adnan Hajdarević
3e18a060ae
Merge pull request #479 from moorereason/iss312-http-request
Add request source
2020-11-21 18:58:19 +01:00
Cameron Moore
6f5962f8f2 Use strings.ToLower on source name parameters 2020-11-21 10:00:03 -06:00
Cameron Moore
346c761ef6 Add request source
Add "request" source with support for "method" and "remote-addr"
parameters.  Both values are taken from the raw http.Request object.

Fixes #312
2020-11-20 16:32:55 -06:00
Adnan Hajdarević
e513eb4bf4
Merge pull request #477 from moorereason/refactor-req-parsing
Move some request parsing into hook package
2020-11-19 19:44:33 +01:00
Cameron Moore
22c8a1670b Move some request parsing into hook package
Trying to simplify hookHandler.  No functional changes introduced.
2020-11-17 15:00:58 -06:00