fix: specify head repo

This commit is contained in:
Peter Evans 2023-06-13 16:34:36 +09:00
parent 712add83f2
commit 74b300d6ce
2 changed files with 2 additions and 1 deletions

2
dist/index.js vendored
View file

@ -1071,7 +1071,7 @@ class GitHubHelper {
// Try to create the pull request // Try to create the pull request
try { try {
core.info(`Attempting creation of pull request`); core.info(`Attempting creation of pull request`);
const { data: pull } = yield this.octokit.rest.pulls.create(Object.assign(Object.assign({}, this.parseRepository(baseRepository)), { title: inputs.title, head: headBranch, base: inputs.base, body: inputs.body, draft: inputs.draft })); const { data: pull } = yield this.octokit.rest.pulls.create(Object.assign(Object.assign({}, this.parseRepository(baseRepository)), { title: inputs.title, head: headBranch, head_repo: headRepository, base: inputs.base, body: inputs.body, draft: inputs.draft }));
core.info(`Created pull request #${pull.number} (${headBranch} => ${inputs.base})`); core.info(`Created pull request #${pull.number} (${headBranch} => ${inputs.base})`);
return { return {
number: pull.number, number: pull.number,

View file

@ -53,6 +53,7 @@ export class GitHubHelper {
...this.parseRepository(baseRepository), ...this.parseRepository(baseRepository),
title: inputs.title, title: inputs.title,
head: headBranch, head: headBranch,
head_repo: headRepository,
base: inputs.base, base: inputs.base,
body: inputs.body, body: inputs.body,
draft: inputs.draft draft: inputs.draft