@google-automations/label-utils
Version:
Utilities for github labels
9 lines (8 loc) • 351 B
TypeScript
import { GCFLogger } from 'gcf-utils';
import { Octokit } from '@octokit/rest';
export interface Label {
name: string;
description: string;
}
export declare function getLabelColor(name: string): string;
export declare function syncLabels(octokit: Octokit, owner: string, repo: string, labels: Array<Label>, logger?: GCFLogger): Promise<void>;