Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/heavy-areas-happen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"lingo.dev": patch
---

Fixed a bug where the CI pull request flow would ignore the existing translation branch and start from scratch, which could produce duplicate PRs when the original was merged during a concurrent run.
2 changes: 1 addition & 1 deletion packages/cli/src/cli/cmd/ci/flows/pull-request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export class PullRequestFlow extends InBranchFlow {

private checkoutI18nBranch(i18nBranchName: string) {
execSync(`git fetch origin ${i18nBranchName}`, { stdio: "inherit" });
execSync(`git checkout -b ${i18nBranchName}`, {
execSync(`git checkout -b ${i18nBranchName} origin/${i18nBranchName}`, {
stdio: "inherit",
});
}
Expand Down
Loading