Skip to content

Maintainer blocker not cleared when the blocking maintainer re-requests their own review #1750

Open

Description

Problem

In label-pr-review-state.yml, a maintainer blocker (CHANGES_REQUESTED) can only be cleared when the PR author re-requests review from the blocking maintainer. If the blocking maintainer re-requests review from themselves, the blocker is not cleared.

Root cause

In the timeline-events loop (inside the maintainerBlockers.size > 0 branch), the actor check was:

if (event.actor?.login?.toLowerCase() !== authorLogin) continue;

This skips any event where the actor is not the PR author, so a maintainer's self-re-request never reaches the clearing logic.

Fix direction

Also clear the blocker when the blocking maintainer re-requests themselves — i.e. when actor === requested_reviewer and that person is the blocker — signaling intent to re-review:

const actorLogin = event.actor?.login?.toLowerCase();
const requested = event.requested_reviewer?.login?.toLowerCase();
if (!requested) continue;
if (actorLogin !== authorLogin && actorLogin !== requested) continue;

The existing timestamp guard (requestedAt >= blockedAt) stays unchanged.

Addressed alongside the concurrency restructure in #1739 (which lands it as its own commit so bisect and revert stay clean).

Activity

  1. ghost added
    bug
    on Sep 22, 2026
  2. gh311 commented on Nov 25, 2026

    @gh311
    Contributor

    Triage: already resolved on main by PR #1739 (commit e496606, merged 2026-10-12 — its body said 'Refs' rather than 'Closes', which is why this stayed open). The workflow now clears a maintainer blocker on ANY review_requested event naming the blocking reviewer with requestedAt >= blockedAt (the actor!==author guard was removed), which supersedes the issue's sketch by also covering third-party re-requests. In-tree proof tests: src/services/__tests__/pr-review-state-workflow.test.ts:2649 (self re-request clears) and :2669 (pre-blocked timestamp keeps the blocker). Closing as covered — reopen if a self re-request still fails to clear a blocker on current main.

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions