diff --git a/lib/platform/github/index.ts b/lib/platform/github/index.ts index f5deb861e6af79..1dba08543578e5 100644 --- a/lib/platform/github/index.ts +++ b/lib/platform/github/index.ts @@ -220,8 +220,6 @@ export async function initRepo({ try { res = await githubApi.getJson<{ fork: boolean }>(`repos/${repository}`); logger.trace({ repositoryDetails: res.body }, 'Repository details'); - config.enterpriseVersion = - res.headers && (res.headers['x-github-enterprise-version'] as string); // istanbul ignore if if (res.body.fork && !includeForks) { try { @@ -275,8 +273,6 @@ export async function initRepo({ throw new Error(REPOSITORY_DISABLED); } } - const owner = res.body.owner.login; - logger.debug(`${repository} owner = ${owner}`); // Use default branch as PR target unless later overridden. config.defaultBranch = res.body.default_branch; // Base branch may be configured but defaultBranch is always fixed diff --git a/lib/platform/github/types.ts b/lib/platform/github/types.ts index c57c56b81032e5..56bb1396a090b8 100644 --- a/lib/platform/github/types.ts +++ b/lib/platform/github/types.ts @@ -40,7 +40,6 @@ export interface LocalRepoConfig { mergeMethod: string; baseBranch: string; defaultBranch: string; - enterpriseVersion: string; repositoryOwner: string; repository: string | null; localDir: string;