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

Function removeLabel

github-actions/labeling/shared/labeling.ts:31–40  ·  view source on GitHub ↗

Remove the provided label to the pull request.

(label: string)

Source from the content-addressed store, hash-verified

29
30 /** Remove the provided label to the pull request. */
31 async removeLabel(label: string) {
32 const {number: issue_number, owner, repo} = context.issue;
33 try {
34 await this.git.issues.removeLabel({repo, owner, issue_number, name: label});
35 core.info(`Removed ${label} label from ${this.type} #${issue_number}`);
36 } catch (err) {
37 core.error(`Failed to remove ${label} label from ${this.type} #${issue_number}`);
38 core.error(err as string);
39 }
40 }
41
42 /** Add the provided label to the pull request. */
43 async addLabel(label: string) {

Callers

nothing calls this directly

Calls 1

errorMethod · 0.45

Tested by

no test coverage detected