Finds GitHub PRs marked with provided labels and feeds them to Zapier (e.g. to be sent to Slack as bot). At Teespring we use it to make sure we don't lose PRs and to have a place for per-PR discussions on Slack with threads (comments of lasting value are still put on GitHub):
githubAPIToken
: requiredlabels
: optionalexcludeLabels
: optionalrepos
: required, list of repositoriesowner
: required, the github account
- Draft PRs are always exclued
npm install
node getPRs.js
See getPRs.js
Provided as zapier input variables, or in the top of getPRs.js
githubAPIToken
labels
: comma-separated list of PR labels. For a PR to be sent to Slack it must match ALL the labelsrepos
: comma-separated list of repos to check for PRs
like this |
---|