@donmahallem/label-pr
Version:
Helpers for working with github issue labels
22 lines (21 loc) • 539 B
TypeScript
/**
* Package @donmahallem/label-pr
* Source https://donmahallem.github.io/js-libs/
*/
import { GithubLabel } from '@donmahallem/label-gh';
import { Octokit } from '@octokit/core';
export interface IOpts {
/**
* Issue or pull request number
*/
pull_number: number;
/**
* Repository owner
*/
owner: string;
/**
* Repository name
*/
repo: string;
}
export declare const syncPRLabels: (octokit: Octokit, opts: IOpts, packageLabel: string[], prefix?: string) => Promise<GithubLabel[]>;