Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added contributors section to the release/releases footer #429

Merged
merged 2 commits into from
Oct 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
101 changes: 50 additions & 51 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion resources/templates/html/classic/changelog.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
{% include 'release.html.twig' with {release: release, footer: false} %}

{% endfor %}
{% include 'footer.html.twig' %}
{% include 'footer.html.twig' with {contributors : releases.contributors} %}
7 changes: 7 additions & 0 deletions resources/templates/html/classic/footer.html.twig
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
<h2>Contributors</h2>
<ul>
{% for contributor in contributors %}
<li><a href="{{ contributor.url }}" target="_blank">@{{ contributor.name }}</a></li>
{% endfor %}
</ul>

<footer>Generated by <a href="https://github.com/aeon-php/automation">Automation</a></footer>
2 changes: 1 addition & 1 deletion resources/templates/html/classic/release.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
{% endif %}
{% if footer == true %}

{% include 'footer.html.twig' %}
{% include 'footer.html.twig' with {contributors: release.contributors} %}
{% endif %}
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
{% include 'release.html.twig' with {release: release, footer: false} %}

{% endfor %}
{% include 'footer.html.twig' %}
{% include 'footer.html.twig' with {contributors : releases.contributors} %}
7 changes: 7 additions & 0 deletions resources/templates/html/keepachangelog/footer.html.twig
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
<h2>Contributors</h2>
<ul>
{% for contributor in contributors %}
<li><a href="{{ contributor.url }}" target="_blank">@{{ contributor.name }}</a></li>
{% endfor %}
</ul>

<footer>Generated by <a href="https://github.com/aeon-php/automation">Automation</a></footer>
2 changes: 1 addition & 1 deletion resources/templates/html/keepachangelog/release.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
{% endif %}
{% if footer == true %}

{% include 'footer.html.twig' %}
{% include 'footer.html.twig' with {contributors: release.contributors} %}
{% endif %}
2 changes: 1 addition & 1 deletion resources/templates/markdown/classic/changelog.md.twig
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
{% include 'release.md.twig' with {release: release, footer: false} %}

{% endfor %}
{% include 'footer.md.twig' %}
{% include 'footer.md.twig' with {contributors: releases.contributors} %}
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
{% endfor %}
{% if footer == true %}

{% include 'footer.html.twig' %}
{% include 'footer.html.twig' with {contributors: release.contributors} %}
{% endif %}
6 changes: 6 additions & 0 deletions resources/templates/markdown/classic/footer.md.twig
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
## Contributors

{% for contributor in contributors %}
- @{{ contributor.name }}
{% endfor %}

Generated by [Automation](https://github.com/aeon-php/automation)
2 changes: 1 addition & 1 deletion resources/templates/markdown/classic/release.md.twig
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
{% endif %}
{% if footer == true %}

{% include 'footer.md.twig' %}
{% include 'footer.md.twig' with {contributors : release.contributors} %}
{% endif %}
Loading
Loading