Skip to content

Latest commit

 

History

History

github-issue-bot

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

🤖 Node.js GitHub Issue Bot Function

Automate the process of responding to newly opened issues on a GitHub repository.

🧰 Usage

POST /

Handles webhook and returns a verification response.

Parameters

Name Description Location Type Sample Value
x-hub-signature-256 GitHub webhook signature Header String h82u6asf....
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" }

⚙️ Configuration

Setting Value
Runtime Node (18.0)
Entrypoint dist/main.js
Build Commands npm install && npm run build
Permissions any
Timeout (Seconds) 15

🔒 Environment Variables

GITHUB_WEBHOOK_SECRET

The secret used to verify that the webhook request comes from GitHub.

Question Answer
Required Yes
Sample Value d1efb...aec35
Documentation GitHub Docs

GITHUB_TOKEN

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