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 | useVersion?: string;
|
81 | };
|
82 | export declare type ICommentOptions = DryRun & {
|
83 |
|
84 | message?: string;
|
85 |
|
86 | pr?: number;
|
87 |
|
88 | context?: string;
|
89 |
|
90 | delete?: boolean;
|
91 |
|
92 | edit?: boolean;
|
93 | };
|
94 | export declare type IPRBodyOptions = Omit<ICommentOptions, "edit" | "delete">;
|
95 | export declare type ILatestOptions = BaseBranch & DryRun & Partial<AuthorInformation> & Prerelease & NoVersionPrefix & ChangelogTitle & ChangelogMessage & Quiet & ReleaseCalculationOptions & {
|
96 |
|
97 | noChangelog?: boolean;
|
98 | };
|
99 | export declare type IShipItOptions = ILatestOptions & {
|
100 | |
101 |
|
102 |
|
103 |
|
104 |
|
105 |
|
106 | onlyGraduateWithReleaseLabel?: boolean;
|
107 | };
|
108 | export declare type ICanaryOptions = Quiet & {
|
109 |
|
110 | dryRun?: boolean;
|
111 |
|
112 | pr?: number;
|
113 |
|
114 | build?: number;
|
115 |
|
116 | message?: string | "false";
|
117 |
|
118 | force?: boolean;
|
119 | };
|
120 | export declare type INextOptions = Quiet & {
|
121 |
|
122 | dryRun?: boolean;
|
123 |
|
124 | message?: string;
|
125 | };
|
126 | export interface IInfoOptions {
|
127 |
|
128 | listPlugins?: boolean;
|
129 | }
|
130 | export declare type GlobalOptions = {
|
131 |
|
132 | plugins?: string[];
|
133 | } & Partial<GithubInformation & RepoInformation> & LogOptions;
|
134 | export declare type ApiOptions = GlobalOptions & (ILatestOptions | IInfoOptions | ICreateLabelsOptions | ILabelOptions | IPRCheckOptions | IPRStatusOptions | ICommentOptions | IChangelogOptions | IPRBodyOptions | IReleaseOptions | IVersionOptions | ICanaryOptions | IShipItOptions);
|
135 | export {};
|
136 |
|
\ | No newline at end of file |