Preview PR Action Templates
action-preview-templatescommandsetup L1★172
pulumi/docs ↗What it does
Preview PR action outcome before executing (approve, request changes, merge)
Best for
PR workflows where human reviewers must see exactly what will post/merge before clicking 'approve', and can selectively suppress nits without re-navigating menus.
Inputs
- · Action choice (Approve, Make changes, Request changes, Close, Do nothing)
- · Auto-merge toggle state
- · PR number and trivial fix candidates
Outputs
- · Preview markdown showing action, auto-merge state, fixes to apply, comment body, gh commands
- · Itemized trivial fixes with numeric indices for veto
- · User confirmation with suppression menu (suppress specific findings)
Requires
- · gh CLI (pr review, pr merge, pr comment, pr edit)
- · PR findings/contradictions from code review
Preconditions
- · Code review must be completed first (findings exist)
- · PR number must be valid
- · GitHub authentication via gh CLI
- · User has merge permissions
Failure modes
- · User vetos all trivial fixes but approves anyway = misleading approval
- · AI_SUSPECT=true but toggle defaults ON = security gate bypassed
- · Merge fails post-approval = changes already auto-merged, late discovery too risky
- · Comment body exceeds GitHub limit = truncated, findings lost
Trust signals
- · Shows full comment body before posting
- · Itemizes trivial fixes so reviewers can veto specific ones
- · Differentiates merge toggle defaults by contributor type (bots ON, humans OFF)
- · AI_SUSPECT disables auto-apply of fixes when confidence is low