Closed
Bug 1335913
Opened 8 years ago
Closed 7 years ago
Support incorporation of webhook payloads into tasks
Categories
(Taskcluster :: Services, defect)
Taskcluster
Services
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1286989
People
(Reporter: dustin, Unassigned)
References
Details
So when we get a webhook, if it has a JSON body, the hook can incorporate data from that body.
Comment 1•8 years ago
|
||
Hi Dustin, Incorporating data from body is dependent on JSON we receive and JSON depends upon the webhook i.e. different JSON for different webhook end point. So can you shed some light on webhooks which need to be implemented.
Flags: needinfo?(dustin)
Reporter | ||
Comment 2•8 years ago
|
||
The webhook can be arbitrary. It forms the context for the json-e translation, with the hook definition treated as the template.
Flags: needinfo?(dustin)
Comment 3•8 years ago
|
||
So we will have some webhook with some code like this right ?
```
let template = .....template definition....
let context = req.body;
let result = jsone(template, context);
```
Reporter | ||
Updated•7 years ago
|
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Assignee | ||
Updated•6 years ago
|
Component: Hooks → Services
You need to log in
before you can comment on or make changes to this bug.
Description
•