ci-pr-helper
Run local test/style checks and open GitHub PRs for lance-context. Use when asked to run CI-equivalent checks (uv pytest, ruff/pyright, cargo fmt/clippy/test) and then create a PR with a proper title/body.
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
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:
./.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:
## 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:
gh auth status
When ready:
- If
ghis ready to use, execute:
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.
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-01-20
- 索引更新时间
- 2026-01-28
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!