Merge pull request #5170 from gitbutlerapp/update-github-pull-request-source-branch

fix: Get the right PR source branch
This commit is contained in:
Kiril Videlov 2024-10-16 17:34:50 +02:00 committed by GitHub
commit b1ecafcd8c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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),