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:
@@ -115,11 +115,16 @@
|
||||
<pre><code>Status: {{ response.httpStatusCode }} {{ response.httpStatusMessage }}</code></pre>
|
||||
<div class="height-constrained-code-block">{{ response.payload }}</div>
|
||||
{% endfor %}
|
||||
{% if operation.notes.size > 0 %}
|
||||
{% if operation.notes.size > 0 or operation.x-github.enabledForGitHubApps %}
|
||||
<h4>Notes</h4>
|
||||
<ul class="mt-2">
|
||||
{% if operation.x-github.enabledForGitHubApps %}
|
||||
<li><a href="{{ restGitHubAppsLink }}">Works with GitHub Apps</a></li>
|
||||
{% endif %}
|
||||
{% for note in operation.notes %}
|
||||
{% unless note == '<a href="{{ restGitHubAppsLink }}">Works with GitHub Apps</a>' %}
|
||||
<li>{{ note }}</li>
|
||||
{% endunless %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user