Skip to content

feat: change-summary opens a historical PR and requests Copilot code review#71

Open
Copilot wants to merge 2 commits into
mainfrom
copilot/change-summary-github-action
Open

feat: change-summary opens a historical PR and requests Copilot code review#71
Copilot wants to merge 2 commits into
mainfrom
copilot/change-summary-github-action

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 17, 2026

The change-summary workflow only wrote a Markdown report to the job summary. It now also opens a real GitHub PR spanning the requested date window and automatically requests a Copilot code review on it.

Changes

  • Permissions — elevated from contents: read to contents: write + pull-requests: write
  • Step: Generate change summary — extended to:
    • Tee the Markdown report to /tmp/pr-body.md for use as the PR body
    • Emit base_sha (last commit strictly before start_date), head_sha (last commit at/before end_date), and has_commits as step outputs
  • Step: Open PR and request Copilot review (new, conditional on has_commits == 'true'):
    1. Force-pushes two ephemeral branches — change-summary/base-{start_date} and change-summary/{start_date}-to-{end_date} — pointing at the discovered SHAs
    2. Opens a PR (base → head) with the generated summary as its description; falls back to looking up an existing PR rather than failing on re-runs
    3. Requests copilot-pull-request-reviewer via POST /pulls/{n}/requested_reviewers; emits a non-fatal ::warning:: if Copilot code review is not enabled on the repository

💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.

…view

Co-authored-by: spktrm <72776130+spktrm@users.noreply.github.com>
Copilot AI changed the title [WIP] Update summary GitHub action for PR review feat: change-summary opens a historical PR and requests Copilot code review Mar 17, 2026
Copilot AI requested a review from spktrm March 17, 2026 02:00
@spktrm spktrm marked this pull request as ready for review March 17, 2026 02:58
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