From af625080dbe74d361d4803bf97d40547604d257c Mon Sep 17 00:00:00 2001 From: estib Date: Wed, 16 Oct 2024 16:46:20 +0200 Subject: [PATCH] fix: Get the right PR source branch We were setting the PR **base branch** (e.g. main or master) as the source branch, instead of the head, as intended --- apps/desktop/src/lib/gitHost/github/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/desktop/src/lib/gitHost/github/types.ts b/apps/desktop/src/lib/gitHost/github/types.ts index 7552b9f70..74dc910f2 100644 --- a/apps/desktop/src/lib/gitHost/github/types.ts +++ b/apps/desktop/src/lib/gitHost/github/types.ts @@ -11,7 +11,7 @@ export function parseGitHubDetailedPullRequest( number: data.number, title: data.title, body: data.body ?? undefined, - sourceBranch: data.base?.ref, + sourceBranch: data.head?.ref, draft: data.draft, htmlUrl: data.html_url, createdAt: new Date(data.created_at),