From 60d1a5f35a58016a2e06c10a10c23631bd5a40e6 Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Tue, 7 Jul 2020 09:32:33 +0200
Subject: [PATCH] chore: remove unused github platform variables

---
 lib/platform/github/index.ts | 4 ----
 lib/platform/github/types.ts | 1 -
 2 files changed, 5 deletions(-)

diff --git a/lib/platform/github/index.ts b/lib/platform/github/index.ts
index f5deb861e6..1dba085435 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 c57c56b810..56bb1396a0 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;
-- 
GitLab