mirror of
https://github.com/actions/toolkit
synced 2025-05-09 16:43:02 +00:00
Add note about constructor options
This commit is contained in:
parent
ebace7edd3
commit
1c4866fa48
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue