Expand description
Replying to, resolving and unresolving threads.
Every request is checked against the PR before anything is posted, so a bad ID fails the whole call with nothing written. A thread someone already resolved, often a review bot after a push, still takes a reply and stays resolved. Writes then go one at a time and stop at the first failure. A retry is safe: a thread already resolved is not resolved again, and a reply whose exact text is already the thread’s last comment from the same user is not posted again.
Structs§
- Entry
- What to do to one thread.
- Options
- Outcome
- What happened to one thread, or in a dry run what would.
- Plan
Error
Functions§
- dry_run
- Fills in a dry run’s outcomes with what would happen.
- execute
- Carries out the plan through the PR’s host, stopping at the first failure. Returns whether every write succeeded.
- parse_
apply - Reads an
applyfile: a JSON list of{id, reply?, resolve?}. - parse_
id - A thread ID: the database ID of its first comment.
- plan
- Checks every entry against the PR and works out what is left to do.