UNPKG

codeowners-api

Version:

Simple module to interact with github codeowners

12 lines (11 loc) 370 B
import * as octokit from '@octokit/rest'; import { RepoInfo } from '../types'; export declare class CodeownerLocator { repo: RepoInfo; octo: octokit; auth?: octokit.Auth; constructor(repo: RepoInfo, auth?: octokit.Auth); private locateInDir(path); locateCodeownersFile(): Promise<string>; getCodeownersFile(): Promise<octokit.AnyResponse>; }