remove commented code
This commit is contained in:
parent
0f72e35b7f
commit
743dcd81f7
2 changed files with 0 additions and 21 deletions
10
dist/index.js
vendored
10
dist/index.js
vendored
|
@ -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 = `
|
||||
|
|
|
@ -210,18 +210,7 @@ export async function createPullRequest(inputs: Inputs): Promise<void> {
|
|||
}
|
||||
})
|
||||
|
||||
// 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!) {
|
||||
|
|
Loading…
Reference in a new issue