generate_cicd_pipeline
Creates a GitHub Actions workflow that checks code coverage on pull requests using JaCoCo, blocks merge if coverage is below target, and posts a coverage report as a PR comment.
Instructions
Gera workflow completo de GitHub Actions para análise de cobertura em PR: checkout, build, JaCoCo, bloqueio de merge se cobertura < meta, comentário no PR com relatório.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"service_name": "<service_name>"
},
"name": "generate_cicd_pipeline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| service_name | Yes | Nome do serviço GPA (ex: payment-service, checkout-service) | |
| target_coverage | No | Meta de cobertura de linha em % (default: 100) | |
| java_version | No | Versão do Java (default: 17) | |
| build_tool | No | Ferramenta de build (default: maven) | maven |