Expand description
Reading what other people said on a pull request, and answering it.
This is the only GraphQL in spar, and it is one read and one mutation.
Everything else here is REST, which keeps the surface that can fail on an
old gh or a locked down Enterprise token down to two calls.
GraphQL is not a preference. REST has always served a pull request’s inline comments and has never served whether the thread they sit in is resolved, and resolved is the whole point: it is the one signal that is authoritative, shared between machines, and free.
Structs§
- Author
- Gathered
- What was found, and what was passed over.
- Pending
- One thing somebody said that spar has not answered.
- RawComment
- RawThread
- Thread
Comments
Enums§
- Comment
Kind - Where a comment lives, which is what decides how spar can answer it.
Functions§
- answered_
after - Whether anything the viewer wrote lands after
at. - gather
- Everything on this pull request or issue that spar has not answered.
- parse_
review_ threads - Pull the threads out of whatever
gh api graphql --paginateprinted. - same_
login - GitHub logins are case insensitive, and
gh api userand the GraphQLauthor.loginhave not always agreed on casing. A mismatch here means spar reads its own replies as requests, which does not terminate. - thread_
wants_ an_ answer - Whether a thread still wants an answer.
- threads_
from_ rest - Rebuild threads from the REST inline comments, for a host where the GraphQL query will not run.