{% extends "html/base.template.html" %} {% from "html/macros/layout.html" import narrative as render_narrative, summary_card, row_key %} {% from "html/macros/visualizations.html" import figure %} {% block human_content %}

{{ t('tasks.release-handoff.handoff-outcome') }}

{{ render_narrative(narrative.handoffOutcome, "releaseHandoff.userNarrative.handoffOutcome") }} {{ figure(handoffFigure) }}
{% if handoff.get("handoffScope") %}

{{ t('tasks.release-handoff.handoff-scope') }}

{{ handoff.handoffScope.mode | enum_label("handoffMode") }}{% if handoff.handoffScope.get("stages") %} — stages {{ handoff.handoffScope.stages | join(", ") }}{% endif %}{% if handoff.handoffScope.get("collectorBranch") %} · Collector branch {{ handoff.handoffScope.collectorBranch }}{% endif %}

{% endif %}

{{ t('tasks.release-handoff.the-behaviour-you-chose') }}

{{ t('tasks.release-handoff.handoff-mode') }}
{{ handoff.userSelections.h1 }}
{{ t('tasks.release-handoff.conflict-check') }}
{{ handoff.userSelections.h2b }}
{{ t('tasks.release-handoff.pr-body') }}
{{ handoff.userSelections.h3 }}

{{ t('tasks.release-handoff.branch-and-pr') }}

{{ render_narrative(narrative.branchAndPrExplanation, "releaseHandoff.userNarrative.branchAndPrExplanation") }}

{{ t('tasks.release-handoff.branch') }} {{ handoff.featureBranchState.branchName }}

{{ t('tasks.release-handoff.pr-result') }} {{ handoff.pullRequestOutcome.kind }}{% if prUrl %} · {{ t('tasks.release-handoff.pull-request-open') }}{% endif %}

{{ t('tasks.release-handoff.conflict-verdict') }}

{{ render_narrative(narrative.conflictExplanation, "releaseHandoff.userNarrative.conflictExplanation") }} {{ summary_card(handoff.mergeConflictProbe.kind, t('tasks.release-handoff.base-branch') ~ " " ~ (handoff.mergeConflictProbe.baseBranch | default('not-run'))) }} {% if handoff.mergeConflictProbe.conflictingPaths %}{% endif %}

{{ t('tasks.release-handoff.commits-delivered') }}

{% if handoff.commitList is mapping %}

{{ t('tasks.release-handoff.there-are-no-commits') }}

{% else %} {% for row in handoff.commitList %}{{ row_key(pairs=[(t('macros.layout.sha'), row.shortSha), (t('macros.layout.order'), loop.index)]) }}{% endfor %}
{{ t('tasks.release-handoff.commit') }}{{ t('tasks.release-handoff.subject') }}{{ t('tasks.release-handoff.files') }}
{{ row.subject | inline_code }}{% for file in row.files %}{{ file }}{% if not loop.last %} {% endif %}{% endfor %}
{% endif %} {% if handoff.sourceVerificationReports %}

{{ t('tasks.release-handoff.the-verification-report-this-rests-on') }}{% for row in handoff.sourceVerificationReports %} — stage {{ row.stage }}: {{ row.path }} · {{ row.verdictTokenQuote | inline_code }}{% endfor %}

{% else %}

{{ t('tasks.release-handoff.the-verification-report-this-rests-on') }}{{ handoff.sourceVerificationReport.path }} · {{ handoff.sourceVerificationReport.verdictTokenQuote | inline_code }}

{% endif %}

{{ t('tasks.release-handoff.what-to-do-next') }}

{{ render_narrative(narrative.nextAction, "releaseHandoff.userNarrative.nextAction") }}

{{ handoff.routingRecommendation | inline_code }}

{% endblock %}