Activation: Set plugins.github.enabled: true in tc-to-automate/configs/integrations.yml.
After any generation command completes (/generate-automation-tests, /gen-bdd, etc.), if this plugin
is enabled, use the git MCP to:
git add outputs/<projectName>/— stage all generated filesgit commit -m "<commitMessage from config>"— commit with configured message- Do NOT push — user controls when to push
After committing:
- If
createPr: true: use GitHub API to create a PR from the current branch toprBaseBranch - PR title:
"feat(<projectName>): generated automation artifacts [kit-u1]" - PR body: generated list of files created, summary of test cases, locator strategy used
github:
enabled: true
repoOwner: ${GITHUB_OWNER}
repoName: ${GITHUB_REPO}
token: ${GITHUB_TOKEN}
createPr: true
prBaseBranch: main
commitMessage: "feat: generated kit-u1 test artifacts"GITHUB_OWNER— GitHub org or usernameGITHUB_REPO— Repository nameGITHUB_TOKEN— Personal access token withreposcope
Never commit GITHUB_TOKEN. Always reference as ${GITHUB_TOKEN} in integrations.yml.
Uses mcp__git__git_add, mcp__git__git_commit, mcp__git__git_status.
GitHub API calls use the shell MCP with gh CLI or direct REST API via curl.