MCPcopy Index your code
hub / github.com/wei/pull / addLabel

Method addLabel

src/processor/pull.ts:445–459  ·  view source on GitHub ↗
(
    label: string | undefined,
    color = "ededed",
    description = "",
  )

Source from the content-addressed store, hash-verified

443 }
444
445 private async addLabel(
446 label: string | undefined,
447 color = "ededed",
448 description = "",
449 ): Promise<void> {
450 if (!label) return;
451
452 await this.github.issues.createLabel({
453 owner: this.owner,
454 repo: this.repo,
455 name: label,
456 color,
457 description,
458 });
459 }
460
461 private async mergePR(
462 prNumber: number | undefined,

Callers 1

handleMergeConflictMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected