Skip to content

A small Node.js webhook service to auto-label new issues or PRs on submission

License

Notifications You must be signed in to change notification settings

fhambrec/github-auto-label

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

github-auto-label

A small Node.js webhook service to auto-label new issues or PRs on submission

This micro-service depends on enviroment variables being set. Listed below are the required values.

Environment Variable Description Default
GITHUB_REPOS A comma-delimited list of repos to watch for (e.g. github-auto-label or github-auto-label,github-add) undefined
GITHUB_PR_LABELS A comma-delimited list of labels to attach to new pull requests (leave empty to disable PR labeling) undefined
GITHUB_ISSUE_LABELS A comma-delimited list of labels to attach to new issues (leave empty to disable issue labeling) undefined
GITHUB_TOKEN A valid Github Access Token (Create a personal one here: https://github.com/settings/tokens/new) undefined
WEBHOOK_PATH Server path for the webhook /
GITHUB_SECRET Passphrase set up during Webhook addition thisIsASuperSecretSecret
PORT Server port 80

Set up a webhook for your repo

  • Go to https://github.com/account/repo/settings/hooks
  • click on "Add Webhook". Input your password and continue.

  • Fill in the Payload URL and Secret passphrase (GITHUB_SECRET) for the application.
  • Under "Which events would you like to trigger this webhook?", select "Let me select individual events.", and select only the following:
    • "Pull Request"
    • "Issues"
  • Click "Add Webhook"

About

A small Node.js webhook service to auto-label new issues or PRs on submission

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%