From 743dcd81f7ebb91c0e456351adf9ef589eb7e1c4 Mon Sep 17 00:00:00 2001 From: Peter Evans <18365890+peter-evans@users.noreply.github.com> Date: Sat, 27 Jul 2024 21:35:27 +0000 Subject: [PATCH] remove commented code --- dist/index.js | 10 ---------- src/create-pull-request.ts | 11 ----------- 2 files changed, 21 deletions(-) diff --git a/dist/index.js b/dist/index.js index d6d84f8..096fdd9 100644 --- a/dist/index.js +++ b/dist/index.js @@ -455,16 +455,6 @@ function createPullRequest(inputs) { authorization: 'token ' + inputs.token } }); - // let repoOwner = process.env.GITHUB_REPOSITORY!.split('/')[0] - // if (inputs.pushToFork) { - // const forkName = await githubHelper.getRepositoryParent( - // baseRemote.repository - // ) - // if (!forkName) { - // repoOwner = forkName! - // } - // } - // const repoName = process.env.GITHUB_REPOSITORY!.split('/')[1] const [repoOwner, repoName] = branchRepository.split('/'); core.debug(`repoOwner: '${repoOwner}', repoName: '${repoName}'`); const refQuery = ` diff --git a/src/create-pull-request.ts b/src/create-pull-request.ts index 1b2d060..7abffd7 100644 --- a/src/create-pull-request.ts +++ b/src/create-pull-request.ts @@ -210,18 +210,7 @@ export async function createPullRequest(inputs: Inputs): Promise { } }) - // let repoOwner = process.env.GITHUB_REPOSITORY!.split('/')[0] - // if (inputs.pushToFork) { - // const forkName = await githubHelper.getRepositoryParent( - // baseRemote.repository - // ) - // if (!forkName) { - // repoOwner = forkName! - // } - // } - // const repoName = process.env.GITHUB_REPOSITORY!.split('/')[1] const [repoOwner, repoName] = branchRepository.split('/') - core.debug(`repoOwner: '${repoOwner}', repoName: '${repoName}'`) const refQuery = ` query GetRefId($repoName: String!, $repoOwner: String!, $branchName: String!) {