MCPcopy Create free account
hub / github.com/angular/dev-infra / getLatestShas

Method getLatestShas

ng-dev/utils/g3.ts:138–150  ·  view source on GitHub ↗
(git: AuthenticatedGitClient)

Source from the content-addressed store, hash-verified

136 }
137
138 static getLatestShas(git: AuthenticatedGitClient) {
139 /** The latest sha for the g3 branch. */
140 const g3 = this.getShaForBranchLatest(git, 'g3');
141 /** The latest sha for the main branch. */
142 const main = this.getShaForBranchLatest(git, git.mainBranchName);
143
144 if (g3 === null || main === null) {
145 Log.debug(`Either the g3 or ${git.mainBranchName} was unable to be retrieved`);
146 return null;
147 }
148
149 return {g3, main};
150 }
151}

Callers 1

retrieveDiffStatsMethod · 0.95

Calls 1

getShaForBranchLatestMethod · 0.95

Tested by

no test coverage detected