Skip to content

PR-triage skill: promote likely-addressed PRs with reviewer ping#65916

Merged
potiuk merged 1 commit intoapache:mainfrom
potiuk:update-pr-triage-skill-mark-ready-with-ping
Apr 27, 2026
Merged

PR-triage skill: promote likely-addressed PRs with reviewer ping#65916
potiuk merged 1 commit intoapache:mainfrom
potiuk:update-pr-triage-skill-mark-ready-with-ping

Conversation

@potiuk
Copy link
Copy Markdown
Member

@potiuk potiuk commented Apr 27, 2026

Adds a new suggested action mark-ready-with-ping for the case
that today routes to plain ping: a PR's only outstanding
signal is unresolved review threads from collaborators. When a
cheap batch-query heuristic shows the author has likely
addressed each thread (in-thread reply or post-comment commit,
plus the latest commit post-dates the most recent unresolved
thread), the skill proposes promoting the PR to
ready for maintainer review and posting a single ping comment
that invites the original reviewer(s) to confirm and resolve
their threads.

The heuristic is conservative: false-negatives degrade to the
existing plain ping behaviour; false-positives self-correct
on the next round-trip because the comment explicitly invites
the reviewer to push back. The new action shares the same
mandatory pre-mutation guard as mark-ready (refuse if any
workflow run is in action_required for the PR's head SHA).

Files touched:

  • fetch-and-batch.md: widen reviewThreads.nodes.comments
    from first: 1 to first: 5 so the heuristic can see
    in-thread author replies without per-PR follow-up queries.
  • classify.md: document the
    unresolved_threads_only_likely_addressed sub-flag; update
    the required-fields checklist.
  • suggested-actions.md: split the unresolved-threads-only
    rule into two; new "Choosing between ping and
    mark-ready-with-ping" section.
  • actions.md: new mark-ready-with-ping recipe; extend the
    order-of-operations recap.
  • comment-templates.md: new mark-ready-with-ping body;
    added to the AI-attribution-footer always-include list.
  • SKILL.md: extend Golden rule 1b so the workflow-approval
    guard explicitly covers mark-ready-with-ping; add to the
    Step 3 default-action table and Step 4 group ordering.
  • interaction-loop.md: insert the new group ahead of plain
    mark-ready so all label-add proposals run back-to-back;
    add safe override (mark-ready-with-ping → ping); extend
    the session summary.
Was generative AI tooling used to co-author this PR?
  • Yes — Claude Opus 4.7 (1M context)

Generated-by: Claude Opus 4.7 (1M context) following the guidelines

Adds a new suggested action `mark-ready-with-ping` for the case
that today routes to `ping`: a PR's only outstanding signal is
unresolved review threads from collaborators. When a cheap
batch-query heuristic shows the author has likely addressed each
thread (in-thread reply or post-comment commit, plus the latest
commit post-dates the most recent unresolved thread), the skill
proposes promoting the PR to `ready for maintainer review` and
posting a single ping comment that invites the original
reviewer(s) to confirm and resolve their threads.

The heuristic is conservative: false-negatives degrade to the
existing plain `ping` behaviour; false-positives self-correct
on the next round-trip because the comment explicitly invites
the reviewer to push back. The new action shares the same
mandatory pre-mutation guard as `mark-ready` (refuse if any
workflow run is in `action_required` for the PR's head SHA).

Files touched:

- `fetch-and-batch.md`: widen `reviewThreads.nodes.comments`
  from `first: 1` to `first: 5` so the heuristic can see
  in-thread author replies without per-PR follow-up queries.
- `classify.md`: document the sub-flag
  `unresolved_threads_only_likely_addressed`; update the
  required-fields checklist for the `deterministic_flag` row.
- `suggested-actions.md`: split the unresolved-threads-only
  rule into two; add a "Choosing between ping and
  mark-ready-with-ping" section.
- `actions.md`: add the `mark-ready-with-ping` action recipe;
  extend the order-of-operations recap.
- `comment-templates.md`: add the `mark-ready-with-ping` body
  template; add the new template to the AI-attribution-footer
  always-include list.
- `SKILL.md`: extend Golden rule 1b so the workflow-approval
  guard explicitly covers `mark-ready-with-ping`; add the new
  action to the Step 3 default-action table and Step 4 group
  ordering.
- `interaction-loop.md`: insert the new group ahead of the
  plain `mark-ready` group so all label-add proposals run
  back-to-back; add a safe override
  (`mark-ready-with-ping → ping`); extend the session summary.
Copy link
Copy Markdown
Member

@choo121600 choo121600 left a comment

Choose a reason for hiding this comment

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

lgtm :)

@potiuk potiuk merged commit 993bdaf into apache:main Apr 27, 2026
64 checks passed
@potiuk potiuk deleted the update-pr-triage-skill-mark-ready-with-ping branch April 27, 2026 08:18
@potiuk potiuk removed the backport-to-v3-2-test Mark PR with this label to backport to v3-2-test branch label Apr 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants