CI PR Helper
Overview
Run project checks locally, then prepare and open a PR with a clear title and summary.
Workflow
- •Ensure you are on a feature branch (not
main). - •Run local checks via the script in
scripts/. - •Draft a PR title/body using the template below.
- •If
ghis available and authenticated, rungh pr createyourself; otherwise, surface the exact command for the user to execute manually.
Local checks
Run:
bash
./.codex/skills/ci-pr-helper/scripts/run_ci_checks.sh
If it fails due to missing tools, install uv, cargo, or Python deps, then rerun.
PR creation
Draft a conventional title (e.g., feat:/fix:/ci:) and use:
code
## Summary - ... ## Testing - uv run pytest - cargo test --manifest-path rust/lance-context/Cargo.toml - cargo fmt --manifest-path rust/lance-context/Cargo.toml -- --check - cargo clippy --manifest-path rust/lance-context/Cargo.toml --all-targets -- -D warnings - ruff format --check python/ - ruff check python/ - pyright
If you need to check auth status, you may still run:
bash
gh auth status
When ready:
- •If
ghis ready to use, execute:
bash
gh pr create --title "<title>" --body "<body>"
- •
Some environments emit a spurious
Unsupported subcommand 'pr'warning before runninggh; ignore that message and continue with the command. - •
If
ghis missing or fails, print the command instead so the user can run it locally.