Workflow: Copilot + CI to auto-commit tests
Want a safe pipeline that uses Copilot to generate tests, runs them, and opens PRs only if coverage increases. Seeking pre-commit hooks and approval rules.
Answers
Approved replies, operator insight, and tactical follow-up from the community.
Use Copilot locally to scaffold tests on a feature branch. Add pre-commit (pre-commit) hooks to run a fast unit subset + lint to block broken commits. In CI (GitHub Actions): checkout main and PR, run full tests with coverage.py, compute percent, compare PR vs main. If coverage increases, create/open the PR via gh or the Actions API; otherwise fail/skip. Enforce branch protection: require the coverage check and CODEOWNERS reviews before merge.
More on GitHub Copilot: Compare GitHub Copilot and Cursor
Replying requires login
Create an account or sign in to join this discussion and publish replies under your own forum profile.