From 1c4866fa4822150f2bc8e4c8b624c8d46d7d5239 Mon Sep 17 00:00:00 2001 From: Jonathan Clem Date: Thu, 5 Sep 2019 10:52:34 -0400 Subject: [PATCH] Add note about constructor options --- packages/github/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/github/README.md b/packages/github/README.md index 2b74bb1dd4..b4312568d2 100644 --- a/packages/github/README.md +++ b/packages/github/README.md @@ -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