Task status on pull requests
The optional status badge shows a task's stage on its pull request. CodeHerder no longer posts a status check. Remove it from required checks.
CodeHerder can show a task’s state on the pull or merge request that the task opened. It does this with a status badge. The badge is a small image in the description of the pull or merge request. It is off by default.
The badge shows only a fixed set of words. It never shows the task title, the workspace, people, agent names, costs, or the text of a comment or blocker.
The status check is retired
CodeHerder no longer posts a check named CodeHerder on pull and merge requests. A check that waits for the end of a task could hold a merge that the task itself needed.
- CodeHerder posts no new
CodeHerdercheck run or commit status. - On each open pull or merge request that had one, CodeHerder posted one last state. It is neutral on a GitHub check run, and success on a GitHub or GitLab commit status. The text reads
CodeHerder no longer posts this check. - A closed or merged request keeps whatever state it had.
Remove CodeHerder from your required checks. If you added it to a GitHub branch protection rule or ruleset, or to a GitLab merge check, remove it now. A check that nothing posts any more never turns green on a new commit, so it holds every new merge.
The --pr-status-checks flag of ch workspace edit and the PR status checks setting are gone.
What the badge shows
The badge image reads CodeHerder | <stage> · <wait category>. For example:
CodeHerder | review · needs your answer
Stage words
| Word | Meaning |
|---|---|
plan |
The task is being planned, triaged, or a bug is being reproduced. |
code |
The task is being built. |
review |
The task is in review. |
merge |
The task is merging. |
verify |
The task is being verified after the merge. |
done |
The task is finished. |
cancelled |
The task is cancelled. |
A stage you named yourself shows as todo, in progress or done, depending on what kind of stage it is. A blocked task shows the stage it left.
Why a task waits
When a task waits, the text adds one reason after the stage. If more than one reason applies, CodeHerder shows the first in this list:
| Reason | Meaning |
|---|---|
needs your answer |
An agent asked a question and a person has not answered. See When an agent needs your input. |
waiting on dependency |
The task waits for another task. See Blockers. |
release wait |
The agent stopped and waits for new input. |
in review |
A move to the next stage waits for a person to approve it. See Approvals. |
paused |
Any other hold on the task. |
A finished or cancelled task shows no reason.
When the badge shows unknown
The badge reads unknown when it has nothing to show. This happens when:
- The workspace has the badge turned off.
- Someone reset the link. The old link no longer works.
- The task is archived.
- The link is not one CodeHerder issued.
Turn the badge on or off
Only a workspace owner or admin can change this.
- Open Settings → General.
- Go to the Pull and merge requests section.
- Select Add a status badge to pull and merge request descriptions.
Members who cannot change the setting see only whether the badge is enabled or disabled.
Or run:
ch workspace edit <workspace> --pr-status-badge true
Use false to turn it off. The setting applies to that workspace only. A group does not pass it down to its workspaces.
With the badge on, an agent adds the badge line to the description next to the task link when it opens the request. CodeHerder does not edit a description later.
When you turn the badge off, the image shows unknown the next time it loads. The agent removes the line the next time it edits the description. Each task keeps its link. If you turn the badge on again, the same link shows the live badge.
A task gets its link the first time an agent starts on it with the badge on. You can also make one yourself with ch task badge <taskId> --reset.
Show or reset a task’s badge link
ch task badge <taskId>
ch task badge <taskId> --reset
The first command shows whether the workspace turned the badge on, and the image link. If the task has no link yet, it says so instead. You need access to the task. The second command makes a new link. The old link then shows unknown. It needs write access to the task. Reset the link if you shared it with someone by mistake.
Anyone who has the image link can see the badge. It shows only the fixed words above.
On a self-hosted server
GitHub loads the image through its own image proxy. That proxy must reach the /b/ path of your server from the public internet, or the image does not load. See Self-hosted deployment.
Troubleshooting
- The merge stage waits on a
CodeHerdercheck.CodeHerderis still a required check. Remove it from the required checks. ch task badgesays there is no badge token yet. No agent has started on the task with the badge on. Turn the badge on, then runch task badge <taskId> --resetto make a link.- The badge reads
unknown. See When the badge shows unknown. - The badge image is broken on a self-hosted server. The
/b/path is not public. See On a self-hosted server.
Last updated