Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const graphql = require('@octokit/graphql')
- const main = async repoNumber => {
- const { repository } = await graphql(
- `
- query {
- repository(owner: "SenseNet", name: "sn-client") {
- pullRequest(number: ${repoNumber}) {
- title
- body
- id
- }
- }
- }
- `,
- {
- headers: {
- authorization: `token ${process.env.GITHUB_TOKEN}`,
- },
- },
- )
- console.log(repository.pullRequest)
- }
- main(164)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement