{#snippet notice(message: string, danger = false)}
{message}
{/snippet}
{#if view.prefillError}
{/if}
1

Source

navigate({ source: mode })} onTargetBranch={(branch) => navigate({ targetBranch: branch })} onSourceBranch={(branch) => navigate({ sourceBranch: branch })} onFork={(value) => navigate({ fork: value })} />
2

Details

{#if !view.showDetails} {@render notice( view.source === "patch" ? "Paste a patch above to describe your change." : "Pick a source and target above to describe your change." )} {:else}
{#snippet children({ id })} {/snippet} {#snippet children({ id })} {/snippet}
acting?.did ?? "", (did) => (picked = did)} label="Open as" disabled={save.loading} group="pull-compose" class="mr-auto" />
{/if}
{#if view.showDetails && view.source !== "patch"} {#if view.commitsError} {@render notice(view.commitsError, true)} {:else if commits.length === 0} {@render notice( view.sourceBranch === view.targetBranch ? "Source and target are the same branch, nothing to merge." : "No commits between target and source. Make sure your source branch has commits not on the target." )} {:else} { stagedRange = range; stagedWhole = whole; } }} /> {/if} {/if} {#if hasChanges} {/if}