Skip to content

Commit 1534078

Browse files
authored
fix: specify head repo (#2044)
1 parent 143be5d commit 1534078

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

dist/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1071,7 +1071,7 @@ class GitHubHelper {
10711071
// Try to create the pull request
10721072
try {
10731073
core.info(`Attempting creation of pull request`);
1074-
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 }));
1074+
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 }));
10751075
core.info(`Created pull request #${pull.number} (${headBranch} => ${inputs.base})`);
10761076
return {
10771077
number: pull.number,

src/github-helper.ts

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export class GitHubHelper {
5353
...this.parseRepository(baseRepository),
5454
title: inputs.title,
5555
head: headBranch,
56+
head_repo: headRepository,
5657
base: inputs.base,
5758
body: inputs.body,
5859
draft: inputs.draft

0 commit comments

Comments
 (0)