@probot/octokit-plugin-config
Version:
Get/set persisted configuration using YAML/JSON files in repositories
17 lines (16 loc) • 444 B
TypeScript
import type { Octokit } from "@octokit/core";
import type { ConfigFile } from "../types.js";
type Options = {
owner: string;
repo: string;
path: string;
ref?: string | undefined;
};
/**
* Load configuration from a given repository and path.
*
* @param octokit Octokit instance
* @param options
*/
export declare function getConfigFile(octokit: Octokit, { owner, repo, path, ref }: Options): Promise<ConfigFile>;
export {};