Skip to content

ci(hook): adopt the commit gate in this repo and fail on empty review secrets - #690

Merged
ajianaz merged 1 commit into
developfrom
ci/adopt-commit-gate
Oct 16, 2026
Merged

ajianaz merged 1 commit into
developfrom
ci/adopt-commit-gate

Conversation

@ajianaz

@ajianaz ajianaz commented Oct 16, 2026

Copy link
Copy Markdown
Collaborator

What

  • scripts/hooks/pre-commit and scripts/setup-hooks.sh (core.hooksPath): fmt, clippy when Rust files are staged, then cora hook verify with cora review --staged --ci --severity major as fallback.
  • cora-review.yml: the secret guard now errors with the name of each empty secret among CORA_API_KEY, CORA_BASE_URL and CORA_MODEL.
  • AGENTS.md: a before-committing line; CHANGELOG entry.

Why

Uses the commit gate from #674 in this repository, and makes sure a Cora Review without its secrets can never pass silently.

Testing

  • bash -n on the hook, workflow YAML parses, local review passes.
  • The secret guard runs on this PR (secrets are set, so it must pass).

… secrets

Signed-off-by: ajianaz <ajianaz@users.noreply.github.com>
@ajianaz
ajianaz merged commit b3bc685 into develop Oct 16, 2026
14 checks passed
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