Replies

Reply on a Hunkbot comment, and Hunkbot checks your reply against the code, answers in the thread, and resolves it where the fault is gone.

Reply on a Comment

  • Fixed in <commit>: you fixed it.
  • Partly fixed: <why>: you fixed part of it, on purpose.
  • Won't fix: <why>: it is not a fault here, or not worth fixing.

Answer the Replies

hunkbot respond reads every thread on Hunkbot's comments whose last word is a person's. It checks the head out, and a pass checks each reply against the code at the pull request's head.

hunkbot respond 12

Outcomes

addressed

The code shows the fault is gone. The thread is resolved, the comment marked addressed.

withdrawn

Your reason holds once the code is read: the finding was wrong. Hunkbot says so, and resolves the thread.

not addressed

The fault still stands. Hunkbot says exactly what is left, with the line.

answered

A question, or a word that needs an answer but no verdict.

Learnings

Where a reply declines a finding with a reason that holds once the code is read, the finding is withdrawn and the reason is kept as a rule, with the reply's link: in the team's repository, <owner>/.hunkbot, at learnings/<repository>.jsonl, where whoever replied has write access to the reviewed repository; otherwise on the machine that ran hunkbot respond. Hunkbot's answer in the thread says where it was kept. A reply that fixes the finding keeps no learning.

Every later review of the repository reads its learnings, its finders and its verifier alike, on every machine that reads the team's repository. See The Team's Repository.

hunkbot team learnings acme/api                 # the team's, then this machine's, numberedhunkbot team learnings acme/api --share --yes   # this machine's committed to acme/.hunkbothunkbot team learnings acme/api --remove 2 --yes

Each reply is counted as feedback too.