Protect main with a ruleset: require CI and drift-check, block force-push

Aberta
#218 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
48/100
Tipo de issue
Funcionalidade
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
github
Domínio
ci-cd

Direção de pesquisa

Read the repository’s current protection and ruleset state using the main protection and /rulesets endpoints, then identify the CI matrix and drift-check status checks. Configure the main ruleset with the requested pull request, status-check, force-push, and deletion restrictions, retaining the admin bypass; done when failing-CI PRs cannot merge and direct pushes are rejected.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

ci effort: small impact: medium priority: medium release

Why it matters

Every merge to main triggers release.yml, which tags and publishes to npm and the MCP Registry. main has no protection, so a direct push or a merge with red CI ships to users. #190 covers the release workflow not waiting for CI, and #191 covers action hardening; neither covers repository rules.

Evidence

  • gh api repos/TMHSDigital/screencast-mcp/branches/main/protection returns 404 (not protected).
  • /rulesets is empty.

Suggested approach

Add a ruleset on main:

  • require pull requests
  • require the CI matrix (Ubuntu and Windows) and drift-check to pass
  • block force-pushes and deletion
  • optionally require linear history

Allow an admin bypass for emergencies.

Done when

  • A PR with failing CI cannot be merged.
  • A direct push to main is rejected.
Linguagem predominante
TypeScript
Estrelas
1
Forks
4
Merge médio
14h 8min
PRs com merge (30d)
48

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de TMHSDigital/screencast-mcp

Todas as issues de TMHSDigital/screencast-mcp

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.