You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the result is **non-null** (auto-merge is enabled) **and** the review includes comments, warn the user:
164
+
165
+
> **Warning:** This PR has auto-merge enabled. Approving it will likely trigger an automatic merge before the author has a chance to address your review comments. Would you like to:
166
+
>
167
+
> 1.**Approve anyway** — submit as APPROVE (auto-merge may proceed immediately).
168
+
> 2.**Downgrade to comment** — submit as COMMENT instead so the author can address feedback first.
169
+
170
+
Wait for the user's response before proceeding. If they choose option 2, use `event: "COMMENT"` instead of `"APPROVE"`.
171
+
172
+
### Posting the review
173
+
155
174
1.**Create a pending review**:
156
175
Use `mcp_github_pull_request_review_write` with method `create` (no `event` parameter) to start a pending review.
157
176
@@ -165,7 +184,9 @@ Once the user has selected which findings to include:
165
184
166
185
3.**Submit the review**:
167
186
Use `mcp_github_pull_request_review_write` with method `submit_pending`:
168
-
- If any comments were posted: `event: "COMMENT"`, with a summary body listing the number of issues found by category. Do not use `"REQUEST_CHANGES"` unless the user explicitly asks for it.
187
+
- If any comments were posted and the user explicitly asked to approve: use `event: "APPROVE"` only if auto-merge is not enabled on the PR, or the user confirmed they want to approve after seeing the auto-merge warning.
188
+
- If any comments were posted and the user did not ask to approve: use `event: "COMMENT"`.
189
+
- In either case, include a summary body listing the number of issues found by category. Do not use `"REQUEST_CHANGES"` unless the user explicitly asks for it.
169
190
- If the user chose to add none: do not create or submit a review. Confirm to the user that no review was posted.
0 commit comments