Skip to content

Commit

Permalink
chore: remove unused github platform variables
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed Jul 7, 2020
1 parent 4db12f9 commit 60d1a5f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
4 changes: 0 additions & 4 deletions lib/platform/github/index.ts
Expand Up @@ -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 {
Expand Down Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion lib/platform/github/types.ts
Expand Up @@ -40,7 +40,6 @@ export interface LocalRepoConfig {
mergeMethod: string;
baseBranch: string;
defaultBranch: string;
enterpriseVersion: string;
repositoryOwner: string;
repository: string | null;
localDir: string;
Expand Down

0 comments on commit 60d1a5f

Please sign in to comment.