Closed Bug 1335913 Opened 7 years ago Closed 7 years ago

Support incorporation of webhook payloads into tasks

Categories

(Taskcluster :: Services, defect)

defect
Not set
normal

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.
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)
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)
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);
```
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Component: Hooks → Services
You need to log in before you can comment on or make changes to this bug.