Last active
August 2, 2020 12:35
-
-
Save jph98/df866f46f9fa79004cb5a035105858f2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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