[BUG] Claude publishing PR comments while it was asked to only create draft comments

Status Closed — not planned
Reported on v2.1.220
Maintainer reply None cached
Activity 2 comments · opened Jul 31, 2026 · closed Aug 23, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Asked Claude Code to "start a draft review and add comments" on a GitHub Enterprise PR. It called gh api pulls/{n}/reviews with "event": "COMMENT" and a "draft": true field it assumed would keep it pending. draft isn't a real parameter on that endpoint, and setting event submits the review immediately — so a live review with inline comments was published under my account without confirmation. The review couldn't be un-published or deleted afterward since GitHub Enterprise's delete-review API only works on PENDING reviews, not submitted ones.

What Should Happen?

PR comments should have been created in a draft PR review.

Error Messages/Logs

Steps to Reproduce

ask claude to 'start a draft review and add comments'

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.220

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗