(feature): Added support for customization of the PR comment#547
Conversation
|
@ArkShocer Isn't that because you've used a header ( |
|
Bump for visibility |
|
@FnhNielsen Thank you for raising this PR -- I will be following up on this feature in the upcoming release! I'm curious if you noticed the presence of invisible comments like |
rdhar
left a comment
There was a problem hiding this comment.
@FnhNielsen Thanks to building on top of your foundation, I've extended it from a singular prefix/title to a number of positional inputs. This gives the user more flexibility to choose exactly where to interpolate their markdown content. For example, you could pass:
comment-pos-1: "### ${{ matrix.environment }}"for a dynamic header title based on the environment; orcomment-pos-2: ${{ steps.tflint-comment.outputs.result }}to insert markdown-formatted output from a prior step of the workflow (see TFLint example).

This PR introduces a new feature which allows users to customise the the body of the comment left by the action. This feature was requested in #546 and we ended up implementing it ourself and wanted to contribute it.
Fixes #546
Before our contribution
We also validated that this is exactly what it looks like if
comment-prefixisn't set.After our contribution
Here shown with
comment-prefix: "# Plan for module <redacted> on `dev`"