Skip to content

Commit

Permalink
Add EventListener Response in the Doc
Browse files Browse the repository at this point in the history
Add response from the EventListener in the doc. Status code and body
description added.
  • Loading branch information
khrm committed Jul 8, 2020
1 parent 0fd1938 commit ef6bf90
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/eventlisteners.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ using [Event Interceptors](#Interceptors).
- [Interceptors](#interceptors)
- [Logging](#logging)
- [Labels](#labels)
- [EventListener Response](#eventlistener-response)
- [Examples](#examples)
- [Multi-Tenant Concerns](#multi-tenant-concerns)

Expand Down Expand Up @@ -632,6 +633,17 @@ spec:
value: $(body.pull_request.head.short_sha)
```

## EventListener Response

The EventListener responds with 201 Created status code when at least one of the trigger is executed successfully. Otherwise, it returns 202 Accepted status code.
The EventListener responds with following message after receiving the event:
```JSON
{"eventListener":"listener","namespace":"default","eventID":"h2bb7"}
```
- `eventListener` - Refers to the EventListener Name.
- `namespace` - Refers to the namespace of the EventListener
- `eventID` - Refers to the uniqueID that gets assigned to each incoming request

## Examples

For complete examples, see
Expand Down

0 comments on commit ef6bf90

Please sign in to comment.