Update readme with filters not
and header
This commit is contained in:
parent
8c9d9e63f2
commit
181edf589c
1 changed files with 17 additions and 6 deletions
21
README.md
21
README.md
|
@ -98,16 +98,17 @@ hooks:
|
||||||
- secret_key_02
|
- secret_key_02
|
||||||
filter:
|
filter:
|
||||||
or:
|
or:
|
||||||
- json:
|
- not:
|
||||||
|
json:
|
||||||
pointer: /ref
|
pointer: /ref
|
||||||
regex: refs/heads/master
|
regex: refs/heads/dev
|
||||||
- and:
|
- and:
|
||||||
- json:
|
- json:
|
||||||
pointer: /ref
|
pointer: /ref
|
||||||
regex: refs/heads/a_branch
|
regex: refs/heads/a_branch
|
||||||
- json:
|
- header:
|
||||||
pointer: /after
|
field: X-Gitea-Event
|
||||||
regex: f6e5fe4fe37df76629112d55cc210718b6a55e7e
|
regex: push
|
||||||
```
|
```
|
||||||
|
|
||||||
##### Command
|
##### Command
|
||||||
|
@ -163,10 +164,20 @@ hook should be executed.
|
||||||
|
|
||||||
###### Conjunction Filters
|
###### Conjunction Filters
|
||||||
Conjunction filters contain lists of other filters.
|
Conjunction filters contain lists of other filters.
|
||||||
|
- `not`: Logical negation.
|
||||||
- `and`: Logical conjunction.
|
- `and`: Logical conjunction.
|
||||||
- `or`: Logical disjunction.
|
- `or`: Logical disjunction.
|
||||||
|
|
||||||
###### Concrete Filters
|
###### Concrete Filters
|
||||||
|
- `header`:
|
||||||
|
|
||||||
|
The `header` filter matches a regular expression on a field from the
|
||||||
|
received http(s) request header.
|
||||||
|
|
||||||
|
- `field`: The header field which should be matched.
|
||||||
|
- `regeq`: Regular expression which has to match the specified
|
||||||
|
header field.
|
||||||
|
|
||||||
- `json`:
|
- `json`:
|
||||||
|
|
||||||
The `json` filter matches a regular expression on a field from the
|
The `json` filter matches a regular expression on a field from the
|
||||||
|
|
Loading…
Reference in a new issue