github-labeler
A micro github webhook endpoint to auto-label new PRs.
Last updated 4 months ago by daeyeon .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install github-labeler 
SYNC missed versions from official npm registry.

Github-Labeler

A micro github webhook endpoint to auto-label new PRs. This is a toy for the environment where github action isn't available.

Configurations

{
  // A list of labels to attach to new pull requests
  "PR_LABELS": [
    {
      "base": "conditional",
      "label": ["conditional"]
    },
    {
      "base": "*",
      "label": ["all"]
    }
  ],
  // https://github.com/{accout)/{your-respo)/settings/hooks
  // 1. `Add webhook` and fill in `Payload URL`.
  // 2. `Content type` should be `application/json`.
  // 3. Select individual events for `Pull Request`.
  // 4. Fill in `Secret`  passphrase there and here.
  "SECRET": "",
  // https://github.com/settings/tokens/new
  // `public_repo` is required at least.
  "TOKEN": "",
  // default: 5696
  "PORT": 5696,
  // the path for the GitHub callback: default: "/"
  "PATH": "/"
}

How to run

$ DEBUG="labeler,github" node github-labeler.js config/index.json

Current Tags

  • 1.0.1                                ...           latest (4 months ago)

2 Versions

  • 1.0.1                                ...           4 months ago
  • 1.0.0                                ...           4 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (4)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |