1 | import { AuthorInformation, RepoInformation, GithubInformation, LogOptions, ReleaseCalculationOptions } from "./types";
|
2 | export interface ICreateLabelsOptions {
|
3 |
|
4 | dryRun?: boolean;
|
5 | }
|
6 | export interface ILabelOptions {
|
7 |
|
8 | pr?: number;
|
9 | }
|
10 | export interface IPRCheckOptions {
|
11 |
|
12 | pr?: number;
|
13 |
|
14 | url?: string;
|
15 |
|
16 | context?: string;
|
17 |
|
18 | dryRun?: boolean;
|
19 | }
|
20 | export interface IPRStatusOptions {
|
21 |
|
22 | sha?: string;
|
23 |
|
24 | pr?: number;
|
25 |
|
26 | url: string;
|
27 |
|
28 | state: "pending" | "success" | "error" | "failure";
|
29 |
|
30 | description: string;
|
31 |
|
32 | context: string;
|
33 |
|
34 | dryRun?: boolean;
|
35 | }
|
36 | export declare type IVersionOptions = ReleaseCalculationOptions & {
|
37 |
|
38 | from?: string;
|
39 | };
|
40 | interface Quiet {
|
41 |
|
42 | quiet?: boolean;
|
43 | }
|
44 | interface NoVersionPrefix {
|
45 |
|
46 | noVersionPrefix?: boolean;
|
47 | }
|
48 | interface DryRun {
|
49 |
|
50 | dryRun?: boolean;
|
51 | }
|
52 | interface ChangelogMessage {
|
53 |
|
54 | message?: string;
|
55 | }
|
56 | interface ChangelogTitle {
|
57 |
|
58 | title?: string;
|
59 | }
|
60 | interface Prerelease {
|
61 |
|
62 | prerelease?: boolean;
|
63 | }
|
64 | interface BaseBranch {
|
65 |
|
66 | baseBranch?: string;
|
67 | }
|
68 | export declare type IChangelogOptions = BaseBranch & ChangelogTitle & ChangelogMessage & Quiet & DryRun & NoVersionPrefix & Partial<AuthorInformation> & {
|
69 |
|
70 | from?: string;
|
71 |
|
72 | to?: string;
|
73 |
|
74 | noCommit?: boolean;
|
75 | };
|
76 | export declare type IReleaseOptions = BaseBranch & Prerelease & DryRun & NoVersionPrefix & Partial<AuthorInformation> & Partial<RepoInformation> & {
|
77 |
|
78 | from?: string;
|
79 |
|
80 | to?: string;
|
81 |
|
82 | useVersion?: string;
|
83 | };
|
84 | export declare type ICommentOptions = DryRun & {
|
85 |
|
86 | message?: string;
|
87 |
|
88 | pr?: number;
|
89 |
|
90 | context?: string;
|
91 |
|
92 | delete?: boolean;
|
93 |
|
94 | edit?: boolean;
|
95 | };
|
96 | export declare type IPRBodyOptions = Omit<ICommentOptions, "edit" | "delete">;
|
97 | export declare type ILatestOptions = BaseBranch & DryRun & Partial<AuthorInformation> & Prerelease & NoVersionPrefix & ChangelogTitle & ChangelogMessage & Quiet & ReleaseCalculationOptions & {
|
98 |
|
99 | noChangelog?: boolean;
|
100 | };
|
101 | export declare type IShipItOptions = ILatestOptions & {
|
102 | |
103 |
|
104 |
|
105 |
|
106 |
|
107 |
|
108 | onlyGraduateWithReleaseLabel?: boolean;
|
109 | };
|
110 | export declare type ICanaryOptions = Quiet & {
|
111 |
|
112 | dryRun?: boolean;
|
113 |
|
114 | pr?: number;
|
115 |
|
116 | build?: number;
|
117 |
|
118 | message?: string | "false";
|
119 |
|
120 | force?: boolean;
|
121 | };
|
122 | export declare type INextOptions = Quiet & {
|
123 |
|
124 | dryRun?: boolean;
|
125 |
|
126 | message?: string;
|
127 | };
|
128 | export interface IInfoOptions {
|
129 |
|
130 | listPlugins?: boolean;
|
131 | }
|
132 | export declare type GlobalOptions = {
|
133 |
|
134 | plugins?: string[];
|
135 | } & Partial<GithubInformation & RepoInformation> & LogOptions;
|
136 | export declare type ApiOptions = GlobalOptions & (ILatestOptions | IInfoOptions | ICreateLabelsOptions | ILabelOptions | IPRCheckOptions | IPRStatusOptions | ICommentOptions | IChangelogOptions | IPRBodyOptions | IReleaseOptions | IVersionOptions | ICanaryOptions | IShipItOptions);
|
137 | export {};
|
138 |
|
\ | No newline at end of file |