Skip to content

Resolve immutable snippet sources - #1331

Draft
danielporterda wants to merge 1 commit into
snippet-validation-ci-gatefrom
snippet-resolve-immutable-source
Draft

Resolve immutable snippet sources#1331
danielporterda wants to merge 1 commit into
snippet-validation-ci-gatefrom
snippet-resolve-immutable-source

Conversation

@danielporterda

@danielporterda danielporterda commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

What changed

  • reads an immutable snippet source at the exact commit declared in its full GitHub blob reference
  • returns the resolved commit and bytes
  • enforces a configurable source-size limit

Why

This is the smallest production source-resolution path and does not involve pull requests, local checkouts, HTTP implementation, or extraction.

Validation

  • 2 focused pytest tests
  • Ruff
  • mypy
  • git diff --check

Signed-off-by: danielporterda <daniel.porter@digitalasset.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant