Pr Story Test Automation Review

Reviews a Story bulk test automation PR (test/{STORY_KEY}) against the Story’s Acceptance Criteria and linked Test Cases, posting diff-anchored review threads (outputs/pr_review.json) and an approval or rework verdict.

Parameters

  • removeLabel — removes sm_story_test_review_triggered once the review completes.

  • checkOpenPR — verifies an open story test PR exists.

  • autoStartMerge / autoStartMergeConfigFile — triggers story_test_automation_merge when approved.

  • autoStartRework / autoStartReworkConfigFile — triggers story_test_automation_rework when changes are requested.

  • maxAutoReworkRounds — maximum auto-started rework rounds (rework-round-N on the ticket, default 3) before the ticket is labeled needs-human and no further rework is chained.

  • responseTarget: "scm" — outputs/response.md becomes the PR body/comment, so the output-format prompt is GitHub-Flavored Markdown even on Jira (conditions isResponseToScm.js / isResponseToTracker.js).

Human doc: agents/docs/agents/pr_story_test_automation_review.md

Attributes

AttributeValue
JobTeammate
Configpr_story_test_automation_review.json
ContextIdpr_story_test_automation_review
outputTypenone
skipAIProcessingtrue

Prompt snapshot

Full prompt / instruction set: agents/snapshots/pr_story_test_automation_review.md

Actions

preJSAction: checkWipLabel.js

Check WIP Label Pre-Action

  • Source: agents/js/checkWipLabel.js
  • Parameters (customParams):
    • branchCreateFnPath
    • checkOpenPR
    • dryRun

preCliJSAction: prepareTestPRForReview.js

Prepare Test PR For Review Action (preJSAction for test-automation review agents)

  • Source: agents/js/prepareTestPRForReview.js
  • Side effects:
    • git push
  • Parameters (customParams):
    • allowApproveWithSuggestions
    • branchCreateFnPath
    • dryRun
    • importantBlocksApproval
    • maxReviewThreadsBeforeForceApprove

postJSAction: postStoryTestAutomationReview.js

Post Story Test Automation Review Comments Action

  • Source: agents/js/postStoryTestAutomationReview.js
  • Parameters (customParams):
    • aiRepository
    • allowApproveWithSuggestions
    • autoStartMerge
    • autoStartMergeConfigFile
    • autoStartRework
    • autoStartReworkConfigFile
    • commentMarkup
    • configPath
    • contentOutput
    • contentOutput.target
    • customStatuses
    • dryRun
    • formalGithubReview
    • importantBlocksApproval
    • localTeammate
    • maxAutoReworkRounds
    • maxReviewThreadsBeforeForceApprove
    • onApproved
    • projectKey
    • removeLabel
    • reviewPolicy
    • reviewPolicy.identity
    • smFallback
    • trackerProvider

LLM step

  • outputType: none
  • Prompt snapshot: agents/snapshots/pr_story_test_automation_review.md

Custom params

  • responseTarget: "scm"
  • removeLabel: "sm_story_test_review_triggered"
  • checkOpenPR: true
  • branchCreateFnPath (used by JS action)
  • dryRun (used by JS action)
  • allowApproveWithSuggestions (used by JS action)
  • importantBlocksApproval (used by JS action)
  • maxReviewThreadsBeforeForceApprove (used by JS action)
  • aiRepository (used by JS action)
  • autoStartMerge (used by JS action)
  • autoStartMergeConfigFile (used by JS action)
  • autoStartRework (used by JS action)
  • autoStartReworkConfigFile (used by JS action)
  • commentMarkup (used by JS action)
  • configPath (used by JS action)
  • contentOutput (used by JS action)
  • contentOutput.target (used by JS action)
  • customStatuses (used by JS action)
  • formalGithubReview (used by JS action)
  • localTeammate (used by JS action)
  • maxAutoReworkRounds (used by JS action)
  • onApproved (used by JS action)
  • projectKey (used by JS action)
  • reviewPolicy (used by JS action)
  • reviewPolicy.identity (used by JS action)
  • smFallback (used by JS action)
  • trackerProvider (used by JS action)

Generated by js/agentDocGenerator.js

View the agent config on GitHub →

Generated from pr_story_test_automation_review.json in the agents repository and its human doc — edit either and the page follows. Last updated .