| message | The message to print. | no | — |
| message-path | A path or list of paths to a file to print as a message instead of a string. | no | — |
| attach-path | A file path or glob pattern for files to upload as artifacts and link in the comment. | no | — |
| attach-name | Name for the uploaded artifact. Defaults to pr-comment-attachments. | no | pr-comment-attachments |
| attach-text | Markdown text appended for attachments. Use %ARTIFACT_URL% as a placeholder for the download link. | no | — |
| message-id | An optional id to use for this message. | no | add-pr-comment |
| refresh-message-position | If a message with the same id, this option allow to refresh the position of the message to be the last one posted. | no | false |
| repo-owner | The repo owner. | no | ${{ github.repository_owner }} |
| repo-name | The repo name. | no | ${{ github.event.repository.name }} |
| repo-token | A GitHub token for API access. Defaults to {{ github.token }}. | no | ${{ github.token }} |
| allow-repeats | Allow messages to be repeated. | no | false |
| proxy-url | Proxy URL for comment creation | no | — |
| status | A job status for status headers. Defaults to {{ job.status }}. | no | ${{ job.status }} |
| message-success | Override the message when a run is successful. | no | — |
| message-failure | Override the message when a run fails. | no | — |
| message-cancelled | Override the message when a run is cancelled. | no | — |
| message-skipped | Override the message when a run is skipped. | no | — |
| issue | Override the message when a run is cancelled. | no | — |
| update-only | Only update the comment if it already exists. | no | — |
| preformatted | Treat message text (from a file or input) as pre-formatted and place it in a codeblock. | no | — |
| template-variables | Enable template variable expansion in messages (e.g. %NOW%, %NOW:yyyy-MM-dd%). | no | false |
| truncate | Truncation mode when the message exceeds the safe comment length. "artifact" (default) uploads the full message as a downloadable artifact and links it. "simple" truncates with a notice. | no | artifact |
| truncate-separator | Custom separator inserted before the truncation notice. Defaults to "---". | no | — |
| comment-target | Where to post the comment. Use "pr" for pull request/issue comments (default) or "commit" for commit comments. | no | pr |
| commit-sha | The commit SHA to comment on when comment-target is "commit". Defaults to the current commit. | no | — |
| find | A regular expression to find for replacement. Multiple lines become individual regular expressions. | — | — |
| replace | A replacement to use, overrides the message. Multple lines can replace same-indexed find patterns. | — | — |
| delete-on-status | Delete comment on specified status. | — | — |
| create-minimized | Minimize (collapse) the comment immediately after it is created. Applies only on creation, not updates. Not supported with proxy-url. | no | false |
| delete-method | What to do when delete-on-status matches. "delete" (default) removes the comment, "minimize" collapses it. Not supported with proxy-url. | no | delete |
| minimize-reason | Reason shown when a comment is minimized. One of: outdated (default), resolved, off-topic, duplicate, spam, abuse. | no | outdated |