Skip to content

fix(bots): accept CONTRIBUTOR in engineer-followup comment-path gate#869

Merged
eric-wang-1990 merged 1 commit into
mainfrom
fix/followup-gate-accept-contributor
Jul 17, 2026
Merged

fix(bots): accept CONTRIBUTOR in engineer-followup comment-path gate#869
eric-wang-1990 merged 1 commit into
mainfrom
fix/followup-gate-accept-contributor

Conversation

@eric-wang-1990

Copy link
Copy Markdown
Contributor

Problem

A maintainer with private org membership is reported as author_association: CONTRIBUTOR in the pull_request_review_comment webhook payload — even though the REST API shows MEMBER. The engineer-followup gate only accepted OWNER/MEMBER/COLLABORATOR, so such a maintainer's review comments silently fail the gate: the job skips with no error, and the bot never engages.

Observed live on #868 — a review comment (MEMBER per REST) triggered followup run 29550013874, which skipped. Confirmed the commenter is a private org member (404 on the org public-members check), so the webhook payload carried CONTRIBUTOR. This is why the bot never followed up on the review comment there.

Fix

Add CONTRIBUTOR to the accepted association set. Low risk: this path already requires a non-fork, OPEN, engineer-bot-labeled PR (a maintainer-applied opt-in) — the label is the real trust gate; author_association is defense-in-depth.

Mirrors the engine fix (databricks/databricks-bot-engine#120), which also updates the canonical dogfood workflow + consumer example stub so future onboardings inherit the corrected gate.

This pull request and its description were written by Isaac.

A maintainer with PRIVATE org membership is reported as
`author_association: CONTRIBUTOR` in the pull_request_review_comment webhook
payload (even though REST shows MEMBER). The followup gate only accepted
OWNER/MEMBER/COLLABORATOR, so such a maintainer's review comments SILENTLY failed
the gate — the job skipped with no error and the bot never engaged.

Observed on #868: a review comment (MEMBER per REST) triggered a followup run
that skipped, because the payload association was CONTRIBUTOR (membership private).

Add CONTRIBUTOR. Low risk: this path already requires a non-fork, OPEN,
`engineer-bot`-labeled PR (a maintainer-applied opt-in). Mirrors the engine fix
(databricks/databricks-bot-engine#120).

Signed-off-by: eric-wang-1990 <e.wang@databricks.com>
Co-authored-by: Isaac
Copilot AI review requested due to automatic review settings July 17, 2026 02:44

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@peco-review-bot peco-review-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Verdict: 1 Low

Looks good — a minimal, well-justified gate change that adds CONTRIBUTOR to the accepted author_association set to unblock private-org maintainers whose webhook payload reports CONTRIBUTOR. The array stays valid JSON and the explanatory comment is updated symmetrically. One low-severity note about the (documented, label-mitigated) broadening of the trusted commenter set.

Comment thread .github/workflows/engineer-bot-followup.yml
@eric-wang-1990
eric-wang-1990 enabled auto-merge July 17, 2026 02:50
@eric-wang-1990
eric-wang-1990 added this pull request to the merge queue Jul 17, 2026
Merged via the queue into main with commit d1fe81b Jul 17, 2026
56 checks passed
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.

2 participants