in src/localizationStringsUploader.ts [263:287]
public static async GetShaModelForCurrentCommit(github: GitHubApi, repo: string, ref: string): Promise<ShaModel> {
let headRefSha: string = "";
return github.gitdata.getReference({
owner: LocalizationStringsUploader.pbicvbot,
repo: repo,
ref: ref
})
.then((ref) => {
headRefSha = ref.data.object.sha;
return github.gitdata.getCommit({
owner: LocalizationStringsUploader.pbicvbot,
repo: repo,
sha: headRefSha
});
})
.then((commit) => {
return {
treeSha: commit.data.tree.sha,
commitSha: commit.data.sha,
headCommitSha: headRefSha
}
});
}