Pr Test Automation Review

Reviews a test-automation pull request and posts structured review comments on it.

Parameters

Configured via customParams in the agent JSON or the project .dmtools/config.js (project values win).

  • autoStartRework — when true, automatically trigger the rework workflow when the review asks for changes.

  • autoStartReworkConfigFile — agent config file used for the auto-started rework workflow.

  • 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.

  • removeLabel — label removed from the ticket after a successful run (idempotency cleanup).

  • 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_test_automation_review.md

Attributes

AttributeValue
JobTeammate
Configpr_test_automation_review.json
ContextIdpr_test_automation_review
outputTypenone
skipAIProcessingtrue

Prompt snapshot

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

Actions

preJSAction: 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: postTestReviewComments.js

Post Test Automation Review Comments Action (postJSAction for pr_test_automation_review)

  • Source: agents/js/postTestReviewComments.js
  • Side effects:
    • add label “sm_test_rework_triggered” (via tracker)
    • remove label “sm_test_review_triggered” (via tracker)
    • post ticket comment (via tracker)
    • move ticket to status (via tracker)
  • Parameters (customParams):
    • aiRepository
    • configPath
    • contentOutput
    • contentOutput.target
    • dryRun
    • localTeammate
    • maxAutoReworkRounds
    • projectKey
    • removeLabel
    • smFallback
    • trackerProvider

LLM step

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

Custom params

  • responseTarget: "scm"
  • removeLabel: "sm_test_review_triggered"
  • allowApproveWithSuggestions (used by JS action)
  • branchCreateFnPath (used by JS action)
  • dryRun (used by JS action)
  • importantBlocksApproval (used by JS action)
  • maxReviewThreadsBeforeForceApprove (used by JS action)
  • aiRepository (used by JS action)
  • configPath (used by JS action)
  • contentOutput (used by JS action)
  • contentOutput.target (used by JS action)
  • localTeammate (used by JS action)
  • maxAutoReworkRounds (used by JS action)
  • projectKey (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_test_automation_review.json in the agents repository and its human doc — edit either and the page follows. Last updated .