1 | export default function parseArgs(testArgs?: string[]): ({
|
2 | command: string;
|
3 | githubApi?: string | undefined;
|
4 | plugins?: string[] | undefined;
|
5 | } & IRepoArgs & ILogArgs & ICreateLabelsCommandOptions) | ({
|
6 | command: string;
|
7 | githubApi?: string | undefined;
|
8 | plugins?: string[] | undefined;
|
9 | } & IRepoArgs & ILogArgs & ILabelCommandOptions) | ({
|
10 | command: string;
|
11 | githubApi?: string | undefined;
|
12 | plugins?: string[] | undefined;
|
13 | } & IRepoArgs & ILogArgs & IVersionCommandOptions) | undefined;
|
14 | interface IAuthorArgs {
|
15 | name?: string;
|
16 | email?: string;
|
17 | }
|
18 | interface IRepoArgs {
|
19 | owner?: string;
|
20 | repo?: string;
|
21 | }
|
22 | interface ILogArgs {
|
23 | verbose?: boolean;
|
24 | veryVerbose?: boolean;
|
25 | }
|
26 | export interface IInitCommandOptions {
|
27 | onlyLabels?: boolean;
|
28 | dryRun?: boolean;
|
29 | }
|
30 | export interface ICreateLabelsCommandOptions {
|
31 | dryRun?: boolean;
|
32 | }
|
33 | export interface ILabelCommandOptions {
|
34 | pr?: number;
|
35 | }
|
36 | export interface IPRCheckCommandOptions {
|
37 | pr: number;
|
38 | url?: string;
|
39 | skipReleaseLabels?: string[];
|
40 | context?: string;
|
41 | dryRun?: boolean;
|
42 | }
|
43 | export interface IPRCommandOptions {
|
44 | sha?: string;
|
45 | pr?: number;
|
46 | url: string;
|
47 | state: 'pending' | 'success' | 'error' | 'failure';
|
48 | description: string;
|
49 | context: string;
|
50 | dryRun?: boolean;
|
51 | }
|
52 | export interface IVersionCommandOptions {
|
53 | skipReleaseLabels?: string[];
|
54 | onlyPublishWithReleaseLabel?: boolean;
|
55 | }
|
56 | export interface IChangelogOptions extends IAuthorArgs {
|
57 | noVersionPrefix?: boolean;
|
58 | jira?: string;
|
59 | dryRun?: boolean;
|
60 | from?: string;
|
61 | to?: string;
|
62 | message?: string;
|
63 | }
|
64 | export interface IReleaseCommandOptions extends IAuthorArgs {
|
65 | noVersionPrefix?: boolean;
|
66 | jira?: string;
|
67 | dryRun?: boolean;
|
68 | useVersion?: string;
|
69 | slack?: string;
|
70 | }
|
71 | export interface ICommentCommandOptions {
|
72 | pr: number;
|
73 | message: string;
|
74 | context?: string;
|
75 | dryRun?: boolean;
|
76 | }
|
77 | export interface IShipItCommandOptions {
|
78 | dryRun?: boolean;
|
79 | }
|
80 | declare type GlobalFlags = {
|
81 | command: string;
|
82 | githubApi?: string;
|
83 | plugins?: string[];
|
84 | } & IRepoArgs & ILogArgs;
|
85 | export declare type ArgsType = GlobalFlags & (IInitCommandOptions | ICreateLabelsCommandOptions | ILabelCommandOptions | IPRCheckCommandOptions | IPRCommandOptions | ICommentCommandOptions | IReleaseCommandOptions | IVersionCommandOptions | IShipItCommandOptions);
|
86 | export {};
|