1
0
mirror of synced 2025-12-19 18:10:59 -05:00

Fix broken "Enabled for GitHub Apps" link (#16236)

* Fix the thing

* Use enabledForGitHubApps boolean properly

* Update includes/rest_operation.html

Co-authored-by: Sarah Schneider <sarahs@users.noreply.github.com>

Co-authored-by: Sarah Schneider <sarahs@users.noreply.github.com>
This commit is contained in:
Jason Etcovitch
2020-10-27 12:39:54 -04:00
committed by GitHub
parent 5777cb8502
commit 85ce256a6d

View File

@@ -115,12 +115,17 @@
<pre><code>Status: {{ response.httpStatusCode }} {{ response.httpStatusMessage }}</code></pre> <pre><code>Status: {{ response.httpStatusCode }} {{ response.httpStatusMessage }}</code></pre>
<div class="height-constrained-code-block">{{ response.payload }}</div> <div class="height-constrained-code-block">{{ response.payload }}</div>
{% endfor %} {% endfor %}
{% if operation.notes.size > 0 %} {% if operation.notes.size > 0 or operation.x-github.enabledForGitHubApps %}
<h4>Notes</h4> <h4>Notes</h4>
<ul class="mt-2"> <ul class="mt-2">
{% for note in operation.notes %} {% if operation.x-github.enabledForGitHubApps %}
<li>{{ note }}</li> <li><a href="{{ restGitHubAppsLink }}">Works with GitHub Apps</a></li>
{% endfor %} {% endif %}
{% for note in operation.notes %}
{% unless note == '<a href="{{ restGitHubAppsLink }}">Works with GitHub Apps</a>' %}
<li>{{ note }}</li>
{% endunless %}
{% endfor %}
</ul> </ul>
{% endif %} {% endif %}
{% if operation.x-github.previews.size > 0 %} {% if operation.x-github.previews.size > 0 %}