detect-pull-reqs
Detect pull requests between two branches.
example.js
const detect = ; { const owner repo = name; const pulls = await ; // or pass octokit instance. const Octokit = const pulls = await ; console; }processargv;
$ GITHUB_TOKEN=... node index.js grassedge/detect-pull-reqs production master# --> [ 'https://github.com/grassedge/detect-pull-reqs/pull/1' ]