Skip to content

Commit 7518a81

Browse files
committed
fix pr creation failure
1 parent 6aef381 commit 7518a81

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/github.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ export class Github {
114114
title: string,
115115
body: string,
116116
octokit: Octokit | null = null,
117+
isForkPr = true,
117118
) {
118119
octokit = octokit ?? createOctokit();
119120

@@ -124,7 +125,7 @@ export class Github {
124125
repo: repository.name,
125126
title,
126127
body,
127-
head: `${currentUsername}:${branchName}`,
128+
head: `${isForkPr ? currentUsername + ':' : ''}${branchName}`,
128129
base: defaultBranchName,
129130
});
130131

0 commit comments

Comments
 (0)