Skip to content

ci: add a just ci recipe and a pre-push hook that runs it - #314

Merged
kixelated merged 3 commits into
mainfrom
chore/add-ci-recipe
Nov 28, 2026
Merged

kixelated merged 3 commits into
mainfrom
chore/add-ci-recipe

Conversation

@kixelated

@kixelated kixelated commented Nov 28, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

Every repository lands through the kixel.quest merge queue (decision). Until its queue is live, a push should run the repository's checks locally. This repository has no just ci recipe and no pre-push hook to run one. CI runs lint, type checks, tests, a live build whose social cards it checks, and an evaluation of the dev shell.

Approach

Adds ci to the justfile: it depends on check and test, then runs the live Astro build, scripts/check-og.ts, and nix eval of the dev shell for the host's system, as .github/workflows/pr.yml does. just check now installs with bun install --frozen-lockfile, as CI does, so a stale lockfile fails instead of being quietly repaired; just fix still updates it. It leaves out the pub and watch site builds, which CI does not run.

Adds .githooks/pre-push, a short POSIX script that runs just ci, inside nix develop because the repository has a flake. Once kixel-ai/dotfiles#396 lands, dotfiles points core.hooksPath at a hook of its own, which runs this file as committed on the default branch (never a branch's copy), then Git LFS's pre-push, so the hook takes effect once this PR merges. It checks the working tree, not the pushed commits. It skips a push that only deletes refs, and a branch whose justfile has no ci recipe yet (one opened before this lands, or a release branch before its next cut), saying so; pull request CI still checks those. The hook says to delete it once this repository's queue is live.

Public API impact

None.

Alternatives

Pointing ci at just build was rejected: it also builds the pub and watch sites, which CI does not.

Follow-ups

None.

Validation

quest gate nix develop --command just ci passes locally in 11 seconds. Running .githooks/pre-push origin <url> </dev/null under quest gate, as dotfiles' wrapper would, passed again at the reviewed head. Git LFS: no.

Models

Size: S
Implementer: Claude Code, claude-sonnet-5-5, unknown
Implementer: Claude Code, claude-opus-5-5, unknown

🤖 Generated with Claude Code

(Written by Sonnet 5.5; updated by Opus 5.5)

kixelated and others added 2 commits November 27, 2026 23:22
Runs what the repository's CI runs, so a pre-push check can gate on it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@kixelated kixelated changed the title ci: add a just ci recipe ci: add a just ci recipe and a pre-push hook that runs it Nov 28, 2026
A push that only deletes refs carries no commits, and a branch from before
the recipe has none to run, which pull request CI still checks.

just check installs from the frozen lockfile, as CI does, so a stale lockfile
fails here instead of being repaired.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kixelated
kixelated marked this pull request as ready for review November 28, 2026 16:59
@coderabbitai

coderabbitai Bot commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The check recipe now installs dependencies with Bun’s frozen-lockfile mode. The new ci recipe runs checks, tests, an Astro live build, the social-card check, and a Nix dev-shell derivation evaluation. The pre-push hook skips deletion-only pushes and pushes without a ci recipe. Otherwise, it runs just ci directly or through nix develop when flake.nix exists.

Merge Risk: Minimal · up to c0fdd

This adds a local pre-push check and a just ci recipe, and makes just check use a frozen lockfile. It does not touch production code. Merge-readiness risk is minimal.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: a new just ci recipe and a pre-push hook that runs it. The raw summary confirms both the justfile ci recipe and .githooks/pre-push, so the title matches the chan…
Description check Passed The description explains the problem, the approach (the ci recipe, the frozen-lockfile change in check, and the pre-push hook), the validation steps, and the linked dotfiles change. It matches the…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: a new just ci recipe and a pre-push hook that runs it. The raw summary confirms both the justfile ci recipe and .githooks/pre-push, so the title matches the changeset.

Full details: Description check

Explanation

The description explains the problem, the approach (the ci recipe, the frozen-lockfile change in check, and the pre-push hook), the validation steps, and the linked dotfiles change. It matches the changeset described in the summary and objectives.

Finishing Touches

Simplify code

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 8d76acdb-3551-41e8-b8f9-f164ddd74f31
Commits

Reviewing files that changed from the base of the PR and between 77d39e4 and c0fdd7a.

Files selected for processing: 2

  • .githooks/pre-push
  • justfile

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@kixelated
kixelated merged commit b694b7e into main Nov 28, 2026
4 checks passed
@kixelated
kixelated deleted the chore/add-ci-recipe branch November 28, 2026 17:04
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