Github Get Latest Sha
github_get_latest_shaGet the commit SHA at the tip of a specified branch, tag, or the default branch of a GitHub repository. Returns None when the repository has no commits.
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.
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 |