Skip to content

Conversation

ericsciple
Copy link
Contributor

@ericsciple ericsciple commented May 7, 2020

Let the toolkit set the baseUrl (GHES vs Dotcom) when constructing the Octokit REST client

): Promise<Buffer> {
const octokit = new github.GitHub(authToken, {baseUrl: urlHelper.getApiUrl()})
const params: ReposGetArchiveLinkParams = {
const octokit = new github.GitHub(authToken)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let the toolkit set the baseUrl

@ericsciple ericsciple requested a review from thboop May 7, 2020 15:12
import * as urlHelper from './url-helper'
import {default as uuid} from 'uuid/v4'
import {ReposGetArchiveLinkParams} from '@octokit/rest'
import {Octokit} from '@octokit/rest'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wasnt able to import directly anymore (compat break)

Copy link
Contributor

@thboop thboop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ericsciple ericsciple merged commit ac45559 into master May 7, 2020
@ericsciple ericsciple deleted the users/ericsciple/m261ghes branch May 7, 2020 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants