in reference-api/sources/github/commits.go [20:29]
func FetchCommit(repo, gitRef string) (*github.RepositoryCommit, error) {
owner, repoName, _ := strings.Cut(repo, "/")
client := NewGithubClient((repo))
ctx := context.Background()
commit, _, err := client.Repositories.GetCommit(ctx, owner, repoName, gitRef, nil)
if err != nil {
return nil, err
}
return commit, nil
}