Implement the reviewer workflow for commenting and reviewing pull requests.
Tasks#
- Implement
tangled pr comment <id> [--body <body> | --body-file <file> | -F -]command.- Create a
sh.tangled.repo.pull.commentrecord usingcom.atproto.repo.createRecordwith fields:pull(AT-URI of the PR),body, andcreatedAt.
- Create a
Context#
It doesn't look like there's currently a way to leave comments on lines on tangled.org. See this issue for context and updates:
https://tangled.org/tangled.org/core/issues/358
Reference#
Example sh.tangled.repo.pull.comment record shape (from live data):
{
"$type": "sh.tangled.repo.pull.comment",
"pull": "at://<did>/sh.tangled.repo.pull/<rkey>",
"body": "...",
"createdAt": "<ISO datetime>"
}