fix(pr): comments posted by pr +comment are invisible on the PR page #376

Merged
wbtiger merged 1 commits from Taoyouce/gitlink-cli:fix/pr-comment-endpoint into master 2026-07-14 20:36:55 +08:00

1 Commits

Author SHA1 Message Date
1os21ka23r9navae6mrro 3665a8698b fix(pr): post comments to the pull request journals endpoint
pr +comment (and the conversation note posted by pr +review) wrote to
POST /api/v1/:owner/:repo/issues/:issue_id/journals, which attaches
the journal to the underlying issue record. Those journals never show
up in GET /pulls/:id/journals — the list the PR conversation is built
from — so comments posted by the CLI were invisible on the pull
request page.

Post to POST /api/v1/:owner/:repo/pulls/:id/journals (payload key
"note") instead, which also drops the extra PR-detail fetch that was
only needed to resolve the issue id.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-07-08 13:52:32 +00:00