Skip to content

feat: automate PR summary#150

Merged
joaolfp merged 4 commits intomasterfrom
copilot/create-pr-summary-skill
Mar 8, 2026
Merged

feat: automate PR summary#150
joaolfp merged 4 commits intomasterfrom
copilot/create-pr-summary-skill

Conversation

Copy link
Contributor

Copilot AI commented Mar 8, 2026

Adds a Cursor skill that automates PR description generation from local git changes, and prevents the generated output from being accidentally committed.

Changes

  • .cursor/skills/pr-summary/SKILL.md — Skill definition instructing Cursor to:

    • Run git diff main --stat, git diff main, and git log main..HEAD --oneline to gather context
    • Infer change type (feat, fix, refactor, docs, test, chore) from diff and file list
    • Produce topic bullets grouped by area (Sources, Tests, CI, Docs)
    • Render output using the project PR template (Type of change / Description / Changes / Testing sections)
    • Deliver result as a markdown code block and write it to pr-description.md
  • .gitignore — Adds pr-description.md under a # Cursor section to keep the generated file out of version control

Original prompt

Create the .cursor/skills/pr-summary.md file with the PR Summary skill definition that reviews local git changes and generates a pull request summary following the project template.

The skill should:

  • Gather change context by running git commands
  • Infer type of change from the diff and file list
  • Write summary as topic bullets
  • Output in template format
  • Deliver the result in markdown code block and write to pr-description.md

Additionally, add pr-description.md to .gitignore to prevent the temporary description file from being committed.

Files to create/modify:

  1. Create .cursor/skills/pr-summary.md with the complete skill definition
  2. Update .gitignore to include pr-description.md

This pull request was created from Copilot chat.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: joaolfp <36343338+joaolfp@users.noreply.github.com>
Copilot AI changed the title [WIP] Create pr-summary skill for generating pull request summaries Add Cursor PR summary skill and ignore generated output file Mar 8, 2026
@joaolfp
Copy link
Collaborator

joaolfp commented Mar 8, 2026

@copilot the file should be named SKILL.md, and you should organize the path this way

.cursor/skills/pr-summary/SKILL.md

Co-authored-by: joaolfp <36343338+joaolfp@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Mar 8, 2026

@copilot the file should be named SKILL.md, and you should organize the path this way

.cursor/skills/pr-summary/SKILL.md

Done — the file has been moved to .cursor/skills/pr-summary/SKILL.md in commit 6dc57c9.

@joaolfp joaolfp changed the title Add Cursor PR summary skill and ignore generated output file feat: automate PR summary Mar 8, 2026
@joaolfp joaolfp marked this pull request as ready for review March 8, 2026 03:54
@codecov
Copy link

codecov bot commented Mar 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 64.16%. Comparing base (fecf589) to head (cb9b670).
⚠️ Report is 40 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #150      +/-   ##
==========================================
- Coverage   67.52%   64.16%   -3.37%     
==========================================
  Files           6        6              
  Lines         194      173      -21     
==========================================
- Hits          131      111      -20     
+ Misses         63       62       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Updated PR Summary Skill documentation to reflect new structure and steps for generating pull request summaries.
@joaolfp joaolfp merged commit fd2e228 into master Mar 8, 2026
3 of 4 checks passed
@joaolfp joaolfp deleted the copilot/create-pr-summary-skill branch March 8, 2026 04: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.

2 participants