Repository navigation
Repo health: read README, tests and builds instead of showing dashes - #57
Merged
Merged
Conversation
Three of Repo health's five items were never read: every listing showed
"README present —", "Tests present —" and "Builds —", even with a README.
- gateway: observeRepo also reads the default branch's tree (README at the
root; tests by common conventions) and its head's check runs (any failure
is a no; a success with none failed is a yes). Two more calls to the same
pinned host, using the branch GitHub named. Private repos, bad branch names,
outages and truncated trees without an answer stay null ("not read").
- core/db: three observed columns (migration 2325), written with the rest of
the observation, on the profile and the catalog card.
- public profile and catalog API (1.7.0): repoHealth {readme, tests, builds}.
- launchHealth reads them; a null or a document cached before them is still
a dash. Publish disclosure names the new line.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Owner request: fix the dashes in Repo health. On every listing, Builds, README present and Tests present showed "—", even for repos with a README (e.g. broke-crm). Nothing ever read them:
launchHealthhard-coded them as unobserved.How they're read now (hourly sweep and the maintainer's "Check repository")
git/trees/{default}?recursive=1README*at the roottest(s),__tests__,spec(s),e2eortestingfolder; or*.test.*,*.spec.*,*_test.go,test_*.pycommits/{default}/check-runsapi.github.comhost. The branch comes from GitHub's own answer, is shape-checked and URL-encoded. Nothing a maintainer typed reaches the URL.Data
2325_openproduct_repo_health: three nullable columns,repo_has_readme,repo_has_testsandrepo_builds_passing. They are written with the rest of the observation and never merged with older values.repoHealth {readme, tests, builds}.repoHealth, with a changelog entry.repoHealthstill draws dashes.Tests
contest.tsandlatest/; check conclusionsTypecheck and lint are clean (0 errors). Two pg suites failed once in the full parallel run while the Postgres template rebuilt with the new migration, and both pass alone.
OWASP A10 (SSRF): no new host. The owner/repo slugs are already strict, and the branch is validated and encoded.
Milestone order is not changed here. On request it stays the owner's order: Studio's milestone manager already adds, edits, deletes, reorders and ships milestones, and posts are independent of them (
ON DELETE SET NULL).🤖 Generated with Claude Code