diff --git a/README.md b/README.md
index a7502d84..6951b712 100644
--- a/README.md
+++ b/README.md
@@ -186,6 +186,7 @@ All supported CLI argument inputs are [listed below](#arguments) with accompanyi
| UI | `expand-summary` | Expand the collapsible summary section.
Default: `false` |
| UI | `comment-pr` | Add a PR comment: `always`, `on-diff`, or `never`.4
Default: `always` |
| UI | `comment-method` | PR comment by: `update` existing comment or `recreate` and delete previous one.5
Default: `update` |
+| UI | `comment-pos-N` | Markdown content to render at various positions in the PR comment.
Example: `> [!NOTE]\n> Reviewed by security.` |
| UI | `tag-actor` | Tag the workflow triggering actor: `always`, `on-diff`, or `never`.4
Default: `always` |
| UI | `hide-args` | Hide comma-separated list of CLI arguments from the command input.6
Default: `detailed-exitcode,parallelism,lock,out,var=` |
| UI | `show-args` | Show comma-separated list of CLI arguments in the command input.6
Default: `workspace` |
diff --git a/action.yml b/action.yml
index f010dd6f..aa51bfc5 100644
--- a/action.yml
+++ b/action.yml
@@ -342,6 +342,12 @@ runs:
GH_TRIGGERING_ACTOR: ${{ github.triggering_actor }}
INPUTS_COMMAND: ${{ inputs.command }}
INPUTS_COMMENT_METHOD: ${{ inputs.comment-method }}
+ INPUTS_COMMENT_POS_1: ${{ inputs.comment-pos-1 }}
+ INPUTS_COMMENT_POS_2: ${{ inputs.comment-pos-2 }}
+ INPUTS_COMMENT_POS_3: ${{ inputs.comment-pos-3 }}
+ INPUTS_COMMENT_POS_4: ${{ inputs.comment-pos-4 }}
+ INPUTS_COMMENT_POS_5: ${{ inputs.comment-pos-5 }}
+ INPUTS_COMMENT_POS_6: ${{ inputs.comment-pos-6 }}
INPUTS_COMMENT_PR: ${{ inputs.comment-pr }}
INPUTS_EXPAND_DIFF: ${{ inputs.expand-diff }}
INPUTS_EXPAND_SUMMARY: ${{ inputs.expand-summary }}
@@ -461,16 +467,16 @@ runs:
# Collate body content.
body=$(cat <
+ ${INPUTS_COMMENT_POS_1}
\`\`\`fish
${command}
\`\`\`
-
+ ${INPUTS_COMMENT_POS_2}
${diff}
-
+ ${INPUTS_COMMENT_POS_3}
${summary}
-
+ ${INPUTS_COMMENT_POS_4}
###### By ${tag_actor}${GH_TRIGGERING_ACTOR} at ${GH_EVENT_TIMESTAMP} [(view log)](${run_url}).
@@ -478,9 +484,9 @@ runs:
${console}
\`\`\`
-
+ ${INPUTS_COMMENT_POS_5}
-
+ ${INPUTS_COMMENT_POS_6}
EOBODYTFVIAPR
)
@@ -591,6 +597,30 @@ inputs:
default: "update"
description: "PR comment by: `update` existing comment or `recreate` and delete previous one (e.g., `update`)."
required: false
+ comment-pos-1:
+ default: ""
+ description: "Markdown content to render at various positions in the PR comment (e.g., `Before command`)."
+ required: false
+ comment-pos-2:
+ default: ""
+ description: "Markdown content to render at various positions in the PR comment (e.g., `Before diff`)."
+ required: false
+ comment-pos-3:
+ default: ""
+ description: "Markdown content to render at various positions in the PR comment (e.g., `Before summary`)."
+ required: false
+ comment-pos-4:
+ default: ""
+ description: "Markdown content to render at various positions in the PR comment (e.g., `Before footer`)."
+ required: false
+ comment-pos-5:
+ default: ""
+ description: "Markdown content to render at various positions in the PR comment (e.g., `Before identifier`)."
+ required: false
+ comment-pos-6:
+ default: ""
+ description: "Markdown content to render at various positions in the PR comment (e.g., `After identifier`)."
+ required: false
comment-pr:
default: "always"
description: "Add a PR comment: `always`, `on-diff`, or `never` (e.g., `always`)."