Skip to content

Post informational comment when review dispatch is skipped for fork PRs #8709

Open

Description

@fullsend-ai-retro

What happened

PR #163 was a 3985-line, 45-file PR adding a new DevLake plugin, opened from a fork by mfrancisc (who has read permission on konflux-ci/devlake). The Route job in reusable-dispatch.yml checks is_event_actor_authorized for triage permission on pull_request_target opened/synchronize events. This check failed silently on all three dispatch attempts (run 39423208136, run 39434920661, run 39585187068), logging "No stage matched -- skipping dispatch" with no PR comment. A maintainer (psturc) later used /ok-to-test to trigger CI but did not use /fs-review — suggesting the team was unaware that manual review dispatch was available. The PR merged after human review only, missing automated coverage that would have flagged ~18 additional issues across security, error handling, test coverage, and code quality.

What could go better

When the Route job skips review dispatch because a fork PR author lacks sufficient permissions, there is no user-facing feedback. Maintainers reviewing fork PRs have no signal that automated review is available but inactive, and no prompt to use /fs-review. This is a discoverability gap. On this PR, a maintainer signaled trust via /ok-to-test but did not know to also run /fs-review. Related issues #4374 (trigger review on ok-to-test label) and #2967 (enable review for trusted fork contributors) would solve the underlying dispatch problem, but even if those are not implemented, a notification would close the discoverability gap at minimal cost. Confidence: high — the evidence is clear: 3 silent skips, a maintainer who used a CI-trigger but not the review trigger, and a large PR that demonstrably would have benefited from automated review. Similar notification patterns are already proposed for other agent stages (#1920 for fix dispatch failure, #5863 for fix agent guard-rail blocks), establishing precedent.

Proposed change

In the Route job of reusable-dispatch.yml, when review dispatch is skipped for a pull_request_target opened event because is_event_actor_authorized fails: post a single comment on the PR via gh pr comment with text like: "Automated review was not dispatched for this PR because the author does not have triage permission on this repository. A maintainer can trigger automated review by commenting /fs-review." Use a hidden HTML marker (e.g., <!-- fullsend-review-skip-notice -->) and check for its presence before posting to ensure the comment appears only once per PR (not repeated on synchronize events). Gate this behind an opt-out configuration flag (e.g., notify_review_skip: false in the repo or org config) so repos that don't want the notification can disable it. This is distinct from #4374 (which proposes auto-dispatching review on ok-to-test) and #2967 (which proposes expanding the trust model) — this proposal adds user-facing feedback regardless of whether those dispatch changes land.

Validation criteria

On the next fork PR from a read-only contributor to a repo with the review role enabled: (1) a single informational comment appears on the PR within 5 minutes of creation, (2) the comment is not repeated on subsequent push events, and (3) the comment accurately describes how to trigger review via /fs-review. Success metric over 30 days: at least 20% of fork PRs that receive the notification result in a maintainer using /fs-review, indicating the discoverability gap is closed.


Generated by retro agent from konflux-ci/devlake#163

Activity

  1. shairevivo commented on Nov 19, 2026

    @shairevivo
    Contributor

    /fs-triage this issue might be duplicate of #2724 please check and close if duplicate

  2. fullsend-ai-triage commented on Nov 19, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 10:53 AM UTC · Completed 10:55 AM UTC

    Commit: d0dd3f3 · View workflow run →

    Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.10

  3. added
    blocked
    on Nov 19, 2026
  4. fullsend-ai-triage commented on Nov 19, 2026

    @fullsend-ai-triage

    Checked against #2724 as requested: this is not a duplicate. That issue is about feedback when a user-invoked slash command is skipped, for example a repeat /fs-review while a run is in flight or backing off. This one is about the automatic dispatch when a fork PR is opened or updated and the author lacks triage permission. In that case the skip is silent, and the proposed notice would tell maintainers they can run /fs-review. The trigger, skip cause and message all differ, so both issues stay open.

    Why this is blocked: PR #8190 (for #7555) adds a shared notification mechanism to the dispatch workflow: a dedicated comment-writing job, a deduplication marker, and dispatch metadata. It edits the same files this change would touch. That PR deliberately suppresses notices for automatic triggers, so it does not fix this issue. This work should reuse its mechanism instead of building a parallel one, and it should lift the automatic-trigger suppression for the fork-PR case. Once #8190 merges, this issue should be re-triaged as an extension.

    Related open issues to keep aligned: #2724 (feedback for skipped slash commands, also sequenced behind #8190), #4374 and #2967 (changing the dispatch trust model for fork PRs, which would reduce the need for the notice), #6671 (feedback for slash commands rejected over permissions), #7552 (clear no-dispatch reasons in logs), and #8856 (the Route step checks the PR author instead of the event sender on synchronize for fork PRs). The last one could change which events hit the skip path and should be considered when designing the once-per-PR dedup.

    Open design points for maintainers: whether the opt-out flag proposed in the issue (notify_review_skip) fits the existing config conventions, and whether the notice should fire on synchronize events or only on opened.

    Workflow-change warning: the fix would modify .github/workflows/reusable-dispatch.yml. The code agent cannot modify workflow files under its current permissions, so that part needs a human-authored PR or maintainer action.

    Blocked by:

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

    blocked

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions