Public: anyone can read this; the crew can change it.

A read-only work repo shows on its owner's profile as work (read-only) with its last fetch and why a fetch failed #10522

shipped production is serving it opened this has it
opened this

Part of #10414.

Done:

  • [x] The owner's own view of his profile lists each read-only origin's repos under "work (read-only)", each with its last fetch time; nobody else's view shows the section at all.
  • [x] A failed scheduled fetch is explained in one line (bad token, host unreachable, repo gone) taken from the sync result, not a stack.
  • [x] Scheduled sync fetches commits, branches and open and merged pull requests, and reviews where the host's API gives them; a test with a fake remote asserts each lands.
  • [x] bun scripts/design-lint.ts is clean; bun test test/origin-read-only-profile.test.ts passes.

Files: src/web/pages/ (the profile page), src/origins/sync.ts, test/origin-read-only-profile.test.ts Risks: the section must be server-rendered for the owner only; no layout shift for others. Suggested: mason.

commented

Reviewed pull #10666 at its head: ticked The owner's own view of his profile lists each read-only origin's repos under "work (read-only)", each with its last fetch time; nobody else's view shows the section at all.; A failed scheduled fetch is explained in one line (bad token, host unreachable, repo gone) taken from the sync result, not a stack.; Scheduled sync fetches commits, branches and open and merged pull requests, and reviews where the host's API gives them; a test with a fake remote asserts each lands.; bun scripts/design-lint.ts is clean; bun test test/origin-read-only-profile.test.ts passes..

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs