doctor project
holocron doctor projectholocron doctor project --post # also share the failing rows in #alertsholocron doctor project --post deploys # ... or in another channelReads providers.projects.boards (a list of { template, name }), finds each board by name among the open boards of the owner and compares it with its template, one row per comparison. It changes nothing and exits non-zero while a row fails. The board, its template and the projects capability are specified in SPEC-0020.
✓ v5: board exists and is open https://github.com/orgs/acme/projects/5 ✓ v5: statuses 5 in order ✓ v5: field Priority 3 options in order ✓ v5: view Active board, -status:Someday -status:Done ✗ v5: rule Auto-add sub-issues to project 1 problem(s) - rule Auto-add sub-issues to project is off · v5: extra statuses info: 1 status(es) not in the template (never deleted) - Parked · v5: item without a status info: 1 item(s); `reconcile project` fixes this - #7 an orphaned issue
5 ok, 1 fail, 2 skippedThe rows
Section titled “The rows”| Row | Fails when |
|---|---|
<board>: board exists and is open |
no open board has the name (a closed one is named as such) |
<board>: statuses |
a status of the template is missing, or the statuses are not in the template’s order |
<board>: field <name> |
the field is missing, has another type, or its options are missing or out of order |
<board>: view <name> |
the view is missing, or has another layout or (when the template sets one) another filter |
<board>: rule <name> |
an automation rule the template lists is missing or off |
template file <file> |
a file in the templates directory is not valid JSON or not a valid template; the board rows still run |
<board>: template <name> |
the board names a template that is neither a built-in nor a file |
Information, never failures
Section titled “Information, never failures”What the board has beyond its template (extra statuses, extra fields, extra views) and the items reconcile project would fix are info rows. They count as skipped and never fail the run, and the doctor never deletes anything. The item rows read the board’s items through the provider:
item without a statusclosed item not in a done statusopen item with an open blocker but not in a blocked statusblocked item with no open blocker
A clean rule is an ok row. A provider that cannot list items gets one skipped row for the board’s items.
--post [channel]
Section titled “--post [channel]”After the run, posts the failing rows (or only the summary when every row passed) as the notifications provider’s bot, like doctor notifications --post. The default channel is alerts. A post that cannot be made (no notifications provider, or one that cannot post as a bot) is reported on a line of its own and leaves the result and the exit code as they were.
- No
projectsprovider (or one that could not load): a skip with the reason. - No boards declared in
providers.projects.boards: a skip. - Options that do not read (
boardsis not a list, …): a row in the fail state listing every problem.
holocron doctor --all runs it with the other deep checks.
Related: move issues, doctor, doctor notifications.