40 lines
3.2 KiB
JSON
40 lines
3.2 KiB
JSON
{
|
|
"name": "make-pr",
|
|
"description": "Create pull requests using Gitea API with comprehensive change overview and testing strategies",
|
|
"agent_type": "pr-creator",
|
|
"capabilities": {
|
|
"generate-pr-overview": "Human-readable summary of all changes including files modified, new features, fixes, and refactoring",
|
|
"list-testing-strategies": "Suggest comprehensive testing approaches for each change (unit tests, integration tests, manual QA)",
|
|
"validate-changes": "Perform git diff analysis to ensure validation is ready before PR creation",
|
|
"format-pr-description": "Structure PR description with clear sections for context, changes, testing, and validation"
|
|
},
|
|
"when_to_use": [
|
|
"When you are ready to create a pull request from your current branch to develop",
|
|
"Before pushing code that requires peer review",
|
|
"When implementing features or fixes that need documentation in the PR",
|
|
"To ensure all changes are properly documented and validated before review"
|
|
],
|
|
"input_required": [
|
|
"Target branch (default: 'develop')",
|
|
"Optional custom PR title override",
|
|
"Optional specific testing requirements for the current change"
|
|
],
|
|
"prompt_template": "Generate a pull request description from branch '{current_branch}' to '{target_branch}'.\n\nThe PR should include:\n\n1. Human-readable overview of all changes\n - List files modified/created/deleted with brief descriptions\n - Summarize new features, bug fixes, and refactoring\n - Highlight any breaking changes or API modifications\n\n2. Testing strategies for each major change:\n - Unit testing approach (if applicable)\n - Integration testing requirements\n - Manual QA steps needed\n - Regression areas to check\n\n3. Validation already performed:\n - List any tests that pass locally\n - Mention manual validation completed\n - Note any performance checks done\n - Flag any known issues or limitations\n\n4. Clear context for reviewers:\n - What problem does this solve?\n - How does it relate to existing code?\n - Any migration notes needed?",
|
|
"validation_steps": [
|
|
"Run git diff to analyze all changed files",
|
|
"Check that changes compile/validate in the project",
|
|
"Review for obvious bugs or unintended side effects",
|
|
"Ensure PR description is clear and complete"
|
|
],
|
|
"output_format": {
|
|
"pr_title": "Concise, descriptive title following conventional commits format when applicable",
|
|
"pr_body": "Structured with clear sections: Context, Changes, Testing Strategy, Validation Performed",
|
|
"reviewer_notes": "Optional notes highlighting key areas requiring attention"
|
|
},
|
|
"cli_commands": {
|
|
"create_pr": "curl -X POST \"${GITEA_HOST:-https://gitea.letteka.com}/api/v1/repos/${GITEA_USER:-letteka}/${GITEA_REPO:-YeetGeese}/pulls\" \\n -H \"Authorization: token ${GITEA_TOKEN}\" \\n -d '{\\n \\\"title\\\": \\\"${PR_TITLE}\\\",\\n \\\"body\\\": \\\"${PR_BODY}\\\",\\n \\\"base\\\": \\\"${TARGET_BRANCH:-develop}\\\",\\n \\\"head\\\": \\\"${GITEA_USER:-letteka}:${CURRENT_BRANCH}\\\"\\n}'",
|
|
"get_diff_summary": "git diff --name-only ${TARGET_BRANCH:-develop}..HEAD 2>/dev/null | wc -l || echo \"0\"",
|
|
"validate_git_status": "git status --short && git log -1 --oneline --quiet"
|
|
}
|
|
}
|