Skip to content

release-merge.yml: every Copilot review leaves a workflow run awaiting maintainer approval #372

Closed

Description

@Shinrai

The release-merge.yml caller (examples/individual-repo-workflows/release-flow-v4/release-merge.yml) triggers on pull_request_review: [submitted]. When Copilot submits a review, the review event's actor is the Copilot bot. GitHub holds a workflow run triggered by a bot actor until a maintainer approves it, so every Copilot review on every PR leaves a "🚦 Release Merge (v4)" run with conclusion action_required. The PR shows it as a run waiting for approval, which looks like a security or CodeQL hold and isn't one.

The runs do nothing useful: the workflow only acts on a maintainer's approval of the release PR. The same workflow also runs from the maintainer's own pushes and reviews, and those runs succeed.

Observed on CLDMV/slothlet, 2026-10-10/11: 20 action_required runs in one day across PRs #580, #585, #601, #603 and #606, one per Copilot review. For example, https://github.com/CLDMV/slothlet/actions/runs/38107867454 (on #580's head 8bb2ff87, actor and triggering actor Copilot). The run for the same head triggered by the maintainer succeeded.

Fix wanted. Don't start the job for a review that cannot arm the merge. At the caller, add a job-level if: that skips pull_request_review events whose review is not an approval, or whose reviewer is a bot (github.event.review.user.type == 'Bot'), or both. A job skipped by if: still needs the run to be approved when the actor is a bot, so check whether that removes the hold. If it doesn't, narrow the trigger instead: pull_request_review has no event-level filter on the reviewer, so that leaves moving the arming step to workflow_run, or accepting the held runs. Then apply the change to every consumer's copy through the usual workflow sync.

Acceptance:

  • A Copilot review on a feature PR leaves no run waiting for approval.
  • A maintainer's approval of the release PR still arms the merge.
  • The workflow_run re-evaluation keeps working.

Activity

  1. added
    type: bug
    priority: medium
    type: ci
    status: not started
    on Oct 11, 2026
  2. added a commit that references this issue on Oct 12, 2026
    92e0f0c
  3. added
    status: implemented
    and removed
    status: not started
    on Oct 12, 2026
  4. cldmv-bot commented on Oct 12, 2026

    @cldmv-bot
    Contributor

    Marked status: implemented — resolved by #373, merged into next. This issue closes automatically when that work ships to the default branch.

  5. cldmv-bot commented on Oct 12, 2026

    @cldmv-bot
    Contributor

    Closed in v4.33.0 — resolved by #373.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: mediumstatus: implementedtype: bugtype: ci

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions