Major Hayden 6e452cfb19 Add diffs for roles, output RST
This patch adds two new features:

  * Output is now in RST format
  * Ansible roles in OSA are diffed as well

The RST output makes it easier to copy/paste the output into release
notes, documentation, or other RST-formatted items.

The script also diffs the Ansible roles that are installed along with
OpenStack-Ansible. These were helper roles in Liberty and earlier,
but they include the IRR roles in Mitaka and beyond.

Example output: https://gist.github.com/major/b371aba29720748ab6e1e55a2bf164ab

Change-Id: I863a29fad5e56e02a9f47b015ac71867b16e4060
2016-06-22 11:11:46 -05:00

18 lines
596 B
Django/Jinja
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

**{{ project }}**
{% if commits | length < 1 %}
No commits were found in the project between the OSA commits provided.
{% elif commits | length == 1 %}
1 commit was found in the project (``{{ older_sha }}`` ``{{ latest_sha }}``):
::
{% elif commits | length > 1 %}
{{ commits | length }} commits were found in the project (``{{ older_sha }}`` ``{{ latest_sha }}``):
::
{% endif %}
{% for commit in commits if not commit.commit['message'].split('\n')[0][0:7] == 'Merge "' %}
{{ commit.sha[0:8] | indent(4, true)}} {{ commit.commit['message'].split('\n')[0] }}
{% endfor %}