MCPcopy Index your code
hub / github.com/angular/dev-infra / getGroupsFromYaml

Function getGroupsFromYaml

ng-dev/pullapprove/parse-yaml.ts:41–47  ·  view source on GitHub ↗
(pullApproveYamlRaw: string)

Source from the content-addressed store, hash-verified

39
40/** Parses all of the groups defined in the pullapprove yaml. */
41export function getGroupsFromYaml(pullApproveYamlRaw: string): PullApproveGroup[] {
42 /** JSON representation of the pullapprove yaml file. */
43 const pullApprove = parsePullApproveYaml(pullApproveYamlRaw);
44 return Object.entries(pullApprove.groups).reduce((groups, [groupName, group]) => {
45 return groups.concat(new PullApproveGroup(groupName, group, groups));
46 }, [] as PullApproveGroup[]);
47}

Callers 2

verifyFunction · 0.85
verify.spec.tsFile · 0.85

Calls 2

parsePullApproveYamlFunction · 0.85
entriesMethod · 0.45

Tested by

no test coverage detected