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

Function add

ng-dev/caretaker/handoff/update-github-team.ts:118–126  ·  view source on GitHub ↗
(username: string)

Source from the content-addressed store, hash-verified

116 const removed = current.filter((login) => !members.includes(login));
117 /** Add a user to the group. */
118 const add = async (username: string) => {
119 Log.debug(`Adding ${username} to ${fullSlug}.`);
120 await git.github.teams.addOrUpdateMembershipForUserInOrg({
121 org: git.remoteConfig.owner,
122 team_slug: group,
123 username,
124 role: 'maintainer',
125 });
126 };
127 /** Remove a user from the group. */
128 const remove = async (username: string) => {
129 Log.debug(`Removing ${username} from ${fullSlug}.`);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected