Skip to content

feat(release): publicar versões manualmente e preparar tags imutáveis - #28

Merged
rodri-oliveira-dev merged 13 commits into
mainfrom
feat/manual-immutable-releases
Sep 23, 2026
Merged

rodri-oliveira-dev merged 13 commits into
mainfrom
feat/manual-immutable-releases

Conversation

@rodri-oliveira-dev

@rodri-oliveira-dev rodri-oliveira-dev commented Sep 23, 2026 •

Copy link
Copy Markdown
Owner

Resumo

  • Adiciona .github/workflows/release.yml com workflow_dispatch e entrada SemVer estável (sem prefixo v).
  • Valida branch e commit atual da main; serializa execuções e restringe contents: write ao job que publica.
  • Cria a tag via API com operação que falha se a referência já existir, e publica release com notas automáticas somente após confirmar a tag (--verify-tag).
  • O ruleset immutable-tags.json foi disponibilizado separadamente para download no chat; não faz parte da branch nem deste PR. Ele bloqueia atualizações e exclusões de todas as tags, sem impedir novas criações nem configurar bypass.
  • Acrescenta testes de regressão da política e documentação EN/PT-BR (README e AGENTS).

Validação

O workflow Validate deste PR deve executar ShellCheck, Bats, actionlint, zizmor, varredura de segredos e ciclo completo no container.

Etapa administrativa obrigatória após o merge

Baixe o arquivo immutable-tags.json disponibilizado separadamente no chat e execute o comando a partir da pasta onde ele foi salvo. O JSON não cria automaticamente o ruleset. O conector GitHub disponível não oferece mutação administrativa de rulesets. Um administrador deve confirmar ausência de um ruleset equivalente e aplicar uma única vez:

gh api --method POST repos/rodri-oliveira-dev/dotfiles/rulesets --input immutable-tags.json

Permissão exigida: Administration: write. Alternativamente, em Settings → Rules → Rulesets, criar ruleset de tags ativo para todas as tags, com Restrict updates e Restrict deletions, sem Restrict creations e sem bypass. Verificar a configuração no GitHub antes de acionar a primeira release.

Risco residual

A API cria uma tag nova antes da chamada de publicação: se a segunda chamada falhar, a tag ficará reservada. A recuperação deve completar a release usando a mesma tag, sem movê-la nem excluí-la; uma nova execução com a mesma versão é recusada. A proteção de tags não torna automaticamente descrições/arquivos de releases imutáveis.

Nenhuma tag ou release é publicada por este PR.

Summary by CodeRabbit

  • New Features
    • Added a manual release process for publishing stable, versioned releases from the latest commit on the main branch, with automatically generated release notes.
    • Prepared a separately downloadable tag ruleset configuration; repository administration must activate it before publishing.
  • Documentation
    • Added guidance on publishing releases, protecting tags, and completing publication if a release is interrupted.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@changeset-bot

changeset-bot Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 0a3f6a7

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai

coderabbitai Bot commented Sep 23, 2026

Copy link
Copy Markdown

Review in Change Stack →

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 configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 7a1694de-7d72-4e78-a7ba-68ef9f6de6c0

📥 Commits

Reviewing files that changed from the base of the PR and between 90f798f and c0cc3da.

📒 Files selected for processing (7)
  • .github/rulesets/immutable-tags.json
  • .github/workflows/release.yml
  • AGENTS.md
  • AGENTS.pt-BR.md
  • README.md
  • README.pt-BR.md
  • tests/ci-policy.bats
 _______________________________________________________________________________________________
< bm = Δc/Δt: Bug momentum equals change in code over change in time. Can't argue with physics. >
 -----------------------------------------------------------------------------------------------
  \
   \   (\__/)
       (•ㅅ•)
       /   づ
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

Comment @coderabbitai help to get the list of available commands.

@rodri-oliveira-dev
rodri-oliveira-dev merged commit 651c9f2 into main Sep 23, 2026
2 checks passed
@rodri-oliveira-dev
rodri-oliveira-dev deleted the feat/manual-immutable-releases branch September 23, 2026 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant