Skip to content

Commit 1621bb5

Browse files
committed
fix(action): prefix pr with repo owner slug
1 parent 2b9d073 commit 1621bb5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

action/src/flows/pull-request.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export class PullRequestFlow extends InBranchFlow {
6161
const existingPr = await this.octokit.rest.pulls.list({
6262
owner: this.config.repositoryOwner,
6363
repo: this.config.repositoryName,
64-
head: i18nBranchName,
64+
head: `${this.config.repositoryOwner}:${i18nBranchName}`,
6565
base: this.config.baseBranchName,
6666
state: 'open',
6767
}).then(({ data }) => data[0]);
@@ -84,7 +84,7 @@ export class PullRequestFlow extends InBranchFlow {
8484
const newPr = await this.octokit.rest.pulls.create({
8585
owner: this.config.repositoryOwner,
8686
repo: this.config.repositoryName,
87-
head: this.i18nBranchName!,
87+
head: i18nBranchName,
8888
base: this.config.baseBranchName,
8989
title: this.config.pullRequestTitle,
9090
body: this.getPrBodyContent(),
@@ -190,4 +190,4 @@ Hey team,
190190
- [ ] Merge when ready
191191
`.trim();
192192
}
193-
}
193+
}

0 commit comments

Comments
 (0)