Skip to content

Commit

Permalink
fix: Pin Octokit to v17. (#32)
Browse files Browse the repository at this point in the history
* fix: Pin Octokit version.

* Switch to v17.
  • Loading branch information
milesj authored Mar 25, 2020
1 parent afabeac commit 09be800
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 17 deletions.
1 change: 1 addition & 0 deletions packages/nimbus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"@airbnb/nimbus-common": "^3.0.1",
"@beemo/cli": "^1.0.10",
"@beemo/core": "^1.1.6",
"@octokit/rest": "^17.1.2",
"chalk": "^3.0.0",
"check-node-version": "^4.0.2",
"conventional-changelog-beemo": "^1.6.0",
Expand Down
10 changes: 5 additions & 5 deletions packages/nimbus/src/helpers/createGitHubClient.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import Rest from '@octokit/rest';
import { Octokit } from '@octokit/rest';
import { VERSION } from '../constants';

const { Octokit } = Rest;

export default function createGitHubClient(token?: string): Rest.Octokit {
export default function createGitHubClient(token?: string): Octokit {
const { GITHUB_TOKEN, GHE_API_URL, GHE_VERSION } = process.env;
const options: Rest.Octokit.Options = {
const options = {
auth: '',
baseUrl: '',
userAgent: `Nimbus v${VERSION}`,
};

Expand Down
79 changes: 67 additions & 12 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2104,15 +2104,36 @@
dependencies:
"@octokit/types" "^2.0.0"

"@octokit/endpoint@^5.5.0":
version "5.5.3"
resolved "https://registry.yarnpkg.com/@octokit/endpoint/-/endpoint-5.5.3.tgz#0397d1baaca687a4c8454ba424a627699d97c978"
integrity sha512-EzKwkwcxeegYYah5ukEeAI/gYRLv2Y9U5PpIsseGSFDk+G3RbipQGBs8GuYS1TLCtQaqoO66+aQGtITPalxsNQ==
"@octokit/core@^2.4.3":
version "2.4.3"
resolved "https://registry.yarnpkg.com/@octokit/core/-/core-2.4.3.tgz#f51c0c228e6aa01253f9452ba5a25dc20aee8577"
integrity sha512-9T91nYeBB7+PNK3oxOuA+6DXCPRvhJ80ke+NqhXirBjVtNepTKFJXoWPqguRSBQ+dkEVA8dZJMxfFzjz9yhiuA==
dependencies:
"@octokit/auth-token" "^2.4.0"
"@octokit/graphql" "^4.3.1"
"@octokit/request" "^5.3.1"
"@octokit/types" "^2.0.0"
before-after-hook "^2.1.0"
universal-user-agent "^5.0.0"

"@octokit/endpoint@^6.0.0":
version "6.0.0"
resolved "https://registry.yarnpkg.com/@octokit/endpoint/-/endpoint-6.0.0.tgz#4c7acd79ab72df78732a7d63b09be53ec5a2230b"
integrity sha512-3nx+MEYoZeD0uJ+7F/gvELLvQJzLXhep2Az0bBSXagbApDvDW0LWwpnAIY/hb0Jwe17A0fJdz0O12dPh05cj7A==
dependencies:
"@octokit/types" "^2.0.0"
is-plain-object "^3.0.0"
universal-user-agent "^5.0.0"

"@octokit/graphql@^4.3.1":
version "4.3.1"
resolved "https://registry.yarnpkg.com/@octokit/graphql/-/graphql-4.3.1.tgz#9ee840e04ed2906c7d6763807632de84cdecf418"
integrity sha512-hCdTjfvrK+ilU2keAdqNBWOk+gm1kai1ZcdjRfB30oA3/T6n53UVJb7w0L5cR3/rhU91xT3HSqCd+qbvH06yxA==
dependencies:
"@octokit/request" "^5.3.0"
"@octokit/types" "^2.0.0"
universal-user-agent "^4.0.0"

"@octokit/plugin-enterprise-rest@^3.6.1":
version "3.6.2"
resolved "https://registry.yarnpkg.com/@octokit/plugin-enterprise-rest/-/plugin-enterprise-rest-3.6.2.tgz#74de25bef21e0182b4fa03a8678cd00a4e67e561"
Expand All @@ -2125,6 +2146,13 @@
dependencies:
"@octokit/types" "^2.0.1"

"@octokit/plugin-paginate-rest@^2.0.0":
version "2.0.2"
resolved "https://registry.yarnpkg.com/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-2.0.2.tgz#fee7a81a4cc7d03784aaf9225499dd6e27f6d01e"
integrity sha512-HzODcSUt9mjErly26TlTOGZrhf9bmF/FEDQ2zln1izhgmIV6ulsjsHmgmR4VZ0wzVr/m52Eb6U2XuyS8fkcR1A==
dependencies:
"@octokit/types" "^2.0.1"

"@octokit/plugin-request-log@^1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@octokit/plugin-request-log/-/plugin-request-log-1.0.0.tgz#eef87a431300f6148c39a7f75f8cfeb218b2547e"
Expand All @@ -2138,21 +2166,38 @@
"@octokit/types" "^2.0.1"
deprecation "^2.3.1"

"@octokit/request-error@^1.0.1", "@octokit/request-error@^1.0.2":
"@octokit/plugin-rest-endpoint-methods@^3.3.0":
version "3.3.2"
resolved "https://registry.yarnpkg.com/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-3.3.2.tgz#964bb90c6f19f5c4f1ddfa2349ed7901cd82f734"
integrity sha512-v+XCH76ExaFDzQW3gPFvjfcMTTCuIkK5ACvBvzfDr74M+k6HYa+m4Iu1bAlj50Gybahe/ee93zt2hfYVI4k9Lg==
dependencies:
"@octokit/types" "^2.0.1"
deprecation "^2.3.1"

"@octokit/request-error@^1.0.2":
version "1.0.4"
resolved "https://registry.yarnpkg.com/@octokit/request-error/-/request-error-1.0.4.tgz#15e1dc22123ba4a9a4391914d80ec1e5303a23be"
integrity sha512-L4JaJDXn8SGT+5G0uX79rZLv0MNJmfGa4vb4vy1NnpjSnWDLJRy6m90udGwvMmavwsStgbv2QNkPzzTCMmL+ig==
dependencies:
deprecation "^2.0.0"
once "^1.4.0"

"@octokit/request@^5.2.0":
version "5.3.2"
resolved "https://registry.yarnpkg.com/@octokit/request/-/request-5.3.2.tgz#1ca8b90a407772a1ee1ab758e7e0aced213b9883"
integrity sha512-7NPJpg19wVQy1cs2xqXjjRq/RmtSomja/VSWnptfYwuBxLdbYh2UjhGi0Wx7B1v5Iw5GKhfFDQL7jM7SSp7K2g==
"@octokit/request-error@^2.0.0":
version "2.0.0"
resolved "https://registry.yarnpkg.com/@octokit/request-error/-/request-error-2.0.0.tgz#94ca7293373654400fbb2995f377f9473e00834b"
integrity sha512-rtYicB4Absc60rUv74Rjpzek84UbVHGHJRu4fNVlZ1mCcyUPPuzFfG9Rn6sjHrd95DEsmjSt1Axlc699ZlbDkw==
dependencies:
"@octokit/types" "^2.0.0"
deprecation "^2.0.0"
once "^1.4.0"

"@octokit/request@^5.2.0", "@octokit/request@^5.3.0", "@octokit/request@^5.3.1":
version "5.3.4"
resolved "https://registry.yarnpkg.com/@octokit/request/-/request-5.3.4.tgz#fbc950bf785d59da3b0399fc6d042c8cf52e2905"
integrity sha512-qyj8G8BxQyXjt9Xu6NvfvOr1E0l35lsXtwm3SopsYg/JWXjlsnwqLc8rsD2OLguEL/JjLfBvrXr4az7z8Lch2A==
dependencies:
"@octokit/endpoint" "^5.5.0"
"@octokit/request-error" "^1.0.1"
"@octokit/endpoint" "^6.0.0"
"@octokit/request-error" "^2.0.0"
"@octokit/types" "^2.0.0"
deprecation "^2.0.0"
is-plain-object "^3.0.0"
Expand Down Expand Up @@ -2182,6 +2227,16 @@
once "^1.4.0"
universal-user-agent "^4.0.0"

"@octokit/rest@^17.1.2":
version "17.1.2"
resolved "https://registry.yarnpkg.com/@octokit/rest/-/rest-17.1.2.tgz#f718ce8b0cf0f43d3b7ecc6241e087d7ca7d5eb0"
integrity sha512-Dm24iVakcVQwl1mrANYdaf1lvSeMwN9SxnEEh+EZQCfx5R8BE8E8w5Oe+LaKexbYZTv+MHqE7Af4LrSHSo9JgQ==
dependencies:
"@octokit/core" "^2.4.3"
"@octokit/plugin-paginate-rest" "^2.0.0"
"@octokit/plugin-request-log" "^1.0.0"
"@octokit/plugin-rest-endpoint-methods" "^3.3.0"

"@octokit/types@^2.0.0", "@octokit/types@^2.0.1":
version "2.5.0"
resolved "https://registry.yarnpkg.com/@octokit/types/-/types-2.5.0.tgz#f1bbd147e662ae2c79717d518aac686e58257773"
Expand Down Expand Up @@ -3243,7 +3298,7 @@ bcrypt-pbkdf@^1.0.0:
dependencies:
tweetnacl "^0.14.3"

before-after-hook@^2.0.0:
before-after-hook@^2.0.0, before-after-hook@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/before-after-hook/-/before-after-hook-2.1.0.tgz#b6c03487f44e24200dd30ca5e6a1979c5d2fb635"
integrity sha512-IWIbu7pMqyw3EAJHzzHbWa85b6oud/yfKYg5rqB5hNE8CeMi3nX+2C2sj0HswfblST86hpVEOAb9x34NZd6P7A==
Expand Down

0 comments on commit 09be800

Please sign in to comment.