Create an incoming webhook
You need the Contributor role or above.1
Open incoming webhooks
In Peeps, open Settings and select Incoming webhooks under Triggers.
2
Create it
Click Create incoming webhook (Create your first incoming webhook if the project has none). If you see tabs, choose Manual setup. GitHub (one-click) is only for GitHub deployments.
3
Choose what runs
Give it a Name. Then pick the tests to run: one or more Selections, one or more Test cases, or both. Only test cases with a published script are listed.
4
Choose where it runs
Set Test run environment. Every run this webhook starts uses that environment and its variables, including
BASE_URL. If the environment is missing a variable the chosen tests use, Peeps asks you to add it before you can create the webhook.5
Save the secret
Click Create incoming webhook. Peeps shows the webhook URL and its secret. Save the secret now: Peeps shows it only once.
Call it
Send aPOST to the webhook URL with the secret in the X-Peeps-Secret header:
Request body
The body is optional JSON. Peeps reads these fields:
Peeps treats a body that isn’t valid JSON as empty. Other fields Peeps reads come from GitHub deploy events, and you don’t need them.
Response
A200 means Peeps accepted the call. The body says what happened:
"status": "filtered" means nothing ran. If a filter skipped the call, the reason field says which one. If Peeps couldn’t start the tests, for example because one has no published script, the error field says why.
If the webhook’s selections hold no tests, the call succeeds with "runsQueued": 0.
Each webhook accepts up to 10 calls a minute. Every call counts toward the limit, including calls a filter skips and calls with a wrong secret.
Filters
Filters let one webhook ignore some calls. A call that a filter skips returns200 with "status": "filtered".
- Environment (optional). Runs only when the request’s
environmentmatches. A call with noenvironmentstill runs. - Branch (optional). Runs only when the request’s
refnames this branch. A call with norefstill runs.