Skip to content

ci: check_gatilhos não vigia filtros branches/types em pull_request #19

Closed

Description

@hbgit

Problema

check_gatilhos (scripts/qa/ci_invariants.sh:61) só verifica se a chave pull_request existe. Não olha os filtros branches, branches-ignore e types.

Cenário

Alguém escreve pull_request: { branches: [main] }. As PRs contra develop param de disparar o CI. A proteção de develop exige 8 checks, então toda PR fica em "Expected — Waiting for status" para sempre, e o workflow-lint segue verde.

Proposta

  • Fazer check_gatilhos falhar quando pull_request tiver branches ou branches-ignore que excluam main ou develop, ou types sem opened/synchronize/reopened.
  • Mais simples: exigir pull_request sem filtro nenhum, como já é hoje.
  • Incluir um controle negativo (injetar o filtro e ver o script falhar).

Origem: minor adiado da revisão final do plano docs/superpowers/plans/2026-09-28-ci-correcoes-avaliacao.md (PRs #16 e #18). Relacionado a docs/ci-audit/2026-09-28-avaliacao-ci-develop.md.

🤖 Generated with Claude Code

Activity

  1. self-assigned this
    on Sep 29, 2026
  2. added a commit that references this issue on Oct 15, 2026
  3. hbgit commented on Oct 15, 2026

    @hbgit
    OwnerAuthor

    Corrigida na #67 (merge em develop, 5f4afe8): check_gatilhos exige pull_request sem filtro nenhum (branches, branches-ignore, types...), com controles positivo e negativo em scripts/qa/ci_invariants_test.sh. Antes, branches: [main], branches-ignore: [develop] e types: [opened] numa cópia do ci.yml real passavam com exit 0; agora saem com exit 1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions