Skip to content

feat(git): issue/PR comment methods on the GitProvider contract#33

Merged
apicircle-dev merged 1 commit into
mainfrom
feat/gitprovider-issue-comments
Jul 25, 2026
Merged

feat(git): issue/PR comment methods on the GitProvider contract#33
apicircle-dev merged 1 commit into
mainfrom
feat/gitprovider-issue-comments

Conversation

@apicircle-dev

Copy link
Copy Markdown
Contributor

Add listIssueComments / createIssueComment / updateIssueComment to GitHubClient (thin REST wrappers over the GitHub issue-comments API — a PR is an issue for /repos/{o}/{r}/issues/{n}/comments), returning a normalized IssueCommentSummary { id, htmlUrl, body }. All three join the GitProviderMethod union, so they become part of the host-agnostic GitProvider contract (Pick<GitHubClient, GitProviderMethod>) any alternate host can satisfy.

Additive: no existing method, type, or behaviour changed. This is the write capability an edition's PR-review write-back — post the review as an idempotent PR comment (list → find a marker → update, else create) — composes on top of; nothing in Studio calls it yet.

100% patch coverage (3 new tests in api.test.ts covering URL/method/body/return for each); git tsc + eslint + knip clean.

Add `listIssueComments` / `createIssueComment` / `updateIssueComment` to
`GitHubClient` (thin REST wrappers over the GitHub issue-comments API — a PR is
an issue for `/repos/{o}/{r}/issues/{n}/comments`), returning a normalized
`IssueCommentSummary` { id, htmlUrl, body }. All three join the
`GitProviderMethod` union, so they become part of the host-agnostic `GitProvider`
contract (`Pick<GitHubClient, GitProviderMethod>`) any alternate host can satisfy.

Additive: no existing method, type, or behaviour changed. This is the write
capability an edition's PR-review write-back — post the review as an idempotent PR
comment (list → find a marker → update, else create) — composes on top of; nothing
in Studio calls it yet.

100% patch coverage (3 new tests in api.test.ts covering URL/method/body/return
for each); git tsc + eslint + knip clean.
@apicircle-dev
apicircle-dev merged commit cd25eec into main Jul 25, 2026
16 checks passed
@github-actions

Copy link
Copy Markdown

E2E coverage (strict mode)

Metric This PR main Δ
Live coverage 78.24% (2949/3769) 78.24% (2949/3769) ±0.00pp (+0)
Scaffold-only 93
Manual-residue 727
Passing TC-IDs this run 0

Live coverage unchanged.
Definitions: live = inline tc() / tcRange() in non-fixme test() calls. Scaffold-only = test.fixme() placeholders. Manual-residue = explicitly excluded from automation (see e2e/web/manual-residue.ts).
Full report in the e2e-coverage-${{ run_id }} artifact.

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.

1 participant