Publishing Test Pull Requests
This skill enables the agent to interact with version control to seamlessly merge AI-generated tests into the project's main codebase.
Capabilities
- Staging Test Files: Intelligently select which files to stage (e.g.,
.spec.ts,.feature, baseline images) while ignoring temporary artifacts (.log, temporary screenshots). - Branch Management: Automatically create semantic branches (e.g.,
qa/add-login-tests,chore/update-visual-baselines). - Committing: Generate conventional commit messages summarizing the testing additions.
- Pushing: Push the branch to the configured Git remote.
- Pull Requests: Interface with the repository host (GitHub, GitLab, Bitbucket) to create a clear, detailed PR.
Instructions
- Analyze the modified tracking state using
git status. - Filter only test-related files (scripts, configurations, baseline snapshots).
- Branch off from the main line using a descriptive name (
git checkout -b qa/<topic>). - Commit the files with a standard convention message.
- Push using the current upstream tracking connection.
- Open PR using the standard command line tool available for the host (e.g.
gh pr create --title "test: <topic>" --body "Automated test generation."). Ensure the body includes any metrics or bug links if relevant.