Automate the process of responding to newly opened issues on a GitHub repository.
Handles webhook and returns a verification response.
Parameters
| Name | Description | Location | Type | Sample Value |
|---|---|---|---|---|
| x-hub-signature-256 | GitHub webhook signature | Header | String | h74ba0jbla01lagudfo |
| x-github-event | GitHub webhook event type | Header | String | issues |
| JSON Body | GitHub webhook payload | Body | Object | See GitHub docs |
Response
Sample 200 Response:
Webhook verification successful.
{ "ok": true }Sample 401 Response:
Webhook verification failed.
{ "ok": false, "error": "Invalid signature" }| Setting | Value |
|---|---|
| Runtime | Node (18.0) |
| Entrypoint | src/main.js |
| Build Commands | npm install |
| Permissions | any |
| Timeout (Seconds) | 15 |
The secret used to verify that the webhook request comes from GitHub.
| Question | Answer |
|---|---|
| Required | Yes |
| Sample Value | d1efb...aec35 |
| Documentation | GitHub Docs |
A personal access token from GitHub with the necessary permissions to post comments on issues.
| Question | Answer |
|---|---|
| Required | Yes |
| Sample Value | ghp_1... |
| Documentation | GitHub Docs |