Build a GitHub search string (the 'q' parameter for use with the GitHub Search API).
var Github = require('machinepack-github');
// Build a GitHub search string (the 'q' parameter for use with the GitHub Search API).
Github.buildGithubSearchString({
repo: 'sails',
owner: 'balderdashy',
state: 'open',
lastUpdatedBefore: 1442710858715,
withAllOfTheseLabels: [ 'question' ],
withNoneOfTheseLabels: [ 'bug' ],
type: 'pr',
}).execSync();
The name of the Github repo (i.e. as it appears in the URL on GitHub)
'sails'
The name of the organization or user that owns the repo (i.e. as it appears in the URL on GitHub)
'balderdashy'
The state to filter issues by (either "open" or "closed".
'open'
A JS timestamp.
1442710858715
A set of issue labels.
[ 'question' ]
A set of issue labels.
[ 'bug' ]
The type of issues to return (either `pr` or `issue).
'pr'
An unexpected error occurred.
OK.
'repo:balderdashy/sails state:open'