Skip to content

v2.0.12

Latest

Choose a tag to compare

@github-actions github-actions released this 08 Jan 10:39
· 0 commits to main since this release

Problem

The body_template was using <%- body %> which applies HTML entity
escaping in Lodash templates. This caused HTML content like <img> tags
to be converted to &lt;img&gt; in backport PR descriptions.

For example, a source PR with:

<img width="1932" height="1200" alt="image" src="..." />

Would become in the backport PR:

&lt;img width=&quot;1932&quot; height=&quot;1200&quot; alt=&quot;image&quot; src=&quot;...&quot; /&gt;

Solution

Changed <%- body %> to <%= body %> to preserve the original PR body
content without HTML escaping.

References

Co-authored-by: Amp amp@ampcode.com