Pr Test Automation Rework
Reworks a test-automation PR after review: applies review feedback to the test code and pushes the fixes.
Parameters
Configured via customParams in the agent JSON or the project .dmtools/config.js (project values win).
autoStartReview— whentrue, automatically trigger the PR review workflow after this agent finishes.autoStartReviewConfigFile— agent config file used for the auto-started review workflow.checkOpenPR— whentrue, skip tickets that already have an open pull request for this work.removeLabel— label removed from the ticket after a successful run (idempotency cleanup).
Human doc: agents/docs/agents/pr_test_automation_rework.md
Attributes
| Attribute | Value |
|---|---|
| Job | Teammate |
| Config | pr_test_automation_rework.json |
| ContextId | pr_test_automation_rework |
| outputType | none |
| skipAIProcessing | true |
Prompt snapshot
Full prompt / instruction set: agents/snapshots/pr_test_automation_rework.md
Actions
preJSAction: checkWipLabel.js
Check WIP Label Pre-Action
- Source:
agents/js/checkWipLabel.js - Side effects:
- post Jira comment
- Parameters (customParams):
checkOpenPR
preCliJSAction: preCliTestReworkSetup.js
Pre-CLI Test Rework Setup Action (preCliJSAction for pr_test_automation_rework)
- Source:
agents/js/preCliTestReworkSetup.js - Side effects:
- post Jira comment
- git checkout
postJSAction: postTestReworkResults.js
Post Test Rework Results Action (postJSAction for pr_test_automation_rework)
- Source:
agents/js/postTestReworkResults.js - Side effects:
- post Jira comment
- git push
- git checkout
- git merge
- Parameters (customParams):
autoStartReviewautoStartReviewConfigFileremoveLabel
LLM step
- outputType:
none - Prompt snapshot:
agents/snapshots/pr_test_automation_rework.md
Custom params
removeLabel:"sm_test_rework_triggered"checkOpenPR:trueautoStartReview(used by JS action)autoStartReviewConfigFile(used by JS action)
Generated by js/agentDocGenerator.js