Fix mergeability status of pr

- used to disable merge button
- will need to be moved to GitHub implementation of GitHost
This commit is contained in:
Mattias Granlund 2024-07-23 00:06:20 +02:00
parent ab3fd56b38
commit 8c3f690e01

View File

@ -239,7 +239,11 @@
<MergeButton
wide
projectId={project.id}
disabled={$mrLoading || $checksLoading || $pr.draft || !$pr.mergeable}
disabled={$mrLoading ||
$checksLoading ||
$pr.draft ||
!$pr.mergeable ||
['dirty', 'unknown', 'blocked', 'behind'].includes($pr.mergeableState)}
loading={isMerging}
help="Merge pull request and refresh"
on:click={async (e) => {