@tomsd/github-repo-js 0.2.2 → 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 +6 -6
- package/dist/index.global.js +0 -1
- package/dist/index.js +0 -1
- package/dist/repl.js +0 -4
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
export declare function readyGitHubPullCommits(token: string): {
|
|
2
|
+
new (owner: string, repo: string, pullNumber: number): {
|
|
3
|
+
get apiEndpoint(): string;
|
|
4
|
+
get pageSizeForRequest(): number;
|
|
5
|
+
getList(query?: Record<string, string>): Promise<{
|
|
6
|
+
url: string;
|
|
7
|
+
sha: string;
|
|
8
|
+
node_id: string;
|
|
9
|
+
html_url: string;
|
|
10
|
+
comments_url: string;
|
|
11
|
+
commit: {
|
|
12
|
+
url: string;
|
|
13
|
+
author: import("@octokit/openapi-types").components["schemas"]["nullable-git-user"];
|
|
14
|
+
committer: import("@octokit/openapi-types").components["schemas"]["nullable-git-user"];
|
|
15
|
+
message: string;
|
|
16
|
+
comment_count: number;
|
|
17
|
+
tree: {
|
|
18
|
+
sha: string;
|
|
19
|
+
url: string;
|
|
20
|
+
};
|
|
21
|
+
verification?: import("@octokit/openapi-types").components["schemas"]["verification"];
|
|
22
|
+
};
|
|
23
|
+
author: import("@octokit/openapi-types").components["schemas"]["simple-user"] | import("@octokit/openapi-types").components["schemas"]["empty-object"] | null;
|
|
24
|
+
committer: import("@octokit/openapi-types").components["schemas"]["simple-user"] | import("@octokit/openapi-types").components["schemas"]["empty-object"] | null;
|
|
25
|
+
parents: {
|
|
26
|
+
sha: string;
|
|
27
|
+
url: string;
|
|
28
|
+
html_url?: string;
|
|
29
|
+
}[];
|
|
30
|
+
stats?: {
|
|
31
|
+
additions?: number;
|
|
32
|
+
deletions?: number;
|
|
33
|
+
total?: number;
|
|
34
|
+
};
|
|
35
|
+
files?: import("@octokit/openapi-types").components["schemas"]["diff-entry"][];
|
|
36
|
+
}[]>;
|
|
37
|
+
pullNumber: number;
|
|
38
|
+
owner: string;
|
|
39
|
+
repo: string;
|
|
40
|
+
token: string;
|
|
41
|
+
get apiOrigin(): string;
|
|
42
|
+
get requestHeaders(): {
|
|
43
|
+
accept: string;
|
|
44
|
+
authorization: string;
|
|
45
|
+
"X-GitHub-Api-Version": string;
|
|
46
|
+
};
|
|
47
|
+
getPagedList(query?: Record<string, string>): Promise<{
|
|
48
|
+
url: string;
|
|
49
|
+
sha: string;
|
|
50
|
+
node_id: string;
|
|
51
|
+
html_url: string;
|
|
52
|
+
comments_url: string;
|
|
53
|
+
commit: {
|
|
54
|
+
url: string;
|
|
55
|
+
author: import("@octokit/openapi-types").components["schemas"]["nullable-git-user"];
|
|
56
|
+
committer: import("@octokit/openapi-types").components["schemas"]["nullable-git-user"];
|
|
57
|
+
message: string;
|
|
58
|
+
comment_count: number;
|
|
59
|
+
tree: {
|
|
60
|
+
sha: string;
|
|
61
|
+
url: string;
|
|
62
|
+
};
|
|
63
|
+
verification?: import("@octokit/openapi-types").components["schemas"]["verification"];
|
|
64
|
+
};
|
|
65
|
+
author: import("@octokit/openapi-types").components["schemas"]["simple-user"] | import("@octokit/openapi-types").components["schemas"]["empty-object"] | null;
|
|
66
|
+
committer: import("@octokit/openapi-types").components["schemas"]["simple-user"] | import("@octokit/openapi-types").components["schemas"]["empty-object"] | null;
|
|
67
|
+
parents: {
|
|
68
|
+
sha: string;
|
|
69
|
+
url: string;
|
|
70
|
+
html_url?: string;
|
|
71
|
+
}[];
|
|
72
|
+
stats?: {
|
|
73
|
+
additions?: number;
|
|
74
|
+
deletions?: number;
|
|
75
|
+
total?: number;
|
|
76
|
+
};
|
|
77
|
+
files?: import("@octokit/openapi-types").components["schemas"]["diff-entry"][];
|
|
78
|
+
}[]>;
|
|
79
|
+
get(): Promise<{
|
|
80
|
+
url: string;
|
|
81
|
+
sha: string;
|
|
82
|
+
node_id: string;
|
|
83
|
+
html_url: string;
|
|
84
|
+
comments_url: string;
|
|
85
|
+
commit: {
|
|
86
|
+
url: string;
|
|
87
|
+
author: import("@octokit/openapi-types").components["schemas"]["nullable-git-user"];
|
|
88
|
+
committer: import("@octokit/openapi-types").components["schemas"]["nullable-git-user"];
|
|
89
|
+
message: string;
|
|
90
|
+
comment_count: number;
|
|
91
|
+
tree: {
|
|
92
|
+
sha: string;
|
|
93
|
+
url: string;
|
|
94
|
+
};
|
|
95
|
+
verification?: import("@octokit/openapi-types").components["schemas"]["verification"];
|
|
96
|
+
};
|
|
97
|
+
author: import("@octokit/openapi-types").components["schemas"]["simple-user"] | import("@octokit/openapi-types").components["schemas"]["empty-object"] | null;
|
|
98
|
+
committer: import("@octokit/openapi-types").components["schemas"]["simple-user"] | import("@octokit/openapi-types").components["schemas"]["empty-object"] | null;
|
|
99
|
+
parents: {
|
|
100
|
+
sha: string;
|
|
101
|
+
url: string;
|
|
102
|
+
html_url?: string;
|
|
103
|
+
}[];
|
|
104
|
+
stats?: {
|
|
105
|
+
additions?: number;
|
|
106
|
+
deletions?: number;
|
|
107
|
+
total?: number;
|
|
108
|
+
};
|
|
109
|
+
files?: import("@octokit/openapi-types").components["schemas"]["diff-entry"][];
|
|
110
|
+
}>;
|
|
111
|
+
post(body: unknown): Promise<{
|
|
112
|
+
url: string;
|
|
113
|
+
sha: string;
|
|
114
|
+
node_id: string;
|
|
115
|
+
html_url: string;
|
|
116
|
+
comments_url: string;
|
|
117
|
+
commit: {
|
|
118
|
+
url: string;
|
|
119
|
+
author: import("@octokit/openapi-types").components["schemas"]["nullable-git-user"];
|
|
120
|
+
committer: import("@octokit/openapi-types").components["schemas"]["nullable-git-user"];
|
|
121
|
+
message: string;
|
|
122
|
+
comment_count: number;
|
|
123
|
+
tree: {
|
|
124
|
+
sha: string;
|
|
125
|
+
url: string;
|
|
126
|
+
};
|
|
127
|
+
verification?: import("@octokit/openapi-types").components["schemas"]["verification"];
|
|
128
|
+
};
|
|
129
|
+
author: import("@octokit/openapi-types").components["schemas"]["simple-user"] | import("@octokit/openapi-types").components["schemas"]["empty-object"] | null;
|
|
130
|
+
committer: import("@octokit/openapi-types").components["schemas"]["simple-user"] | import("@octokit/openapi-types").components["schemas"]["empty-object"] | null;
|
|
131
|
+
parents: {
|
|
132
|
+
sha: string;
|
|
133
|
+
url: string;
|
|
134
|
+
html_url?: string;
|
|
135
|
+
}[];
|
|
136
|
+
stats?: {
|
|
137
|
+
additions?: number;
|
|
138
|
+
deletions?: number;
|
|
139
|
+
total?: number;
|
|
140
|
+
};
|
|
141
|
+
files?: import("@octokit/openapi-types").components["schemas"]["diff-entry"][];
|
|
142
|
+
}>;
|
|
143
|
+
patch(body: unknown): Promise<{
|
|
144
|
+
url: string;
|
|
145
|
+
sha: string;
|
|
146
|
+
node_id: string;
|
|
147
|
+
html_url: string;
|
|
148
|
+
comments_url: string;
|
|
149
|
+
commit: {
|
|
150
|
+
url: string;
|
|
151
|
+
author: import("@octokit/openapi-types").components["schemas"]["nullable-git-user"];
|
|
152
|
+
committer: import("@octokit/openapi-types").components["schemas"]["nullable-git-user"];
|
|
153
|
+
message: string;
|
|
154
|
+
comment_count: number;
|
|
155
|
+
tree: {
|
|
156
|
+
sha: string;
|
|
157
|
+
url: string;
|
|
158
|
+
};
|
|
159
|
+
verification?: import("@octokit/openapi-types").components["schemas"]["verification"];
|
|
160
|
+
};
|
|
161
|
+
author: import("@octokit/openapi-types").components["schemas"]["simple-user"] | import("@octokit/openapi-types").components["schemas"]["empty-object"] | null;
|
|
162
|
+
committer: import("@octokit/openapi-types").components["schemas"]["simple-user"] | import("@octokit/openapi-types").components["schemas"]["empty-object"] | null;
|
|
163
|
+
parents: {
|
|
164
|
+
sha: string;
|
|
165
|
+
url: string;
|
|
166
|
+
html_url?: string;
|
|
167
|
+
}[];
|
|
168
|
+
stats?: {
|
|
169
|
+
additions?: number;
|
|
170
|
+
deletions?: number;
|
|
171
|
+
total?: number;
|
|
172
|
+
};
|
|
173
|
+
files?: import("@octokit/openapi-types").components["schemas"]["diff-entry"][];
|
|
174
|
+
}>;
|
|
175
|
+
delete(): Promise<void>;
|
|
176
|
+
};
|
|
177
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export declare function readyGitHubPullReviewers(token: string): {
|
|
2
|
+
new (owner: string, repo: string, pullNumber: number): {
|
|
3
|
+
get apiEndpoint(): string;
|
|
4
|
+
pullNumber: number;
|
|
5
|
+
owner: string;
|
|
6
|
+
repo: string;
|
|
7
|
+
token: string;
|
|
8
|
+
get apiOrigin(): string;
|
|
9
|
+
get requestHeaders(): {
|
|
10
|
+
accept: string;
|
|
11
|
+
authorization: string;
|
|
12
|
+
"X-GitHub-Api-Version": string;
|
|
13
|
+
};
|
|
14
|
+
get pageSizeForRequest(): number;
|
|
15
|
+
getPagedList(query?: Record<string, string>): Promise<{
|
|
16
|
+
users: import("@octokit/openapi-types").components["schemas"]["simple-user"][];
|
|
17
|
+
teams: import("@octokit/openapi-types").components["schemas"]["team"][];
|
|
18
|
+
}[]>;
|
|
19
|
+
getList(query?: Record<string, string>): Promise<{
|
|
20
|
+
users: import("@octokit/openapi-types").components["schemas"]["simple-user"][];
|
|
21
|
+
teams: import("@octokit/openapi-types").components["schemas"]["team"][];
|
|
22
|
+
}[]>;
|
|
23
|
+
get(): Promise<{
|
|
24
|
+
users: import("@octokit/openapi-types").components["schemas"]["simple-user"][];
|
|
25
|
+
teams: import("@octokit/openapi-types").components["schemas"]["team"][];
|
|
26
|
+
}>;
|
|
27
|
+
post(body: {
|
|
28
|
+
data: never;
|
|
29
|
+
}): Promise<{
|
|
30
|
+
users: import("@octokit/openapi-types").components["schemas"]["simple-user"][];
|
|
31
|
+
teams: import("@octokit/openapi-types").components["schemas"]["team"][];
|
|
32
|
+
}>;
|
|
33
|
+
patch(body: {
|
|
34
|
+
data: never;
|
|
35
|
+
}): Promise<{
|
|
36
|
+
users: import("@octokit/openapi-types").components["schemas"]["simple-user"][];
|
|
37
|
+
teams: import("@octokit/openapi-types").components["schemas"]["team"][];
|
|
38
|
+
}>;
|
|
39
|
+
delete(): Promise<void>;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
export declare function readyGitHubReferenceForGet(token: string): {
|
|
2
|
+
new (owner: string, repo: string, ref: string): {
|
|
3
|
+
ref: string;
|
|
4
|
+
get apiEndpoint(): string;
|
|
5
|
+
owner: string;
|
|
6
|
+
repo: string;
|
|
7
|
+
token: string;
|
|
8
|
+
get apiOrigin(): string;
|
|
9
|
+
get requestHeaders(): {
|
|
10
|
+
accept: string;
|
|
11
|
+
authorization: string;
|
|
12
|
+
"X-GitHub-Api-Version": string;
|
|
13
|
+
};
|
|
14
|
+
get pageSizeForRequest(): number;
|
|
15
|
+
getPagedList(query?: Record<string, string>): Promise<{
|
|
16
|
+
ref: string;
|
|
17
|
+
node_id: string;
|
|
18
|
+
url: string;
|
|
19
|
+
object: {
|
|
20
|
+
type: string;
|
|
21
|
+
sha: string;
|
|
22
|
+
url: string;
|
|
23
|
+
};
|
|
24
|
+
}[]>;
|
|
25
|
+
getList(query?: Record<string, string>): Promise<{
|
|
26
|
+
ref: string;
|
|
27
|
+
node_id: string;
|
|
28
|
+
url: string;
|
|
29
|
+
object: {
|
|
30
|
+
type: string;
|
|
31
|
+
sha: string;
|
|
32
|
+
url: string;
|
|
33
|
+
};
|
|
34
|
+
}[]>;
|
|
35
|
+
get(): Promise<{
|
|
36
|
+
ref: string;
|
|
37
|
+
node_id: string;
|
|
38
|
+
url: string;
|
|
39
|
+
object: {
|
|
40
|
+
type: string;
|
|
41
|
+
sha: string;
|
|
42
|
+
url: string;
|
|
43
|
+
};
|
|
44
|
+
}>;
|
|
45
|
+
post(body: unknown): Promise<{
|
|
46
|
+
ref: string;
|
|
47
|
+
node_id: string;
|
|
48
|
+
url: string;
|
|
49
|
+
object: {
|
|
50
|
+
type: string;
|
|
51
|
+
sha: string;
|
|
52
|
+
url: string;
|
|
53
|
+
};
|
|
54
|
+
}>;
|
|
55
|
+
patch(body: unknown): Promise<{
|
|
56
|
+
ref: string;
|
|
57
|
+
node_id: string;
|
|
58
|
+
url: string;
|
|
59
|
+
object: {
|
|
60
|
+
type: string;
|
|
61
|
+
sha: string;
|
|
62
|
+
url: string;
|
|
63
|
+
};
|
|
64
|
+
}>;
|
|
65
|
+
delete(): Promise<void>;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
export declare function readyGitHubReference(token: string): {
|
|
2
|
+
new (owner: string, repo: string, ref: string): {
|
|
3
|
+
ref: string;
|
|
4
|
+
get apiEndpoint(): string;
|
|
5
|
+
owner: string;
|
|
6
|
+
repo: string;
|
|
7
|
+
token: string;
|
|
8
|
+
get apiOrigin(): string;
|
|
9
|
+
get requestHeaders(): {
|
|
10
|
+
accept: string;
|
|
11
|
+
authorization: string;
|
|
12
|
+
"X-GitHub-Api-Version": string;
|
|
13
|
+
};
|
|
14
|
+
get pageSizeForRequest(): number;
|
|
15
|
+
getPagedList(query?: Record<string, string>): Promise<{
|
|
16
|
+
ref: string;
|
|
17
|
+
node_id: string;
|
|
18
|
+
url: string;
|
|
19
|
+
object: {
|
|
20
|
+
type: string;
|
|
21
|
+
sha: string;
|
|
22
|
+
url: string;
|
|
23
|
+
};
|
|
24
|
+
}[]>;
|
|
25
|
+
getList(query?: Record<string, string>): Promise<{
|
|
26
|
+
ref: string;
|
|
27
|
+
node_id: string;
|
|
28
|
+
url: string;
|
|
29
|
+
object: {
|
|
30
|
+
type: string;
|
|
31
|
+
sha: string;
|
|
32
|
+
url: string;
|
|
33
|
+
};
|
|
34
|
+
}[]>;
|
|
35
|
+
get(): Promise<{
|
|
36
|
+
ref: string;
|
|
37
|
+
node_id: string;
|
|
38
|
+
url: string;
|
|
39
|
+
object: {
|
|
40
|
+
type: string;
|
|
41
|
+
sha: string;
|
|
42
|
+
url: string;
|
|
43
|
+
};
|
|
44
|
+
}>;
|
|
45
|
+
post(body: {
|
|
46
|
+
sha: string;
|
|
47
|
+
force?: boolean;
|
|
48
|
+
}): Promise<{
|
|
49
|
+
ref: string;
|
|
50
|
+
node_id: string;
|
|
51
|
+
url: string;
|
|
52
|
+
object: {
|
|
53
|
+
type: string;
|
|
54
|
+
sha: string;
|
|
55
|
+
url: string;
|
|
56
|
+
};
|
|
57
|
+
}>;
|
|
58
|
+
patch(body: {
|
|
59
|
+
sha: string;
|
|
60
|
+
force?: boolean;
|
|
61
|
+
}): Promise<{
|
|
62
|
+
ref: string;
|
|
63
|
+
node_id: string;
|
|
64
|
+
url: string;
|
|
65
|
+
object: {
|
|
66
|
+
type: string;
|
|
67
|
+
sha: string;
|
|
68
|
+
url: string;
|
|
69
|
+
};
|
|
70
|
+
}>;
|
|
71
|
+
delete(): Promise<void>;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
export declare function readyGitHubRepositoryArtifact(token: string): {
|
|
2
|
+
new (owner: string, repo: string, artifactId: number): {
|
|
3
|
+
artifactId: number;
|
|
4
|
+
get apiEndpoint(): string;
|
|
5
|
+
downloadBlob(): Promise<Blob>;
|
|
6
|
+
owner: string;
|
|
7
|
+
repo: string;
|
|
8
|
+
token: string;
|
|
9
|
+
get apiOrigin(): string;
|
|
10
|
+
get requestHeaders(): {
|
|
11
|
+
accept: string;
|
|
12
|
+
authorization: string;
|
|
13
|
+
"X-GitHub-Api-Version": string;
|
|
14
|
+
};
|
|
15
|
+
get pageSizeForRequest(): number;
|
|
16
|
+
getPagedList(query?: Record<string, string>): Promise<{
|
|
17
|
+
id: number;
|
|
18
|
+
node_id: string;
|
|
19
|
+
name: string;
|
|
20
|
+
size_in_bytes: number;
|
|
21
|
+
url: string;
|
|
22
|
+
archive_download_url: string;
|
|
23
|
+
expired: boolean;
|
|
24
|
+
created_at: string | null;
|
|
25
|
+
expires_at: string | null;
|
|
26
|
+
updated_at: string | null;
|
|
27
|
+
digest?: string | null;
|
|
28
|
+
workflow_run?: {
|
|
29
|
+
id?: number;
|
|
30
|
+
repository_id?: number;
|
|
31
|
+
head_repository_id?: number;
|
|
32
|
+
head_branch?: string;
|
|
33
|
+
head_sha?: string;
|
|
34
|
+
} | null;
|
|
35
|
+
}[]>;
|
|
36
|
+
getList(query?: Record<string, string>): Promise<{
|
|
37
|
+
id: number;
|
|
38
|
+
node_id: string;
|
|
39
|
+
name: string;
|
|
40
|
+
size_in_bytes: number;
|
|
41
|
+
url: string;
|
|
42
|
+
archive_download_url: string;
|
|
43
|
+
expired: boolean;
|
|
44
|
+
created_at: string | null;
|
|
45
|
+
expires_at: string | null;
|
|
46
|
+
updated_at: string | null;
|
|
47
|
+
digest?: string | null;
|
|
48
|
+
workflow_run?: {
|
|
49
|
+
id?: number;
|
|
50
|
+
repository_id?: number;
|
|
51
|
+
head_repository_id?: number;
|
|
52
|
+
head_branch?: string;
|
|
53
|
+
head_sha?: string;
|
|
54
|
+
} | null;
|
|
55
|
+
}[]>;
|
|
56
|
+
get(): Promise<{
|
|
57
|
+
id: number;
|
|
58
|
+
node_id: string;
|
|
59
|
+
name: string;
|
|
60
|
+
size_in_bytes: number;
|
|
61
|
+
url: string;
|
|
62
|
+
archive_download_url: string;
|
|
63
|
+
expired: boolean;
|
|
64
|
+
created_at: string | null;
|
|
65
|
+
expires_at: string | null;
|
|
66
|
+
updated_at: string | null;
|
|
67
|
+
digest?: string | null;
|
|
68
|
+
workflow_run?: {
|
|
69
|
+
id?: number;
|
|
70
|
+
repository_id?: number;
|
|
71
|
+
head_repository_id?: number;
|
|
72
|
+
head_branch?: string;
|
|
73
|
+
head_sha?: string;
|
|
74
|
+
} | null;
|
|
75
|
+
}>;
|
|
76
|
+
post(body: unknown): Promise<{
|
|
77
|
+
id: number;
|
|
78
|
+
node_id: string;
|
|
79
|
+
name: string;
|
|
80
|
+
size_in_bytes: number;
|
|
81
|
+
url: string;
|
|
82
|
+
archive_download_url: string;
|
|
83
|
+
expired: boolean;
|
|
84
|
+
created_at: string | null;
|
|
85
|
+
expires_at: string | null;
|
|
86
|
+
updated_at: string | null;
|
|
87
|
+
digest?: string | null;
|
|
88
|
+
workflow_run?: {
|
|
89
|
+
id?: number;
|
|
90
|
+
repository_id?: number;
|
|
91
|
+
head_repository_id?: number;
|
|
92
|
+
head_branch?: string;
|
|
93
|
+
head_sha?: string;
|
|
94
|
+
} | null;
|
|
95
|
+
}>;
|
|
96
|
+
patch(body: unknown): Promise<{
|
|
97
|
+
id: number;
|
|
98
|
+
node_id: string;
|
|
99
|
+
name: string;
|
|
100
|
+
size_in_bytes: number;
|
|
101
|
+
url: string;
|
|
102
|
+
archive_download_url: string;
|
|
103
|
+
expired: boolean;
|
|
104
|
+
created_at: string | null;
|
|
105
|
+
expires_at: string | null;
|
|
106
|
+
updated_at: string | null;
|
|
107
|
+
digest?: string | null;
|
|
108
|
+
workflow_run?: {
|
|
109
|
+
id?: number;
|
|
110
|
+
repository_id?: number;
|
|
111
|
+
head_repository_id?: number;
|
|
112
|
+
head_branch?: string;
|
|
113
|
+
head_sha?: string;
|
|
114
|
+
} | null;
|
|
115
|
+
}>;
|
|
116
|
+
delete(): Promise<void>;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
export declare function readyGitHubRepositoryArtifacts(token: string): {
|
|
2
|
+
new (owner: string, repo: string): {
|
|
3
|
+
get apiEndpoint(): string;
|
|
4
|
+
get pageSizeForRequest(): number;
|
|
5
|
+
getList(query?: {
|
|
6
|
+
name: string;
|
|
7
|
+
}): Promise<{
|
|
8
|
+
id: number;
|
|
9
|
+
node_id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
size_in_bytes: number;
|
|
12
|
+
url: string;
|
|
13
|
+
archive_download_url: string;
|
|
14
|
+
expired: boolean;
|
|
15
|
+
created_at: string | null;
|
|
16
|
+
expires_at: string | null;
|
|
17
|
+
updated_at: string | null;
|
|
18
|
+
digest?: string | null;
|
|
19
|
+
workflow_run?: {
|
|
20
|
+
id?: number;
|
|
21
|
+
repository_id?: number;
|
|
22
|
+
head_repository_id?: number;
|
|
23
|
+
head_branch?: string;
|
|
24
|
+
head_sha?: string;
|
|
25
|
+
} | null;
|
|
26
|
+
}[]>;
|
|
27
|
+
owner: string;
|
|
28
|
+
repo: string;
|
|
29
|
+
token: string;
|
|
30
|
+
get apiOrigin(): string;
|
|
31
|
+
get requestHeaders(): {
|
|
32
|
+
accept: string;
|
|
33
|
+
authorization: string;
|
|
34
|
+
"X-GitHub-Api-Version": string;
|
|
35
|
+
};
|
|
36
|
+
getPagedList(query?: Record<string, string>): Promise<{
|
|
37
|
+
id: number;
|
|
38
|
+
node_id: string;
|
|
39
|
+
name: string;
|
|
40
|
+
size_in_bytes: number;
|
|
41
|
+
url: string;
|
|
42
|
+
archive_download_url: string;
|
|
43
|
+
expired: boolean;
|
|
44
|
+
created_at: string | null;
|
|
45
|
+
expires_at: string | null;
|
|
46
|
+
updated_at: string | null;
|
|
47
|
+
digest?: string | null;
|
|
48
|
+
workflow_run?: {
|
|
49
|
+
id?: number;
|
|
50
|
+
repository_id?: number;
|
|
51
|
+
head_repository_id?: number;
|
|
52
|
+
head_branch?: string;
|
|
53
|
+
head_sha?: string;
|
|
54
|
+
} | null;
|
|
55
|
+
}[]>;
|
|
56
|
+
get(): Promise<{
|
|
57
|
+
id: number;
|
|
58
|
+
node_id: string;
|
|
59
|
+
name: string;
|
|
60
|
+
size_in_bytes: number;
|
|
61
|
+
url: string;
|
|
62
|
+
archive_download_url: string;
|
|
63
|
+
expired: boolean;
|
|
64
|
+
created_at: string | null;
|
|
65
|
+
expires_at: string | null;
|
|
66
|
+
updated_at: string | null;
|
|
67
|
+
digest?: string | null;
|
|
68
|
+
workflow_run?: {
|
|
69
|
+
id?: number;
|
|
70
|
+
repository_id?: number;
|
|
71
|
+
head_repository_id?: number;
|
|
72
|
+
head_branch?: string;
|
|
73
|
+
head_sha?: string;
|
|
74
|
+
} | null;
|
|
75
|
+
}>;
|
|
76
|
+
post(body: unknown): Promise<{
|
|
77
|
+
id: number;
|
|
78
|
+
node_id: string;
|
|
79
|
+
name: string;
|
|
80
|
+
size_in_bytes: number;
|
|
81
|
+
url: string;
|
|
82
|
+
archive_download_url: string;
|
|
83
|
+
expired: boolean;
|
|
84
|
+
created_at: string | null;
|
|
85
|
+
expires_at: string | null;
|
|
86
|
+
updated_at: string | null;
|
|
87
|
+
digest?: string | null;
|
|
88
|
+
workflow_run?: {
|
|
89
|
+
id?: number;
|
|
90
|
+
repository_id?: number;
|
|
91
|
+
head_repository_id?: number;
|
|
92
|
+
head_branch?: string;
|
|
93
|
+
head_sha?: string;
|
|
94
|
+
} | null;
|
|
95
|
+
}>;
|
|
96
|
+
patch(body: unknown): Promise<{
|
|
97
|
+
id: number;
|
|
98
|
+
node_id: string;
|
|
99
|
+
name: string;
|
|
100
|
+
size_in_bytes: number;
|
|
101
|
+
url: string;
|
|
102
|
+
archive_download_url: string;
|
|
103
|
+
expired: boolean;
|
|
104
|
+
created_at: string | null;
|
|
105
|
+
expires_at: string | null;
|
|
106
|
+
updated_at: string | null;
|
|
107
|
+
digest?: string | null;
|
|
108
|
+
workflow_run?: {
|
|
109
|
+
id?: number;
|
|
110
|
+
repository_id?: number;
|
|
111
|
+
head_repository_id?: number;
|
|
112
|
+
head_branch?: string;
|
|
113
|
+
head_sha?: string;
|
|
114
|
+
} | null;
|
|
115
|
+
}>;
|
|
116
|
+
delete(): Promise<void>;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
export declare function readyGitHubRepositoryBranch(token: string): {
|
|
2
|
+
new (owner: string, repo: string, branch: string): {
|
|
3
|
+
branch: string;
|
|
4
|
+
get apiEndpoint(): string;
|
|
5
|
+
owner: string;
|
|
6
|
+
repo: string;
|
|
7
|
+
token: string;
|
|
8
|
+
get apiOrigin(): string;
|
|
9
|
+
get requestHeaders(): {
|
|
10
|
+
accept: string;
|
|
11
|
+
authorization: string;
|
|
12
|
+
"X-GitHub-Api-Version": string;
|
|
13
|
+
};
|
|
14
|
+
get pageSizeForRequest(): number;
|
|
15
|
+
getPagedList(query?: Record<string, string>): Promise<{
|
|
16
|
+
name: string;
|
|
17
|
+
commit: import("@octokit/openapi-types").components["schemas"]["commit"];
|
|
18
|
+
_links: {
|
|
19
|
+
html: string;
|
|
20
|
+
self: string;
|
|
21
|
+
};
|
|
22
|
+
protected: boolean;
|
|
23
|
+
protection: import("@octokit/openapi-types").components["schemas"]["branch-protection"];
|
|
24
|
+
protection_url: string;
|
|
25
|
+
pattern?: string;
|
|
26
|
+
required_approving_review_count?: number;
|
|
27
|
+
}[]>;
|
|
28
|
+
getList(query?: Record<string, string>): Promise<{
|
|
29
|
+
name: string;
|
|
30
|
+
commit: import("@octokit/openapi-types").components["schemas"]["commit"];
|
|
31
|
+
_links: {
|
|
32
|
+
html: string;
|
|
33
|
+
self: string;
|
|
34
|
+
};
|
|
35
|
+
protected: boolean;
|
|
36
|
+
protection: import("@octokit/openapi-types").components["schemas"]["branch-protection"];
|
|
37
|
+
protection_url: string;
|
|
38
|
+
pattern?: string;
|
|
39
|
+
required_approving_review_count?: number;
|
|
40
|
+
}[]>;
|
|
41
|
+
get(): Promise<{
|
|
42
|
+
name: string;
|
|
43
|
+
commit: import("@octokit/openapi-types").components["schemas"]["commit"];
|
|
44
|
+
_links: {
|
|
45
|
+
html: string;
|
|
46
|
+
self: string;
|
|
47
|
+
};
|
|
48
|
+
protected: boolean;
|
|
49
|
+
protection: import("@octokit/openapi-types").components["schemas"]["branch-protection"];
|
|
50
|
+
protection_url: string;
|
|
51
|
+
pattern?: string;
|
|
52
|
+
required_approving_review_count?: number;
|
|
53
|
+
}>;
|
|
54
|
+
post(body: unknown): Promise<{
|
|
55
|
+
name: string;
|
|
56
|
+
commit: import("@octokit/openapi-types").components["schemas"]["commit"];
|
|
57
|
+
_links: {
|
|
58
|
+
html: string;
|
|
59
|
+
self: string;
|
|
60
|
+
};
|
|
61
|
+
protected: boolean;
|
|
62
|
+
protection: import("@octokit/openapi-types").components["schemas"]["branch-protection"];
|
|
63
|
+
protection_url: string;
|
|
64
|
+
pattern?: string;
|
|
65
|
+
required_approving_review_count?: number;
|
|
66
|
+
}>;
|
|
67
|
+
patch(body: unknown): Promise<{
|
|
68
|
+
name: string;
|
|
69
|
+
commit: import("@octokit/openapi-types").components["schemas"]["commit"];
|
|
70
|
+
_links: {
|
|
71
|
+
html: string;
|
|
72
|
+
self: string;
|
|
73
|
+
};
|
|
74
|
+
protected: boolean;
|
|
75
|
+
protection: import("@octokit/openapi-types").components["schemas"]["branch-protection"];
|
|
76
|
+
protection_url: string;
|
|
77
|
+
pattern?: string;
|
|
78
|
+
required_approving_review_count?: number;
|
|
79
|
+
}>;
|
|
80
|
+
delete(): Promise<void>;
|
|
81
|
+
};
|
|
82
|
+
};
|