@tomsd/github-repo-js 0.2.1 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/index.d.ts +443 -5094
- package/dist/index.iife.js +1 -0
- package/dist/index.mjs +1 -0
- package/dist/modules/base.d.ts +31 -0
- package/dist/modules/blob.d.ts +68 -0
- package/dist/modules/blobs.d.ts +67 -0
- package/dist/modules/github-classes.d.ts +4647 -0
- package/dist/modules/issue-comments.d.ts +101 -0
- package/dist/modules/issue.d.ts +330 -0
- package/dist/modules/my-issues.d.ts +289 -0
- package/dist/modules/organization-audit-log.d.ts +22 -0
- package/dist/modules/organization-repositories.d.ts +591 -0
- package/dist/modules/pull-commits.d.ts +177 -0
- package/dist/modules/pull-reviewers.d.ts +41 -0
- package/dist/modules/reference-get.d.ts +67 -0
- package/dist/modules/reference.d.ts +73 -0
- package/dist/modules/repository-artifact.d.ts +118 -0
- package/dist/modules/repository-artifacts.d.ts +118 -0
- package/dist/modules/repository-branch.d.ts +82 -0
- package/dist/modules/repository-branches.d.ts +66 -0
- package/dist/modules/repository-commits.d.ts +211 -0
- package/dist/modules/repository-issues.d.ts +317 -0
- package/dist/modules/repository-latest-release.d.ts +21 -0
- package/dist/modules/repository-pull.d.ts +458 -0
- package/dist/modules/repository-pulls.d.ts +369 -0
- package/dist/modules/repository-references.d.ts +82 -0
- package/dist/modules/repository-releases.d.ts +171 -0
- package/dist/modules/repository-runs.d.ts +206 -0
- package/dist/modules/repository-trees.d.ts +99 -0
- package/dist/modules/repository.d.ts +2267 -0
- package/dist/modules/tree.d.ts +82 -0
- package/dist/modules/user-organizations.d.ts +84 -0
- package/dist/modules/user-repositories.d.ts +597 -0
- package/dist/modules/user.d.ts +500 -0
- package/dist/repl.mjs +4 -0
- package/dist/utils/index.d.ts +6 -0
- package/package.json +8 -8
- package/dist/index.global.js +0 -1
- package/dist/index.js +0 -1
- package/dist/repl.js +0 -4
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export declare function readyGitHubRepositoryBranches(token: string): {
|
|
2
|
+
new (owner: string, repo: string): {
|
|
3
|
+
get apiEndpoint(): string;
|
|
4
|
+
get pageSizeForRequest(): number;
|
|
5
|
+
getList(query?: Record<string, string>): Promise<{
|
|
6
|
+
name: string;
|
|
7
|
+
commit: {
|
|
8
|
+
sha: string;
|
|
9
|
+
url: string;
|
|
10
|
+
};
|
|
11
|
+
protected: boolean;
|
|
12
|
+
protection?: import("@octokit/openapi-types").components["schemas"]["branch-protection"];
|
|
13
|
+
protection_url?: string;
|
|
14
|
+
}[]>;
|
|
15
|
+
owner: string;
|
|
16
|
+
repo: string;
|
|
17
|
+
token: string;
|
|
18
|
+
get apiOrigin(): string;
|
|
19
|
+
get requestHeaders(): {
|
|
20
|
+
accept: string;
|
|
21
|
+
authorization: string;
|
|
22
|
+
"X-GitHub-Api-Version": string;
|
|
23
|
+
};
|
|
24
|
+
getPagedList(query?: Record<string, string>): Promise<{
|
|
25
|
+
name: string;
|
|
26
|
+
commit: {
|
|
27
|
+
sha: string;
|
|
28
|
+
url: string;
|
|
29
|
+
};
|
|
30
|
+
protected: boolean;
|
|
31
|
+
protection?: import("@octokit/openapi-types").components["schemas"]["branch-protection"];
|
|
32
|
+
protection_url?: string;
|
|
33
|
+
}[]>;
|
|
34
|
+
get(): Promise<{
|
|
35
|
+
name: string;
|
|
36
|
+
commit: {
|
|
37
|
+
sha: string;
|
|
38
|
+
url: string;
|
|
39
|
+
};
|
|
40
|
+
protected: boolean;
|
|
41
|
+
protection?: import("@octokit/openapi-types").components["schemas"]["branch-protection"];
|
|
42
|
+
protection_url?: string;
|
|
43
|
+
}>;
|
|
44
|
+
post(body: unknown): Promise<{
|
|
45
|
+
name: string;
|
|
46
|
+
commit: {
|
|
47
|
+
sha: string;
|
|
48
|
+
url: string;
|
|
49
|
+
};
|
|
50
|
+
protected: boolean;
|
|
51
|
+
protection?: import("@octokit/openapi-types").components["schemas"]["branch-protection"];
|
|
52
|
+
protection_url?: string;
|
|
53
|
+
}>;
|
|
54
|
+
patch(body: unknown): Promise<{
|
|
55
|
+
name: string;
|
|
56
|
+
commit: {
|
|
57
|
+
sha: string;
|
|
58
|
+
url: string;
|
|
59
|
+
};
|
|
60
|
+
protected: boolean;
|
|
61
|
+
protection?: import("@octokit/openapi-types").components["schemas"]["branch-protection"];
|
|
62
|
+
protection_url?: string;
|
|
63
|
+
}>;
|
|
64
|
+
delete(): Promise<void>;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
export declare function readyGitHubRepositoryCommits(token: string): {
|
|
2
|
+
new (owner: string, repo: string): {
|
|
3
|
+
get apiEndpoint(): string;
|
|
4
|
+
owner: string;
|
|
5
|
+
repo: string;
|
|
6
|
+
token: string;
|
|
7
|
+
get apiOrigin(): string;
|
|
8
|
+
get requestHeaders(): {
|
|
9
|
+
accept: string;
|
|
10
|
+
authorization: string;
|
|
11
|
+
"X-GitHub-Api-Version": string;
|
|
12
|
+
};
|
|
13
|
+
get pageSizeForRequest(): number;
|
|
14
|
+
getPagedList(query?: Record<string, string>): Promise<{
|
|
15
|
+
sha: string;
|
|
16
|
+
node_id: string;
|
|
17
|
+
url: string;
|
|
18
|
+
author: {
|
|
19
|
+
date: string;
|
|
20
|
+
email: string;
|
|
21
|
+
name: string;
|
|
22
|
+
};
|
|
23
|
+
committer: {
|
|
24
|
+
date: string;
|
|
25
|
+
email: string;
|
|
26
|
+
name: string;
|
|
27
|
+
};
|
|
28
|
+
message: string;
|
|
29
|
+
tree: {
|
|
30
|
+
sha: string;
|
|
31
|
+
url: string;
|
|
32
|
+
};
|
|
33
|
+
parents: {
|
|
34
|
+
sha: string;
|
|
35
|
+
url: string;
|
|
36
|
+
html_url: string;
|
|
37
|
+
}[];
|
|
38
|
+
verification: {
|
|
39
|
+
verified: boolean;
|
|
40
|
+
reason: string;
|
|
41
|
+
signature: string | null;
|
|
42
|
+
payload: string | null;
|
|
43
|
+
verified_at: string | null;
|
|
44
|
+
};
|
|
45
|
+
html_url: string;
|
|
46
|
+
}[]>;
|
|
47
|
+
getList(query?: Record<string, string>): Promise<{
|
|
48
|
+
sha: string;
|
|
49
|
+
node_id: string;
|
|
50
|
+
url: string;
|
|
51
|
+
author: {
|
|
52
|
+
date: string;
|
|
53
|
+
email: string;
|
|
54
|
+
name: string;
|
|
55
|
+
};
|
|
56
|
+
committer: {
|
|
57
|
+
date: string;
|
|
58
|
+
email: string;
|
|
59
|
+
name: string;
|
|
60
|
+
};
|
|
61
|
+
message: string;
|
|
62
|
+
tree: {
|
|
63
|
+
sha: string;
|
|
64
|
+
url: string;
|
|
65
|
+
};
|
|
66
|
+
parents: {
|
|
67
|
+
sha: string;
|
|
68
|
+
url: string;
|
|
69
|
+
html_url: string;
|
|
70
|
+
}[];
|
|
71
|
+
verification: {
|
|
72
|
+
verified: boolean;
|
|
73
|
+
reason: string;
|
|
74
|
+
signature: string | null;
|
|
75
|
+
payload: string | null;
|
|
76
|
+
verified_at: string | null;
|
|
77
|
+
};
|
|
78
|
+
html_url: string;
|
|
79
|
+
}[]>;
|
|
80
|
+
get(): Promise<{
|
|
81
|
+
sha: string;
|
|
82
|
+
node_id: string;
|
|
83
|
+
url: string;
|
|
84
|
+
author: {
|
|
85
|
+
date: string;
|
|
86
|
+
email: string;
|
|
87
|
+
name: string;
|
|
88
|
+
};
|
|
89
|
+
committer: {
|
|
90
|
+
date: string;
|
|
91
|
+
email: string;
|
|
92
|
+
name: string;
|
|
93
|
+
};
|
|
94
|
+
message: string;
|
|
95
|
+
tree: {
|
|
96
|
+
sha: string;
|
|
97
|
+
url: string;
|
|
98
|
+
};
|
|
99
|
+
parents: {
|
|
100
|
+
sha: string;
|
|
101
|
+
url: string;
|
|
102
|
+
html_url: string;
|
|
103
|
+
}[];
|
|
104
|
+
verification: {
|
|
105
|
+
verified: boolean;
|
|
106
|
+
reason: string;
|
|
107
|
+
signature: string | null;
|
|
108
|
+
payload: string | null;
|
|
109
|
+
verified_at: string | null;
|
|
110
|
+
};
|
|
111
|
+
html_url: string;
|
|
112
|
+
}>;
|
|
113
|
+
post(body: {
|
|
114
|
+
message: string;
|
|
115
|
+
tree: string;
|
|
116
|
+
parents?: string[];
|
|
117
|
+
author?: {
|
|
118
|
+
name: string;
|
|
119
|
+
email: string;
|
|
120
|
+
date?: string;
|
|
121
|
+
};
|
|
122
|
+
committer?: {
|
|
123
|
+
name?: string;
|
|
124
|
+
email?: string;
|
|
125
|
+
date?: string;
|
|
126
|
+
};
|
|
127
|
+
signature?: string;
|
|
128
|
+
}): Promise<{
|
|
129
|
+
sha: string;
|
|
130
|
+
node_id: string;
|
|
131
|
+
url: string;
|
|
132
|
+
author: {
|
|
133
|
+
date: string;
|
|
134
|
+
email: string;
|
|
135
|
+
name: string;
|
|
136
|
+
};
|
|
137
|
+
committer: {
|
|
138
|
+
date: string;
|
|
139
|
+
email: string;
|
|
140
|
+
name: string;
|
|
141
|
+
};
|
|
142
|
+
message: string;
|
|
143
|
+
tree: {
|
|
144
|
+
sha: string;
|
|
145
|
+
url: string;
|
|
146
|
+
};
|
|
147
|
+
parents: {
|
|
148
|
+
sha: string;
|
|
149
|
+
url: string;
|
|
150
|
+
html_url: string;
|
|
151
|
+
}[];
|
|
152
|
+
verification: {
|
|
153
|
+
verified: boolean;
|
|
154
|
+
reason: string;
|
|
155
|
+
signature: string | null;
|
|
156
|
+
payload: string | null;
|
|
157
|
+
verified_at: string | null;
|
|
158
|
+
};
|
|
159
|
+
html_url: string;
|
|
160
|
+
}>;
|
|
161
|
+
patch(body: {
|
|
162
|
+
message: string;
|
|
163
|
+
tree: string;
|
|
164
|
+
parents?: string[];
|
|
165
|
+
author?: {
|
|
166
|
+
name: string;
|
|
167
|
+
email: string;
|
|
168
|
+
date?: string;
|
|
169
|
+
};
|
|
170
|
+
committer?: {
|
|
171
|
+
name?: string;
|
|
172
|
+
email?: string;
|
|
173
|
+
date?: string;
|
|
174
|
+
};
|
|
175
|
+
signature?: string;
|
|
176
|
+
}): Promise<{
|
|
177
|
+
sha: string;
|
|
178
|
+
node_id: string;
|
|
179
|
+
url: string;
|
|
180
|
+
author: {
|
|
181
|
+
date: string;
|
|
182
|
+
email: string;
|
|
183
|
+
name: string;
|
|
184
|
+
};
|
|
185
|
+
committer: {
|
|
186
|
+
date: string;
|
|
187
|
+
email: string;
|
|
188
|
+
name: string;
|
|
189
|
+
};
|
|
190
|
+
message: string;
|
|
191
|
+
tree: {
|
|
192
|
+
sha: string;
|
|
193
|
+
url: string;
|
|
194
|
+
};
|
|
195
|
+
parents: {
|
|
196
|
+
sha: string;
|
|
197
|
+
url: string;
|
|
198
|
+
html_url: string;
|
|
199
|
+
}[];
|
|
200
|
+
verification: {
|
|
201
|
+
verified: boolean;
|
|
202
|
+
reason: string;
|
|
203
|
+
signature: string | null;
|
|
204
|
+
payload: string | null;
|
|
205
|
+
verified_at: string | null;
|
|
206
|
+
};
|
|
207
|
+
html_url: string;
|
|
208
|
+
}>;
|
|
209
|
+
delete(): Promise<void>;
|
|
210
|
+
};
|
|
211
|
+
};
|
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
export declare function readyGitHubRepositoryIssues(token: string): {
|
|
2
|
+
new (owner: string, repo: string): {
|
|
3
|
+
get apiEndpoint(): string;
|
|
4
|
+
get pageSizeForRequest(): number;
|
|
5
|
+
getList(query?: Record<string, string>): Promise<{
|
|
6
|
+
id: number;
|
|
7
|
+
node_id: string;
|
|
8
|
+
url: string;
|
|
9
|
+
repository_url: string;
|
|
10
|
+
labels_url: string;
|
|
11
|
+
comments_url: string;
|
|
12
|
+
events_url: string;
|
|
13
|
+
html_url: string;
|
|
14
|
+
number: number;
|
|
15
|
+
state: string;
|
|
16
|
+
state_reason?: "completed" | "reopened" | "not_planned" | "duplicate" | null;
|
|
17
|
+
title: string;
|
|
18
|
+
body?: string | null;
|
|
19
|
+
user: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
|
|
20
|
+
labels: import("@octokit/openapi-types").OneOf<[string, {
|
|
21
|
+
id?: number;
|
|
22
|
+
node_id?: string;
|
|
23
|
+
url?: string;
|
|
24
|
+
name?: string;
|
|
25
|
+
description?: string | null;
|
|
26
|
+
color?: string | null;
|
|
27
|
+
default?: boolean;
|
|
28
|
+
}]>[];
|
|
29
|
+
assignee: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
|
|
30
|
+
assignees?: import("@octokit/openapi-types").components["schemas"]["simple-user"][] | null;
|
|
31
|
+
milestone: import("@octokit/openapi-types").components["schemas"]["nullable-milestone"];
|
|
32
|
+
locked: boolean;
|
|
33
|
+
active_lock_reason?: string | null;
|
|
34
|
+
comments: number;
|
|
35
|
+
pull_request?: {
|
|
36
|
+
merged_at?: string | null;
|
|
37
|
+
diff_url: string | null;
|
|
38
|
+
html_url: string | null;
|
|
39
|
+
patch_url: string | null;
|
|
40
|
+
url: string | null;
|
|
41
|
+
};
|
|
42
|
+
closed_at: string | null;
|
|
43
|
+
created_at: string;
|
|
44
|
+
updated_at: string;
|
|
45
|
+
draft?: boolean;
|
|
46
|
+
closed_by?: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
|
|
47
|
+
body_html?: string;
|
|
48
|
+
body_text?: string;
|
|
49
|
+
timeline_url?: string;
|
|
50
|
+
type?: import("@octokit/openapi-types").components["schemas"]["issue-type"];
|
|
51
|
+
repository?: import("@octokit/openapi-types").components["schemas"]["repository"];
|
|
52
|
+
performed_via_github_app?: import("@octokit/openapi-types").components["schemas"]["nullable-integration"];
|
|
53
|
+
author_association?: import("@octokit/openapi-types").components["schemas"]["author-association"];
|
|
54
|
+
reactions?: import("@octokit/openapi-types").components["schemas"]["reaction-rollup"];
|
|
55
|
+
sub_issues_summary?: import("@octokit/openapi-types").components["schemas"]["sub-issues-summary"];
|
|
56
|
+
parent_issue_url?: string | null;
|
|
57
|
+
issue_dependencies_summary?: import("@octokit/openapi-types").components["schemas"]["issue-dependencies-summary"];
|
|
58
|
+
issue_field_values?: import("@octokit/openapi-types").components["schemas"]["issue-field-value"][];
|
|
59
|
+
}[]>;
|
|
60
|
+
owner: string;
|
|
61
|
+
repo: string;
|
|
62
|
+
token: string;
|
|
63
|
+
get apiOrigin(): string;
|
|
64
|
+
get requestHeaders(): {
|
|
65
|
+
accept: string;
|
|
66
|
+
authorization: string;
|
|
67
|
+
"X-GitHub-Api-Version": string;
|
|
68
|
+
};
|
|
69
|
+
getPagedList(query?: Record<string, string>): Promise<{
|
|
70
|
+
id: number;
|
|
71
|
+
node_id: string;
|
|
72
|
+
url: string;
|
|
73
|
+
repository_url: string;
|
|
74
|
+
labels_url: string;
|
|
75
|
+
comments_url: string;
|
|
76
|
+
events_url: string;
|
|
77
|
+
html_url: string;
|
|
78
|
+
number: number;
|
|
79
|
+
state: string;
|
|
80
|
+
state_reason?: "completed" | "reopened" | "not_planned" | "duplicate" | null;
|
|
81
|
+
title: string;
|
|
82
|
+
body?: string | null;
|
|
83
|
+
user: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
|
|
84
|
+
labels: import("@octokit/openapi-types").OneOf<[string, {
|
|
85
|
+
id?: number;
|
|
86
|
+
node_id?: string;
|
|
87
|
+
url?: string;
|
|
88
|
+
name?: string;
|
|
89
|
+
description?: string | null;
|
|
90
|
+
color?: string | null;
|
|
91
|
+
default?: boolean;
|
|
92
|
+
}]>[];
|
|
93
|
+
assignee: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
|
|
94
|
+
assignees?: import("@octokit/openapi-types").components["schemas"]["simple-user"][] | null;
|
|
95
|
+
milestone: import("@octokit/openapi-types").components["schemas"]["nullable-milestone"];
|
|
96
|
+
locked: boolean;
|
|
97
|
+
active_lock_reason?: string | null;
|
|
98
|
+
comments: number;
|
|
99
|
+
pull_request?: {
|
|
100
|
+
merged_at?: string | null;
|
|
101
|
+
diff_url: string | null;
|
|
102
|
+
html_url: string | null;
|
|
103
|
+
patch_url: string | null;
|
|
104
|
+
url: string | null;
|
|
105
|
+
};
|
|
106
|
+
closed_at: string | null;
|
|
107
|
+
created_at: string;
|
|
108
|
+
updated_at: string;
|
|
109
|
+
draft?: boolean;
|
|
110
|
+
closed_by?: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
|
|
111
|
+
body_html?: string;
|
|
112
|
+
body_text?: string;
|
|
113
|
+
timeline_url?: string;
|
|
114
|
+
type?: import("@octokit/openapi-types").components["schemas"]["issue-type"];
|
|
115
|
+
repository?: import("@octokit/openapi-types").components["schemas"]["repository"];
|
|
116
|
+
performed_via_github_app?: import("@octokit/openapi-types").components["schemas"]["nullable-integration"];
|
|
117
|
+
author_association?: import("@octokit/openapi-types").components["schemas"]["author-association"];
|
|
118
|
+
reactions?: import("@octokit/openapi-types").components["schemas"]["reaction-rollup"];
|
|
119
|
+
sub_issues_summary?: import("@octokit/openapi-types").components["schemas"]["sub-issues-summary"];
|
|
120
|
+
parent_issue_url?: string | null;
|
|
121
|
+
issue_dependencies_summary?: import("@octokit/openapi-types").components["schemas"]["issue-dependencies-summary"];
|
|
122
|
+
issue_field_values?: import("@octokit/openapi-types").components["schemas"]["issue-field-value"][];
|
|
123
|
+
}[]>;
|
|
124
|
+
get(): Promise<{
|
|
125
|
+
id: number;
|
|
126
|
+
node_id: string;
|
|
127
|
+
url: string;
|
|
128
|
+
repository_url: string;
|
|
129
|
+
labels_url: string;
|
|
130
|
+
comments_url: string;
|
|
131
|
+
events_url: string;
|
|
132
|
+
html_url: string;
|
|
133
|
+
number: number;
|
|
134
|
+
state: string;
|
|
135
|
+
state_reason?: "completed" | "reopened" | "not_planned" | "duplicate" | null;
|
|
136
|
+
title: string;
|
|
137
|
+
body?: string | null;
|
|
138
|
+
user: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
|
|
139
|
+
labels: import("@octokit/openapi-types").OneOf<[string, {
|
|
140
|
+
id?: number;
|
|
141
|
+
node_id?: string;
|
|
142
|
+
url?: string;
|
|
143
|
+
name?: string;
|
|
144
|
+
description?: string | null;
|
|
145
|
+
color?: string | null;
|
|
146
|
+
default?: boolean;
|
|
147
|
+
}]>[];
|
|
148
|
+
assignee: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
|
|
149
|
+
assignees?: import("@octokit/openapi-types").components["schemas"]["simple-user"][] | null;
|
|
150
|
+
milestone: import("@octokit/openapi-types").components["schemas"]["nullable-milestone"];
|
|
151
|
+
locked: boolean;
|
|
152
|
+
active_lock_reason?: string | null;
|
|
153
|
+
comments: number;
|
|
154
|
+
pull_request?: {
|
|
155
|
+
merged_at?: string | null;
|
|
156
|
+
diff_url: string | null;
|
|
157
|
+
html_url: string | null;
|
|
158
|
+
patch_url: string | null;
|
|
159
|
+
url: string | null;
|
|
160
|
+
};
|
|
161
|
+
closed_at: string | null;
|
|
162
|
+
created_at: string;
|
|
163
|
+
updated_at: string;
|
|
164
|
+
draft?: boolean;
|
|
165
|
+
closed_by?: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
|
|
166
|
+
body_html?: string;
|
|
167
|
+
body_text?: string;
|
|
168
|
+
timeline_url?: string;
|
|
169
|
+
type?: import("@octokit/openapi-types").components["schemas"]["issue-type"];
|
|
170
|
+
repository?: import("@octokit/openapi-types").components["schemas"]["repository"];
|
|
171
|
+
performed_via_github_app?: import("@octokit/openapi-types").components["schemas"]["nullable-integration"];
|
|
172
|
+
author_association?: import("@octokit/openapi-types").components["schemas"]["author-association"];
|
|
173
|
+
reactions?: import("@octokit/openapi-types").components["schemas"]["reaction-rollup"];
|
|
174
|
+
sub_issues_summary?: import("@octokit/openapi-types").components["schemas"]["sub-issues-summary"];
|
|
175
|
+
parent_issue_url?: string | null;
|
|
176
|
+
issue_dependencies_summary?: import("@octokit/openapi-types").components["schemas"]["issue-dependencies-summary"];
|
|
177
|
+
issue_field_values?: import("@octokit/openapi-types").components["schemas"]["issue-field-value"][];
|
|
178
|
+
}>;
|
|
179
|
+
post(body: {
|
|
180
|
+
title: string | number;
|
|
181
|
+
body?: string;
|
|
182
|
+
assignee?: string | null;
|
|
183
|
+
milestone?: string | number | null;
|
|
184
|
+
labels?: import("@octokit/openapi-types").OneOf<[string, {
|
|
185
|
+
id?: number;
|
|
186
|
+
name?: string;
|
|
187
|
+
description?: string | null;
|
|
188
|
+
color?: string | null;
|
|
189
|
+
}]>[];
|
|
190
|
+
assignees?: string[];
|
|
191
|
+
type?: string | null;
|
|
192
|
+
}): Promise<{
|
|
193
|
+
id: number;
|
|
194
|
+
node_id: string;
|
|
195
|
+
url: string;
|
|
196
|
+
repository_url: string;
|
|
197
|
+
labels_url: string;
|
|
198
|
+
comments_url: string;
|
|
199
|
+
events_url: string;
|
|
200
|
+
html_url: string;
|
|
201
|
+
number: number;
|
|
202
|
+
state: string;
|
|
203
|
+
state_reason?: "completed" | "reopened" | "not_planned" | "duplicate" | null;
|
|
204
|
+
title: string;
|
|
205
|
+
body?: string | null;
|
|
206
|
+
user: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
|
|
207
|
+
labels: import("@octokit/openapi-types").OneOf<[string, {
|
|
208
|
+
id?: number;
|
|
209
|
+
node_id?: string;
|
|
210
|
+
url?: string;
|
|
211
|
+
name?: string;
|
|
212
|
+
description?: string | null;
|
|
213
|
+
color?: string | null;
|
|
214
|
+
default?: boolean;
|
|
215
|
+
}]>[];
|
|
216
|
+
assignee: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
|
|
217
|
+
assignees?: import("@octokit/openapi-types").components["schemas"]["simple-user"][] | null;
|
|
218
|
+
milestone: import("@octokit/openapi-types").components["schemas"]["nullable-milestone"];
|
|
219
|
+
locked: boolean;
|
|
220
|
+
active_lock_reason?: string | null;
|
|
221
|
+
comments: number;
|
|
222
|
+
pull_request?: {
|
|
223
|
+
merged_at?: string | null;
|
|
224
|
+
diff_url: string | null;
|
|
225
|
+
html_url: string | null;
|
|
226
|
+
patch_url: string | null;
|
|
227
|
+
url: string | null;
|
|
228
|
+
};
|
|
229
|
+
closed_at: string | null;
|
|
230
|
+
created_at: string;
|
|
231
|
+
updated_at: string;
|
|
232
|
+
draft?: boolean;
|
|
233
|
+
closed_by?: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
|
|
234
|
+
body_html?: string;
|
|
235
|
+
body_text?: string;
|
|
236
|
+
timeline_url?: string;
|
|
237
|
+
type?: import("@octokit/openapi-types").components["schemas"]["issue-type"];
|
|
238
|
+
repository?: import("@octokit/openapi-types").components["schemas"]["repository"];
|
|
239
|
+
performed_via_github_app?: import("@octokit/openapi-types").components["schemas"]["nullable-integration"];
|
|
240
|
+
author_association?: import("@octokit/openapi-types").components["schemas"]["author-association"];
|
|
241
|
+
reactions?: import("@octokit/openapi-types").components["schemas"]["reaction-rollup"];
|
|
242
|
+
sub_issues_summary?: import("@octokit/openapi-types").components["schemas"]["sub-issues-summary"];
|
|
243
|
+
parent_issue_url?: string | null;
|
|
244
|
+
issue_dependencies_summary?: import("@octokit/openapi-types").components["schemas"]["issue-dependencies-summary"];
|
|
245
|
+
issue_field_values?: import("@octokit/openapi-types").components["schemas"]["issue-field-value"][];
|
|
246
|
+
}>;
|
|
247
|
+
patch(body: {
|
|
248
|
+
title: string | number;
|
|
249
|
+
body?: string;
|
|
250
|
+
assignee?: string | null;
|
|
251
|
+
milestone?: string | number | null;
|
|
252
|
+
labels?: import("@octokit/openapi-types").OneOf<[string, {
|
|
253
|
+
id?: number;
|
|
254
|
+
name?: string;
|
|
255
|
+
description?: string | null;
|
|
256
|
+
color?: string | null;
|
|
257
|
+
}]>[];
|
|
258
|
+
assignees?: string[];
|
|
259
|
+
type?: string | null;
|
|
260
|
+
}): Promise<{
|
|
261
|
+
id: number;
|
|
262
|
+
node_id: string;
|
|
263
|
+
url: string;
|
|
264
|
+
repository_url: string;
|
|
265
|
+
labels_url: string;
|
|
266
|
+
comments_url: string;
|
|
267
|
+
events_url: string;
|
|
268
|
+
html_url: string;
|
|
269
|
+
number: number;
|
|
270
|
+
state: string;
|
|
271
|
+
state_reason?: "completed" | "reopened" | "not_planned" | "duplicate" | null;
|
|
272
|
+
title: string;
|
|
273
|
+
body?: string | null;
|
|
274
|
+
user: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
|
|
275
|
+
labels: import("@octokit/openapi-types").OneOf<[string, {
|
|
276
|
+
id?: number;
|
|
277
|
+
node_id?: string;
|
|
278
|
+
url?: string;
|
|
279
|
+
name?: string;
|
|
280
|
+
description?: string | null;
|
|
281
|
+
color?: string | null;
|
|
282
|
+
default?: boolean;
|
|
283
|
+
}]>[];
|
|
284
|
+
assignee: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
|
|
285
|
+
assignees?: import("@octokit/openapi-types").components["schemas"]["simple-user"][] | null;
|
|
286
|
+
milestone: import("@octokit/openapi-types").components["schemas"]["nullable-milestone"];
|
|
287
|
+
locked: boolean;
|
|
288
|
+
active_lock_reason?: string | null;
|
|
289
|
+
comments: number;
|
|
290
|
+
pull_request?: {
|
|
291
|
+
merged_at?: string | null;
|
|
292
|
+
diff_url: string | null;
|
|
293
|
+
html_url: string | null;
|
|
294
|
+
patch_url: string | null;
|
|
295
|
+
url: string | null;
|
|
296
|
+
};
|
|
297
|
+
closed_at: string | null;
|
|
298
|
+
created_at: string;
|
|
299
|
+
updated_at: string;
|
|
300
|
+
draft?: boolean;
|
|
301
|
+
closed_by?: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
|
|
302
|
+
body_html?: string;
|
|
303
|
+
body_text?: string;
|
|
304
|
+
timeline_url?: string;
|
|
305
|
+
type?: import("@octokit/openapi-types").components["schemas"]["issue-type"];
|
|
306
|
+
repository?: import("@octokit/openapi-types").components["schemas"]["repository"];
|
|
307
|
+
performed_via_github_app?: import("@octokit/openapi-types").components["schemas"]["nullable-integration"];
|
|
308
|
+
author_association?: import("@octokit/openapi-types").components["schemas"]["author-association"];
|
|
309
|
+
reactions?: import("@octokit/openapi-types").components["schemas"]["reaction-rollup"];
|
|
310
|
+
sub_issues_summary?: import("@octokit/openapi-types").components["schemas"]["sub-issues-summary"];
|
|
311
|
+
parent_issue_url?: string | null;
|
|
312
|
+
issue_dependencies_summary?: import("@octokit/openapi-types").components["schemas"]["issue-dependencies-summary"];
|
|
313
|
+
issue_field_values?: import("@octokit/openapi-types").components["schemas"]["issue-field-value"][];
|
|
314
|
+
}>;
|
|
315
|
+
delete(): Promise<void>;
|
|
316
|
+
};
|
|
317
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare function readyGitHubRepositoryLatestRelease(token: string): {
|
|
2
|
+
new (owner: string, repo: string): {
|
|
3
|
+
get apiEndpoint(): string;
|
|
4
|
+
owner: string;
|
|
5
|
+
repo: string;
|
|
6
|
+
token: string;
|
|
7
|
+
get apiOrigin(): string;
|
|
8
|
+
get requestHeaders(): {
|
|
9
|
+
accept: string;
|
|
10
|
+
authorization: string;
|
|
11
|
+
"X-GitHub-Api-Version": string;
|
|
12
|
+
};
|
|
13
|
+
get pageSizeForRequest(): number;
|
|
14
|
+
getPagedList(query?: Record<string, string>): Promise<never[]>;
|
|
15
|
+
getList(query?: Record<string, string>): Promise<never[]>;
|
|
16
|
+
get(): Promise<never>;
|
|
17
|
+
post(body: never): Promise<never>;
|
|
18
|
+
patch(body: never): Promise<never>;
|
|
19
|
+
delete(): Promise<void>;
|
|
20
|
+
};
|
|
21
|
+
};
|