JSPM

pr-triage

1.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q26960F
  • License MIT

GitHub App built with Probot that support pull request workflow

Package Exports

  • pr-triage

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (pr-triage) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

PRTriage build status codecov codacy status greenkeeper status vulnerabilities status

GitHub App built with Probot that support pull request workflow

Install

PRTriage does "NOT" have permission to Read & Write your code 🙈. For more details, see Permission and Subscribe section. If you have any question, please free to ask us via creating an issue.

  1. 🏃 Go to PRTriage App Page
  2. 🚀 Click Install
  3. 🔍 Please choose a repository
  4. ✨ That's it.

How it works

  • Do nothing if your title of PR starts from WIP, [WIP] or WIP:.
  • Add a PR: unreviewed label if your PR does not have any reviews for latest commit.
  • Add a PR: reviewed-changes-requested label if your PR have reviewed and got Change request for latest commit.
  • Add a PR: review-approved label if your PR have reviewed and got Approve for latest commit.

Permission & Subscribe event

Here are permission and event PRTriage is requested and subscribe:

  • No access to code
  • ✅ Read access to metadata
  • ✅ Read and write access to pull requests to create, add and remove labels PRTriage manipulate.

Develop

Setup

  1. Go to PRTriage Sandbox App Page
  2. Download private key file and place it under project root.
  3. Set APP_ID in .env to the ID.
  4. Set WEBHOOK_SECRET in .env to the development.
  5. Go to seem.io and click Start a new channel. Set WEBHOOK_PROXY_URL in .env to the URL.
  6. Start probot on your local machine.

Simulate

Simulate a pull request event:

$ ./node_modules/.bin/probot simulate pull_request test/simulates/pull_request.opened.json ./index.js

Simulate a pull request review event:

$ ./node_modules/.bin/probot simulate pull_request_review test/simulates/pull_request_review.submitted.approved.json ./index.js

Test

Run all tests:

$ npm test

Run a single test:

$ ./node_modules/.bin/jest -t "<name in `describe` or `test`>"

License

MIT © Sam Yamashita