feat: Add stacked pull request endpoints - #4436
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #4436 +/- ##
=======================================
Coverage 97.55% 97.56%
=======================================
Files 194 195 +1
Lines 19892 19962 +70
=======================================
+ Hits 19406 19476 +70
Misses 268 268
Partials 218 218 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
gmlewis
left a comment
There was a problem hiding this comment.
Thank you, @Bortlesboat!
LGTM.
Awaiting second LGTM+Approval from any other contributor to this repo before merging.
|
All three review items are addressed in signed commit |
Fixes #4435
Add typed
PullRequestsServicesupport for GitHub's five stacked pull requestREST endpoints:
The change keeps pull-request membership metadata separate from the endpoint
stack resource, adds typed request and list-option types, handles both
updated-stack and
204 No Contentunstack responses, and regenerates accessorsand iterators. Request methods,
paths, query parameters, bodies, response decoding, and failure paths have
focused coverage.
API contract: https://docs.github.com/en/rest/pulls/stacks?apiVersion=2022-11-28
Validation:
script/fmt.shscript/lint.shacross all 12 modulesscript/test.sh -covermode atomic ./...across all 12 modulesgit diff --checkThe local Go configuration has CGO disabled, so a race build was not available;
the full non-race suite passed.
AI assistance: OpenAI Codex helped draft the API bindings, tests, generated-file
workflow, and PR description. I reviewed the rendered diff and validation
evidence, understand every submitted line, and take responsibility for the
contribution and review follow-up.