{% extends "base.html" %} {% block title %}#{{ pull_request.number }} {{ pull_request.title }} · {{ owner }}/{{ repository }} · tit{% endblock %} {% block content %}

{{ owner }}/{{ repository }}

{% let nav_section = "pulls" %} {% include "repository-nav.html" %}

Pull request #{{ pull_request.number }}

{{ pull_request.title }}

{{ pull_request.state }}
{{ body_html|safe }}
From {{ pull_request.head_ref }} {{ pull_request.head_object_id|short_id }}
Into {{ pull_request.base_ref }} {{ pull_request.base_object_id|short_id }}
{% if can_edit || can_change_state %}
{% if can_edit %}
Edit details
{% endif %} {% if can_change_state %}
{% if is_open %} {% else %} {% endif %}
{% endif %}
{% endif %}

Revision {{ selected_revision }}

Changes

{{ comparison.mergeability }}
Commits
{{ comparison.commits.len() }}
Files changed
{{ comparison.files.len() }}
Merge base
{{ comparison.merge_base|short_id }}

Commits

{% if comparison.commits.is_empty() %}

This revision has no commits that are not in the base.

{% else %}
    {% for commit in comparison.commits %}
  1. {{ commit.id|short_id }} {{ commit.message }}
  2. {% endfor %}
{% endif %}

Files

{% if comparison.changed_paths.is_empty() %}

This revision does not change a path.

{% else %}
    {% for path in comparison.changed_paths %}
  • {{ path }}
  • {% endfor %}
{% endif %}
{% for file in comparison.files %}

{{ file.path }}

{% if file.binary %}

This file has binary content.

{% else %}
{{ file.hunks }}
{% if can_review %}
Comment on a line

Use a line number from the selected side in the diff above.

{% endif %} {% endif %}
{% endfor %}

Review activity

Discussion

{% if reviews.is_empty() %}

No review comments yet.

{% else %}
{% for review in reviews %}
{{ review.author }} {{ review.kind|event_name }} ·
{% if review.kind == "line-comment" %}

{{ review.commit_object_id|short_id }} · {{ review.path }} · {{ review.side }} line {{ review.line }}{% if review.outdated %} · Outdated{% endif %}

{% endif %} {% if review.has_body %}
{{ review.body_html|safe }}
{% endif %}
{% endfor %}
{% endif %} {% if reviews_has_previous || reviews_has_next %} {% endif %}
{% if can_review %}

Your decision

Review revision {{ selected_revision }}

{% endif %} {% if can_merge %} {% if comparison.mergeability == "fast-forward" %}

Ready to land

Merge pull request

This revision can be fast-forwarded into {{ pull_request.base_ref }}.

Confirm merge
{% else if comparison.mergeability == "clean merge" %}

Ready to land

Merge pull request

This revision can be merged into {{ pull_request.base_ref }} with a merge commit.

Confirm merge
{% endif %} {% endif %}
History and Git details

Revisions

    {% for revision in revisions %}
  1. {{ revision.head_object_id|short_id }} against {{ revision.base_object_id|short_id }} recorded by {{ revision.author }} Patch {% if revision.number == selected_revision %} Selected {% else %} Compare {% endif %}
  2. {% endfor %}

Activity

    {% for event in timeline %}
  1. {{ event.actor }} {{ event.kind|event_name }}
  2. {% endfor %}
{% if timeline_has_previous || timeline_has_next %} {% endif %}
Fetch this pull request git fetch origin refs/pull/{{ pull_request.number }}/head
{% if can_revise %}
{% endif %}
{% endblock %}