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— whentrue, 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-Non the ticket, default3) before the ticket is labeledneeds-humanand no further rework is chained. -
removeLabel— label removed from the ticket after a successful run (idempotency cleanup). -
responseTarget:"scm"—outputs/response.mdbecomes the PR body/comment, so the output-format prompt is GitHub-Flavored Markdown even on Jira (conditionsisResponseToScm.js/isResponseToTracker.js).
Human doc: agents/docs/agents/pr_test_automation_review.md
Attributes
| Attribute | Value |
|---|---|
| Job | Teammate |
| Config | pr_test_automation_review.json |
| ContextId | pr_test_automation_review |
| outputType | none |
| skipAIProcessing | true |
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):
allowApproveWithSuggestionsbranchCreateFnPathdryRunimportantBlocksApprovalmaxReviewThreadsBeforeForceApprove
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):
aiRepositoryconfigPathcontentOutputcontentOutput.targetdryRunlocalTeammatemaxAutoReworkRoundsprojectKeyremoveLabelsmFallbacktrackerProvider
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