Skip to main content

PR Comments

When a workflow runs on a pull request, Actions Insights posts a rich comment with test results — failure counts, stack traces, and slow tests — optimised for mobile review.

PR comment with failure details and stack trace

When to Enable

Enable PR comments when your team reviews CI failures directly on pull requests. This is the primary experience for most teams.

Disable when running on main, scheduled workflows, or when you only need workflow summaries.

Configuration

PR comments are enabled by default (comment-mode: update).

- uses: mzbrau/actions-insights@v1
with:
test-results: '**/*.trx'
comment-mode: update # upsert a single comment per PR
max-failed-tests-in-comment: 10
max-stack-trace-lines: 25
include-slowest-tests: 18

To disable:

with:
comment-mode: off

Permissions

permissions:
pull-requests: write

Key Inputs

InputDefaultDescription
comment-modeupdateupdate (upsert) or off
max-failed-tests-in-comment10Cap failures shown in the comment
max-stack-trace-lines25Stack trace truncation
include-slowest-tests18Slow test count (0 to disable)
include-stdout / include-stderrtrueInclude output in failure details

Learn More