-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
consume new @actions/github for GHES support #236
Conversation
@@ -75,8 +74,8 @@ async function downloadArchive( | |||
ref: string, | |||
commit: string | |||
): Promise<Buffer> { | |||
const octokit = new github.GitHub(authToken, {baseUrl: urlHelper.getApiUrl()}) | |||
const params: ReposGetArchiveLinkParams = { | |||
const octokit = new github.GitHub(authToken) |
There was a problem hiding this comment.
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
import {default as uuid} from 'uuid/v4' | ||
import {ReposGetArchiveLinkParams} from '@octokit/rest' | ||
import {Octokit} from '@octokit/rest' |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Let the toolkit set the baseUrl (GHES vs Dotcom) when constructing the Octokit REST client