Github Get Latest Sha
github_get_latest_shaFetch the SHA of the newest commit on a branch, tag, or default branch for release and PR analysis workflows.
Instructions
Fetches the SHA of the newest commit on ref, or on the default branch when ref is omitted. Returns None if the repository has no commits. The answer is a reading rather than a pin, so a push landing afterwards moves it.
Workflow and conventions: github_get_skill('release-management').
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Branch, tag or SHA to read the newest commit of. Omit for the default branch | |
| repo_name | Yes | ||
| repo_owner | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |