discourse/lib/onebox/templates/githubfolder.mustache
Dan Ungureanu 723d7de18c
Various GitHub Onebox improvements (#13163)
* FIX: Improve GitHub folder regexp in Onebox

It used to match any GitHub URL that was not matched by the other GitHub
Oneboxes and it did not do a good job at handling those. With this
change, the generic Onebox will handle the remaining URLs.

* FEATURE: Add Onebox for GitHub Actions

* FEATURE: Add Onebox for PR check runs

* FIX: Remove image from GitHub folder Oneboxes

It is a generic, auto-generated image which does not provide any value.

* DEV: Add tests

* FIX: Strip HTML comments from PR body
2021-05-27 12:38:42 +03:00

10 lines
254 B
Plaintext

<h3><a href="{{link}}" target="_blank" rel="noopener">{{title}}</a></h3>
{{#path}}
<p><a href="{{link}}" target="_blank" rel="noopener">{{path}}</a></p>
{{/path}}
{{#description}}
<p><span class="label1">{{description}}</span></p>
{{/description}}