Skip to content

Commit

Permalink
Add note about constructor options
Browse files Browse the repository at this point in the history
  • Loading branch information
jclem committed Sep 5, 2019
1 parent ebace7e commit 1c4866f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ const { data: pullRequest } = await octokit.pulls.get({
console.log(pullRequest);
```

You can pass client options (except `auth`, which is handled by the token argument), as specified by [Octokit](https://octokit.github.io/rest.js/), as a second argument to the `GitHub` constructor.

You can also make GraphQL requests. See https://github.com/octokit/graphql.js for the API.

```js
Expand Down

0 comments on commit 1c4866f

Please sign in to comment.