Skip to content

verify: REST in_reply_to + pending review の挙動検証(merge 予定なし)#128

Closed
flexphere wants to merge 1 commit into
mainfrom
verify/rest-in-reply-to-with-pending
Closed

verify: REST in_reply_to + pending review の挙動検証(merge 予定なし)#128
flexphere wants to merge 1 commit into
mainfrom
verify/rest-in-reply-to-with-pending

Conversation

@flexphere
Copy link
Copy Markdown
Owner

目的

PR #127 で実装した GraphQL ベースの reply 経路が必要かどうかを再検証する。

検証対象: `POST /pulls/{pr}/comments` + `in_reply_to` パラメータ が pending review 存在下で 422 を返すか、それとも動作するか。

期待される結果(仮説)

REST API 内部では reply 系も「新規 review を作成する」経路を通るため 422(user_id can only have one pending review per pull request)になると予想。

検証で 422 確定 → PR #127 を採用。
万が一動作 → PR #127 を簡略化する余地あり。

注意

このブランチは検証専用で merge する予定はない。検証後は close & delete する。


Generated with Claude Code

PR #127 の検証用に作成した一時ブランチ。
REST `POST /pulls/{pr}/comments` + `in_reply_to` パラメータが
pending review 中に動作するかを確認するための足場。

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings April 27, 2026 09:19
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

pending review 存在下での reply 挙動(REST in_reply_to が 422 になるか)を再検証するための検証用PRで、関連ロジックの前提となる is_null ヘルパーの説明を明確化しています。

Changes:

  • M.is_null(v) の戻り値条件(nil / vim.NIL のとき true)をコメントで明文化

@flexphere
Copy link
Copy Markdown
Owner Author

検証完了。POST /pulls/{pr}/comments + in_reply_to も pending review 中は 422 (user_id can only have one pending review per pull request) で失敗することを確認。PR #127 の GraphQL 経路の採用が正しいと判断。

@flexphere flexphere closed this Apr 27, 2026
@flexphere flexphere deleted the verify/rest-in-reply-to-with-pending branch April 27, 2026 09:21
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