codeowners-api
Version:
Simple module to interact with github codeowners
12 lines (11 loc) • 432 B
TypeScript
import { Auth } from '@octokit/rest';
import { RepoInfo } from './types';
export declare class Codeowner {
repo: RepoInfo;
auth?: Auth;
constructor(repoParams: RepoInfo, auth?: Auth);
codeownersFileExists(): Promise<boolean>;
getCodeownersFile(): Promise<string>;
filterForAuthenticatedUser(paths: string[]): Promise<string[]>;
filterForCodeOwners(paths: string[], users: string[]): Promise<string[]>;
}