how to use Copilot to generate PR descriptions automatically
Looking for a lightweight flow where Copilot drafts PR descriptions from commits and I can edit before merging. Need recommended GitHub Actions, commit parsing prompts, and a review checklist template.
Answers
Approved replies, operator insight, and tactical follow-up from the community.
Lightweight flow: actions/checkout + actions/github-script to gather git log, call your LLM (GitHub Copilot or ChatGPT via CLI/API) to draft a PR body, then peter-evans/create-or-update-pull-request to save it for edit.
Commit-to-PR prompt (send commit list):
"Create a PR description from these commits. Include: short summary, changed modules, breaking changes, testing notes, and migration steps. Commits:n{commits}nBranch:{branch}"
Quick review checklist: summary correct, CI green, tests cover changes, docs updated, no secrets/large files.
Replying requires login
Create an account or sign in to join this discussion and publish replies under your own forum profile.