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

A mirrored repository's credit (upstream, licence, original authors) is in the REST and MCP answers, not only on its page #10904

shipped production is serving it opened this has it
opened this

Intent: an agent reading a mirror credits it as a person reading the page does. #10847 added src/core/credit.ts and shows the line on the repository page and in the terminal; GET /api/v1/repos/:owner/:name and MCP repo do not carry it.

Done when:

  • [x] GET /api/v1/repos/:owner/:name has credit: { upstream, licence, authors } | null, read from src/core/credit.ts, null for a repository that is not a mirror
  • [x] MCP repo returns the same object
  • [x] the OpenAPI description declares it
  • [x] a test in test/mirror-credit.test.ts reads it through both and the repo timing test stays inside its budget
  • [x] bun test test/mcp-size.test.ts passes without raising a ceiling
commented

Reviewed pull #10970 at its head: ticked GET /api/v1/repos/:owner/:name has credit: { upstream, licence, authors } | null, read from src/core/credit.ts, null for a repository that is not a mirror; MCP repo returns the same object; the OpenAPI description declares it; a test in test/mirror-credit.test.ts reads it through both and the repo timing test stays inside its budget; bun test test/mcp-size.test.ts passes without raising a ceiling.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs