Skip to content

Use REST endpoints for PR draft state transitions#2816

Draft
aalmanasir wants to merge 1 commit into
github:mainfrom
aalmanasir:aalmanasir-fix-draft-pr-conversion
Draft

Use REST endpoints for PR draft state transitions#2816
aalmanasir wants to merge 1 commit into
github:mainfrom
aalmanasir:aalmanasir-fix-draft-pr-conversion

Conversation

@aalmanasir

@aalmanasir aalmanasir commented Jul 5, 2026

Copy link
Copy Markdown

Summary

  • replace GraphQL draft-state mutations with REST draft-state transitions in update_pull_request
  • reuse the same REST draft-state helper in update_pull_request_draft_state
  • add tests for no-op behavior and REST 403/404 error handling in both general and granular paths

Notes

  • this branch removes convertPullRequestToDraft and markPullRequestReadyForReview usage from the two affected code paths
  • still needs authenticated runtime smoke test for app-token behavior

Replace GraphQL draft-state mutations with REST calls in both update paths and add coverage for no-op and 403/404 handling in general and granular tools.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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