From f22744a8dfe1edb4e4458b562ea98540d4e73f41 Mon Sep 17 00:00:00 2001 From: AndreyHirsa Date: Wed, 18 Mar 2026 14:58:28 +0300 Subject: [PATCH 1/2] fix(cli): checkout i18n branch from remote instead of HEAD --- packages/cli/src/cli/cmd/ci/flows/pull-request.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/src/cli/cmd/ci/flows/pull-request.ts b/packages/cli/src/cli/cmd/ci/flows/pull-request.ts index 1ae01187f..b7440e788 100644 --- a/packages/cli/src/cli/cmd/ci/flows/pull-request.ts +++ b/packages/cli/src/cli/cmd/ci/flows/pull-request.ts @@ -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", }); } From 41b0d7491d3906ed4e5f8cb294c0fec80a37df4a Mon Sep 17 00:00:00 2001 From: AndreyHirsa Date: Wed, 18 Mar 2026 15:24:57 +0300 Subject: [PATCH 2/2] fix(cli): add changeset --- .changeset/heavy-areas-happen.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/heavy-areas-happen.md diff --git a/.changeset/heavy-areas-happen.md b/.changeset/heavy-areas-happen.md new file mode 100644 index 000000000..7ff470e33 --- /dev/null +++ b/.changeset/heavy-areas-happen.md @@ -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.