resolve_ref
Resolve a git branch, tag, or partial SHA into its full 40-character commit SHA before running queries that need the canonical, immutable commit identifier.
Instructions
Resolves a git reference (branch name, tag, or partial SHA) to a full 40-character commit SHA. Use before queries when you need the canonical immutable commit identifier. Returns {sha, refType}. Fast and cached.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Branch name, tag name, or commit SHA to resolve. | |
| repo | Yes | Repository name. | |
| owner | Yes | Repository owner (organization or user). |