Description Usage Arguments Details Value Examples
This function returns the commit SHA given a git reference. A reference can be either a SHA, branch or tag. If it is a branch then the head commit is used.
1 |
ref |
(string) Either a SHA, branch or tag used to identify the commit. |
repo |
(string) The repository specified in the format: |
... |
Parameters passed to |
For more details see the GitHub API documentation:
view_sha()
returns the commit SHA as a string.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.