Skip to content

Add post-agent release job to comment on PRs included in each release#41834

Merged
pelikhan merged 1 commit into
mainfrom
copilot/update-release-md-script
Jun 27, 2026
Merged

Add post-agent release job to comment on PRs included in each release#41834
pelikhan merged 1 commit into
mainfrom
copilot/update-release-md-script

Conversation

Copilot AI commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

The release workflow now posts a release notification comment on each PR merged into the released window. This is implemented as a dedicated job that runs after agent, so release-note generation and PR notifications are decoupled.

  • What changed

    • Added comment_release_prs to /home/runner/work/gh-aw/gh-aw/.github/workflows/release.md.
    • Wired job dependencies to run after agent and consume config + release outputs (release_tag, release_id).
  • PR inclusion logic

    • Resolves current release from release_id.
    • Finds the prior published release.
    • Queries merged PRs in the window previousRelease.published_at..currentRelease.published_at.
  • Commenting behavior

    • Posts a standard release comment with a link to the release.
    • Uses a per-release marker (<!-- gh-aw-release:<tag> -->) to avoid duplicate comments on reruns.
    • Adds bounded retry/backoff around comment read/write API calls for transient failures.
  • Compiled workflow output

    • Regenerated /home/runner/work/gh-aw/gh-aw/.github/workflows/release.lock.yml to include the new job.
comment_release_prs:
  needs: ["agent", "config", "release"]
  runs-on: ubuntu-latest

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
@pelikhan pelikhan marked this pull request as ready for review June 27, 2026 03:31
Copilot AI review requested due to automatic review settings June 27, 2026 03:31
@pelikhan pelikhan merged commit bc0a5e4 into main Jun 27, 2026
28 checks passed
@pelikhan pelikhan deleted the copilot/update-release-md-script branch June 27, 2026 03:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the release workflow to post a standardized “included in release” comment on every PR merged between the previous and current release, implemented as a dedicated post-agent job so PR notifications are decoupled from release-note generation.

Changes:

  • Added a new comment_release_prs job to compute the release window and comment on merged PRs, with a per-release marker to prevent duplicate comments on reruns.
  • Wired workflow/job dependencies so the new job runs after agent and consumes release_id + release_tag outputs.
  • Regenerated the compiled .lock.yml workflow to include the new job and updated dependencies.
Show a summary per file
File Description
.github/workflows/release.md Adds the comment_release_prs job (github-script) to search merged PRs in the release window and comment with a de-dupe marker.
.github/workflows/release.lock.yml Regenerated compiled workflow including the new job and updated conclusion dependencies.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Low

Comment on lines +732 to +738
const releaseTag = process.env.RELEASE_TAG;
const releaseId = Number(process.env.RELEASE_ID);

if (!releaseTag || Number.isNaN(releaseId)) {
core.setFailed(`Missing or invalid release context: RELEASE_TAG=${releaseTag}, RELEASE_ID=${process.env.RELEASE_ID}`);
return;
}
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.81.6

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.

3 participants