We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6aef381 commit 7518a81Copy full SHA for 7518a81
src/lib/github.ts
@@ -114,6 +114,7 @@ export class Github {
114
title: string,
115
body: string,
116
octokit: Octokit | null = null,
117
+ isForkPr = true,
118
) {
119
octokit = octokit ?? createOctokit();
120
@@ -124,7 +125,7 @@ export class Github {
124
125
repo: repository.name,
126
title,
127
body,
- head: `${currentUsername}:${branchName}`,
128
+ head: `${isForkPr ? currentUsername + ':' : ''}${branchName}`,
129
base: defaultBranchName,
130
});
131
0 commit comments