forked from octoherd/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
26 lines (22 loc) · 1012 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import { octoherd } from "./index.js";
import { components } from "@octokit/openapi-types";
export { Octokit } from "@octoherd/octokit";
export type Repository = components["schemas"]["repository"];
export type OctoherdOptions = {
/** The Octoherd Script function */
octoherdScript: Function;
/** Personal Access Token: Requires the "public_repo" scope for public repositories, "repo" scope for private repositories. */
octoherdToken: string;
/** Array of repository names in the form of "repo-owner/repo-name". To match all repositories for an owner, pass "repo-owner/*" */
octoherdRepos: string[];
/** Cache responses for debugging */
octoherdCache: boolean;
/** Bypass confirmation prompts for mutating requests */
octoherdBypassConfirms: boolean;
/** `octoherdScript` may accept its own options */
[key: string]: unknown;
};
/**
* Find all releases in a GitHub repository or organization after a specified date
*/
export async function octoherd(options: OctoherdOptions): void;