Repository navigation
fix(release): fazer checkout e recuperar publicação de tag existente - #29
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (4)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Causa
O run 35905127462 criou a tag
v1.0.0, mas o comandogh release createfalhou comfatal: not a git repositoryporque o job não fazia checkout. A tag permanece no commit651c9f2d577c959fb1e574950f73bca1a99096c9; a release não foi publicada.Correção
actions/checkoutfixado por SHA, compersist-credentials: falsee histórico completo para verificar a ancestralidade das tags em recuperação.--force, reset, remoção ou movimentação de referências existentes.recover_existing_tag(false por padrão) para completar uma release cuja tag leve já existe: exige que ela aponte a um commit ancestral domainatual, rejeita release já existente e publica sem modificar a tag.--verify-tage--repona publicação.Recuperação da v1.0.0
Depois de integrar este PR e confirmar CI verde, acesse Actions → Publish release → Run workflow; selecione
main, informe1.0.0e marquerecover_existing_tag. Não exclua, recrie nem mova a tag existente. Nenhuma tag ou release é publicada pelo PR.Validação
O workflow
Validatedeste PR é responsável por Shell validation e Clean container lifecycle. Os testes Bats verificam as invariantes do novo fluxo; a publicação real só deve acontecer depois do merge e da proteção de tags estar ativa.Summary by CodeRabbit
mainhistory that do not already have a release; the tag remains unchanged.