Orrery.
← All Stars

public Star · 0.1.0

orrery/gh-file-at-ref

Fetch a public repo file pinned to an exact commit SHA.

Use this when

  • You need file contents at a specific revision for review or diffing
  • You are building evidence that must not drift from a pinned commit
  • You want a bounded allowlisted GitHub file, not arbitrary paths

Not for

  • Private repositories
  • Repos outside the published allowlist
  • Branch or tag refs that are not a full 40-char commit SHA

Inputs / Outputs

Inputs

NameTypeNotes
target required string allowlisted named file target
ref required string full 40-char commit SHA

Outputs

NameTypeNotes
content string
envelope signed-envelope

Example

{
  "method": "tools/call",
  "params": {
    "name": "get",
    "arguments": {
      "target": "orrery-readme",
      "ref": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
    }
  }
}

Tools

get Get a fixed GitHub file pinned to a full commit SHA · schema
{
  "type": "object",
  "properties": {
    "target": {
      "type": "string",
      "enum": [
        "orrery-pyproject",
        "orrery-readme"
      ],
      "default": "orrery-readme"
    },
    "ref": {
      "type": "string",
      "pattern": "^[0-9a-f]{40}$"
    }
  },
  "required": [
    "target",
    "ref"
  ]
}

In constellations

No constellation references this Star yet.