Skip to content

ci: dogfood codebase-intelligence gate#71

Merged
bntvllnt merged 3 commits into
mainfrom
ci/self-codebase-intelligence
Jul 2, 2026
Merged

ci: dogfood codebase-intelligence gate#71
bntvllnt merged 3 commits into
mainfrom
ci/self-codebase-intelligence

Conversation

@bntvllnt

@bntvllnt bntvllnt commented Jul 1, 2026

Copy link
Copy Markdown
Owner

Summary

  • wires this repo's GitHub CI to run codebase-intelligence ci on PRs and main pushes using the published canary package
  • uses full history checkout so origin/<base> and previous-push refs are available for --new-only
  • emits GitHub annotations, SARIF, a markdown PR-summary artifact, and the same markdown into the job summary

Channel choice

  • Uses npx -y codebase-intelligence@canary now, so the repo dogfoods the latest canary release as an external quality gate.
  • After 2.5.0 is promoted stable, this can move to codebase-intelligence@latest.
  • Local pnpm build and pnpm test remain in CI so PRs still prove the source code under review works.

Validation

  • npx -y codebase-intelligence@canary ci . --base origin/main --new-only --changed-workspaces --format annotations --summary --force PASS
  • npx -y codebase-intelligence@canary ci . --base origin/main --new-only --changed-workspaces --format sarif --output codebase-intelligence.sarif --summary --force PASS
  • npx -y codebase-intelligence@canary ci . --base origin/main --new-only --changed-workspaces --comment markdown --output codebase-intelligence-pr-comment.md --summary --force PASS
  • pnpm lint PASS
  • pnpm typecheck PASS
  • pnpm build PASS
  • pnpm test PASS: 38 files, 486 tests
  • git diff --check PASS

Follow-up

  • Setup UX should become one command: codebase-intelligence init --ci github or codebase-intelligence doctor --fix ci to generate this workflow automatically.

Notes

  • This PR intentionally does not merge itself.

@bntvllnt bntvllnt self-assigned this Jul 1, 2026
@bntvllnt bntvllnt added enhancement New feature or request javascript Pull requests that update javascript code labels Jul 1, 2026
@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Codebase Intelligence CI

Verdict: PASS
Base: origin/main
Mode: new-only
Changed workspaces: 1 workspace(s); 1 changed since origin/main; 0 cross-package cycle(s).

Gate Verdict Summary
check warn 0 error(s), 3 warning(s) — WARN
health pass Health 67.00/0 pass; top risk src/analyzer/index.ts (86.18).

Codebase Intelligence

Verdict: WARN
Summary: 0 error(s), 3 warning(s) — WARN

Severity Rule Location Finding
warn no-unused-deps package.json:21 Runtime import is declared in devDependencies: vitest
warn no-unused-deps package.json:53 Unused dependency: graphology-shortest-path
warn no-unused-deps package.json:54 Unused dependency: picocolors

@bntvllnt bntvllnt merged commit 27a6a3b into main Jul 2, 2026
9 checks passed
@bntvllnt bntvllnt deleted the ci/self-codebase-intelligence branch July 2, 2026 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant