Skip to content

Instantly share code, notes, and snippets.

@jph98
Last active August 2, 2020 12:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jph98/df866f46f9fa79004cb5a035105858f2 to your computer and use it in GitHub Desktop.
Save jph98/df866f46f9fa79004cb5a035105858f2 to your computer and use it in GitHub Desktop.
const { Octokit } = require("@octokit/rest");
const config = JSON.parse(fs.readFileSync('config.json'));
const octo = new Octokit({
auth: config.apikey
});
const res = await octo.pulls.list({
owner: org,
config.repo,
state: 'open'
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment