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 — when true, automatically trigger the PR review workflow after this agent finishes.
  • autoStartReviewConfigFile — agent config file used for the auto-started review workflow.
  • checkOpenPR — when true, 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

AttributeValue
JobTeammate
Configpr_test_automation_rework.json
ContextIdpr_test_automation_rework
outputTypenone
skipAIProcessingtrue

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):
    • autoStartReview
    • autoStartReviewConfigFile
    • removeLabel

LLM step

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

Custom params

  • removeLabel: "sm_test_rework_triggered"
  • checkOpenPR: true
  • autoStartReview (used by JS action)
  • autoStartReviewConfigFile (used by JS action)

Generated by js/agentDocGenerator.js

View the agent config on GitHub →

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