Introduce external repository token

This commit is contained in:
Robert 2021-01-04 12:31:55 +00:00
parent a0c4707dcc
commit 90d1a31dd4
22 changed files with 72 additions and 41 deletions

View file

@ -11,11 +11,19 @@ export enum DisallowedAPIVersionReason {
ACTION_TOO_NEW,
}
export type GitHubApiCombinedDetails = GitHubApiDetails &
GitHubApiExternalRepoDetails;
export interface GitHubApiDetails {
auth: string;
url: string;
}
export interface GitHubApiExternalRepoDetails {
externalRepoAuth: string;
url: string;
}
export const getApiClient = function (
apiDetails: GitHubApiDetails,
allowLocalRun = false