Skip to main content

Module answer

Module answer 

Source
Expand description

Answering what an issue asks of you.

An issue that names you and asks you something is waiting on you and on nobody else. This finds the places on an issue that mention the viewer, has one agent draft an answer to each question put to the viewer with the code open, and has the other check every one. A question of fact both agents agree on is answered, all of them in one comment. Anything that asks the viewer to decide, commit, or give a view is never answered in their name: it is left for them, with what the agents found.

spar listen runs this unattended, under the viewer’s account, so the guards against it answering itself are the design rather than a detail. A mention is judged once, whatever moves the thread afterwards. Nothing spar composed, on anybody’s account, is ever taken for a question. The reply mentions nobody. And the listener stops after max_answers runs on one issue until a person runs this by hand.

Structs§

Mention
One place on an issue that names the viewer and has not been judged.
Mode
Settled
One question, and what the pair decided about it.

Functions§

answer_issue
answered_keys
The mention keys every answered marker in text names.
compose
The comment that answers the questions spar may answer, and names every mention this run judged. None when there is nothing to say: a mention that asked nothing, or asked only what is the viewer’s, gets no reply, since a reply saying so invites one back.
note_posted
Record the mentions a saved answer names as judged, once spar post has put it up. True when the text is an answer at all.
open_mentions
The mentions of the viewer on an issue that nobody has answered.
outstanding
What spar listen reads before it runs anything here, with gh alone: how many mentions on the issue are still open, and how many times the listener has already run this on it.
read_record
settle
Whether spar may answer one question, and if not, why it is the viewer’s.