@tomsd/github-repo-js 0.2.4 → 0.3.0

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.
@@ -10,18 +10,78 @@ export declare function readyGitHubPullCommits(token: string): {
10
10
  comments_url: string;
11
11
  commit: {
12
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"];
13
+ author: {
14
+ name?: string;
15
+ email?: string;
16
+ date?: string;
17
+ } | null;
18
+ committer: {
19
+ name?: string;
20
+ email?: string;
21
+ date?: string;
22
+ } | null;
15
23
  message: string;
16
24
  comment_count: number;
17
25
  tree: {
18
26
  sha: string;
19
27
  url: string;
20
28
  };
21
- verification?: import("@octokit/openapi-types").components["schemas"]["verification"];
29
+ verification?: {
30
+ verified: boolean;
31
+ reason: string;
32
+ payload: string | null;
33
+ signature: string | null;
34
+ verified_at: string | null;
35
+ };
22
36
  };
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;
37
+ author: {
38
+ name?: string | null;
39
+ email?: string | null;
40
+ login: string;
41
+ id: number;
42
+ node_id: string;
43
+ avatar_url: string;
44
+ gravatar_id: string | null;
45
+ url: string;
46
+ html_url: string;
47
+ followers_url: string;
48
+ following_url: string;
49
+ gists_url: string;
50
+ starred_url: string;
51
+ subscriptions_url: string;
52
+ organizations_url: string;
53
+ repos_url: string;
54
+ events_url: string;
55
+ received_events_url: string;
56
+ type: string;
57
+ site_admin: boolean;
58
+ starred_at?: string;
59
+ user_view_type?: string;
60
+ } | Record<string, never> | null;
61
+ committer: {
62
+ name?: string | null;
63
+ email?: string | null;
64
+ login: string;
65
+ id: number;
66
+ node_id: string;
67
+ avatar_url: string;
68
+ gravatar_id: string | null;
69
+ url: string;
70
+ html_url: string;
71
+ followers_url: string;
72
+ following_url: string;
73
+ gists_url: string;
74
+ starred_url: string;
75
+ subscriptions_url: string;
76
+ organizations_url: string;
77
+ repos_url: string;
78
+ events_url: string;
79
+ received_events_url: string;
80
+ type: string;
81
+ site_admin: boolean;
82
+ starred_at?: string;
83
+ user_view_type?: string;
84
+ } | Record<string, never> | null;
25
85
  parents: {
26
86
  sha: string;
27
87
  url: string;
@@ -32,7 +92,19 @@ export declare function readyGitHubPullCommits(token: string): {
32
92
  deletions?: number;
33
93
  total?: number;
34
94
  };
35
- files?: import("@octokit/openapi-types").components["schemas"]["diff-entry"][];
95
+ files?: {
96
+ sha: string | null;
97
+ filename: string;
98
+ status: "added" | "removed" | "modified" | "renamed" | "copied" | "changed" | "unchanged";
99
+ additions: number;
100
+ deletions: number;
101
+ changes: number;
102
+ blob_url: string;
103
+ raw_url: string;
104
+ contents_url: string;
105
+ patch?: string;
106
+ previous_filename?: string;
107
+ }[];
36
108
  }[]>;
37
109
  pullNumber: number;
38
110
  owner: string;
@@ -52,18 +124,78 @@ export declare function readyGitHubPullCommits(token: string): {
52
124
  comments_url: string;
53
125
  commit: {
54
126
  url: string;
55
- author: import("@octokit/openapi-types").components["schemas"]["nullable-git-user"];
56
- committer: import("@octokit/openapi-types").components["schemas"]["nullable-git-user"];
127
+ author: {
128
+ name?: string;
129
+ email?: string;
130
+ date?: string;
131
+ } | null;
132
+ committer: {
133
+ name?: string;
134
+ email?: string;
135
+ date?: string;
136
+ } | null;
57
137
  message: string;
58
138
  comment_count: number;
59
139
  tree: {
60
140
  sha: string;
61
141
  url: string;
62
142
  };
63
- verification?: import("@octokit/openapi-types").components["schemas"]["verification"];
143
+ verification?: {
144
+ verified: boolean;
145
+ reason: string;
146
+ payload: string | null;
147
+ signature: string | null;
148
+ verified_at: string | null;
149
+ };
64
150
  };
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;
151
+ author: {
152
+ name?: string | null;
153
+ email?: string | null;
154
+ login: string;
155
+ id: number;
156
+ node_id: string;
157
+ avatar_url: string;
158
+ gravatar_id: string | null;
159
+ url: string;
160
+ html_url: string;
161
+ followers_url: string;
162
+ following_url: string;
163
+ gists_url: string;
164
+ starred_url: string;
165
+ subscriptions_url: string;
166
+ organizations_url: string;
167
+ repos_url: string;
168
+ events_url: string;
169
+ received_events_url: string;
170
+ type: string;
171
+ site_admin: boolean;
172
+ starred_at?: string;
173
+ user_view_type?: string;
174
+ } | Record<string, never> | null;
175
+ committer: {
176
+ name?: string | null;
177
+ email?: string | null;
178
+ login: string;
179
+ id: number;
180
+ node_id: string;
181
+ avatar_url: string;
182
+ gravatar_id: string | null;
183
+ url: string;
184
+ html_url: string;
185
+ followers_url: string;
186
+ following_url: string;
187
+ gists_url: string;
188
+ starred_url: string;
189
+ subscriptions_url: string;
190
+ organizations_url: string;
191
+ repos_url: string;
192
+ events_url: string;
193
+ received_events_url: string;
194
+ type: string;
195
+ site_admin: boolean;
196
+ starred_at?: string;
197
+ user_view_type?: string;
198
+ } | Record<string, never> | null;
67
199
  parents: {
68
200
  sha: string;
69
201
  url: string;
@@ -74,7 +206,19 @@ export declare function readyGitHubPullCommits(token: string): {
74
206
  deletions?: number;
75
207
  total?: number;
76
208
  };
77
- files?: import("@octokit/openapi-types").components["schemas"]["diff-entry"][];
209
+ files?: {
210
+ sha: string | null;
211
+ filename: string;
212
+ status: "added" | "removed" | "modified" | "renamed" | "copied" | "changed" | "unchanged";
213
+ additions: number;
214
+ deletions: number;
215
+ changes: number;
216
+ blob_url: string;
217
+ raw_url: string;
218
+ contents_url: string;
219
+ patch?: string;
220
+ previous_filename?: string;
221
+ }[];
78
222
  }[]>;
79
223
  get(): Promise<{
80
224
  url: string;
@@ -84,18 +228,78 @@ export declare function readyGitHubPullCommits(token: string): {
84
228
  comments_url: string;
85
229
  commit: {
86
230
  url: string;
87
- author: import("@octokit/openapi-types").components["schemas"]["nullable-git-user"];
88
- committer: import("@octokit/openapi-types").components["schemas"]["nullable-git-user"];
231
+ author: {
232
+ name?: string;
233
+ email?: string;
234
+ date?: string;
235
+ } | null;
236
+ committer: {
237
+ name?: string;
238
+ email?: string;
239
+ date?: string;
240
+ } | null;
89
241
  message: string;
90
242
  comment_count: number;
91
243
  tree: {
92
244
  sha: string;
93
245
  url: string;
94
246
  };
95
- verification?: import("@octokit/openapi-types").components["schemas"]["verification"];
247
+ verification?: {
248
+ verified: boolean;
249
+ reason: string;
250
+ payload: string | null;
251
+ signature: string | null;
252
+ verified_at: string | null;
253
+ };
96
254
  };
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;
255
+ author: {
256
+ name?: string | null;
257
+ email?: string | null;
258
+ login: string;
259
+ id: number;
260
+ node_id: string;
261
+ avatar_url: string;
262
+ gravatar_id: string | null;
263
+ url: string;
264
+ html_url: string;
265
+ followers_url: string;
266
+ following_url: string;
267
+ gists_url: string;
268
+ starred_url: string;
269
+ subscriptions_url: string;
270
+ organizations_url: string;
271
+ repos_url: string;
272
+ events_url: string;
273
+ received_events_url: string;
274
+ type: string;
275
+ site_admin: boolean;
276
+ starred_at?: string;
277
+ user_view_type?: string;
278
+ } | Record<string, never> | null;
279
+ committer: {
280
+ name?: string | null;
281
+ email?: string | null;
282
+ login: string;
283
+ id: number;
284
+ node_id: string;
285
+ avatar_url: string;
286
+ gravatar_id: string | null;
287
+ url: string;
288
+ html_url: string;
289
+ followers_url: string;
290
+ following_url: string;
291
+ gists_url: string;
292
+ starred_url: string;
293
+ subscriptions_url: string;
294
+ organizations_url: string;
295
+ repos_url: string;
296
+ events_url: string;
297
+ received_events_url: string;
298
+ type: string;
299
+ site_admin: boolean;
300
+ starred_at?: string;
301
+ user_view_type?: string;
302
+ } | Record<string, never> | null;
99
303
  parents: {
100
304
  sha: string;
101
305
  url: string;
@@ -106,7 +310,19 @@ export declare function readyGitHubPullCommits(token: string): {
106
310
  deletions?: number;
107
311
  total?: number;
108
312
  };
109
- files?: import("@octokit/openapi-types").components["schemas"]["diff-entry"][];
313
+ files?: {
314
+ sha: string | null;
315
+ filename: string;
316
+ status: "added" | "removed" | "modified" | "renamed" | "copied" | "changed" | "unchanged";
317
+ additions: number;
318
+ deletions: number;
319
+ changes: number;
320
+ blob_url: string;
321
+ raw_url: string;
322
+ contents_url: string;
323
+ patch?: string;
324
+ previous_filename?: string;
325
+ }[];
110
326
  }>;
111
327
  post(body: unknown): Promise<{
112
328
  url: string;
@@ -116,18 +332,78 @@ export declare function readyGitHubPullCommits(token: string): {
116
332
  comments_url: string;
117
333
  commit: {
118
334
  url: string;
119
- author: import("@octokit/openapi-types").components["schemas"]["nullable-git-user"];
120
- committer: import("@octokit/openapi-types").components["schemas"]["nullable-git-user"];
335
+ author: {
336
+ name?: string;
337
+ email?: string;
338
+ date?: string;
339
+ } | null;
340
+ committer: {
341
+ name?: string;
342
+ email?: string;
343
+ date?: string;
344
+ } | null;
121
345
  message: string;
122
346
  comment_count: number;
123
347
  tree: {
124
348
  sha: string;
125
349
  url: string;
126
350
  };
127
- verification?: import("@octokit/openapi-types").components["schemas"]["verification"];
351
+ verification?: {
352
+ verified: boolean;
353
+ reason: string;
354
+ payload: string | null;
355
+ signature: string | null;
356
+ verified_at: string | null;
357
+ };
128
358
  };
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;
359
+ author: {
360
+ name?: string | null;
361
+ email?: string | null;
362
+ login: string;
363
+ id: number;
364
+ node_id: string;
365
+ avatar_url: string;
366
+ gravatar_id: string | null;
367
+ url: string;
368
+ html_url: string;
369
+ followers_url: string;
370
+ following_url: string;
371
+ gists_url: string;
372
+ starred_url: string;
373
+ subscriptions_url: string;
374
+ organizations_url: string;
375
+ repos_url: string;
376
+ events_url: string;
377
+ received_events_url: string;
378
+ type: string;
379
+ site_admin: boolean;
380
+ starred_at?: string;
381
+ user_view_type?: string;
382
+ } | Record<string, never> | null;
383
+ committer: {
384
+ name?: string | null;
385
+ email?: string | null;
386
+ login: string;
387
+ id: number;
388
+ node_id: string;
389
+ avatar_url: string;
390
+ gravatar_id: string | null;
391
+ url: string;
392
+ html_url: string;
393
+ followers_url: string;
394
+ following_url: string;
395
+ gists_url: string;
396
+ starred_url: string;
397
+ subscriptions_url: string;
398
+ organizations_url: string;
399
+ repos_url: string;
400
+ events_url: string;
401
+ received_events_url: string;
402
+ type: string;
403
+ site_admin: boolean;
404
+ starred_at?: string;
405
+ user_view_type?: string;
406
+ } | Record<string, never> | null;
131
407
  parents: {
132
408
  sha: string;
133
409
  url: string;
@@ -138,7 +414,19 @@ export declare function readyGitHubPullCommits(token: string): {
138
414
  deletions?: number;
139
415
  total?: number;
140
416
  };
141
- files?: import("@octokit/openapi-types").components["schemas"]["diff-entry"][];
417
+ files?: {
418
+ sha: string | null;
419
+ filename: string;
420
+ status: "added" | "removed" | "modified" | "renamed" | "copied" | "changed" | "unchanged";
421
+ additions: number;
422
+ deletions: number;
423
+ changes: number;
424
+ blob_url: string;
425
+ raw_url: string;
426
+ contents_url: string;
427
+ patch?: string;
428
+ previous_filename?: string;
429
+ }[];
142
430
  }>;
143
431
  patch(body: unknown): Promise<{
144
432
  url: string;
@@ -148,18 +436,78 @@ export declare function readyGitHubPullCommits(token: string): {
148
436
  comments_url: string;
149
437
  commit: {
150
438
  url: string;
151
- author: import("@octokit/openapi-types").components["schemas"]["nullable-git-user"];
152
- committer: import("@octokit/openapi-types").components["schemas"]["nullable-git-user"];
439
+ author: {
440
+ name?: string;
441
+ email?: string;
442
+ date?: string;
443
+ } | null;
444
+ committer: {
445
+ name?: string;
446
+ email?: string;
447
+ date?: string;
448
+ } | null;
153
449
  message: string;
154
450
  comment_count: number;
155
451
  tree: {
156
452
  sha: string;
157
453
  url: string;
158
454
  };
159
- verification?: import("@octokit/openapi-types").components["schemas"]["verification"];
455
+ verification?: {
456
+ verified: boolean;
457
+ reason: string;
458
+ payload: string | null;
459
+ signature: string | null;
460
+ verified_at: string | null;
461
+ };
160
462
  };
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;
463
+ author: {
464
+ name?: string | null;
465
+ email?: string | null;
466
+ login: string;
467
+ id: number;
468
+ node_id: string;
469
+ avatar_url: string;
470
+ gravatar_id: string | null;
471
+ url: string;
472
+ html_url: string;
473
+ followers_url: string;
474
+ following_url: string;
475
+ gists_url: string;
476
+ starred_url: string;
477
+ subscriptions_url: string;
478
+ organizations_url: string;
479
+ repos_url: string;
480
+ events_url: string;
481
+ received_events_url: string;
482
+ type: string;
483
+ site_admin: boolean;
484
+ starred_at?: string;
485
+ user_view_type?: string;
486
+ } | Record<string, never> | null;
487
+ committer: {
488
+ name?: string | null;
489
+ email?: string | null;
490
+ login: string;
491
+ id: number;
492
+ node_id: string;
493
+ avatar_url: string;
494
+ gravatar_id: string | null;
495
+ url: string;
496
+ html_url: string;
497
+ followers_url: string;
498
+ following_url: string;
499
+ gists_url: string;
500
+ starred_url: string;
501
+ subscriptions_url: string;
502
+ organizations_url: string;
503
+ repos_url: string;
504
+ events_url: string;
505
+ received_events_url: string;
506
+ type: string;
507
+ site_admin: boolean;
508
+ starred_at?: string;
509
+ user_view_type?: string;
510
+ } | Record<string, never> | null;
163
511
  parents: {
164
512
  sha: string;
165
513
  url: string;
@@ -170,7 +518,19 @@ export declare function readyGitHubPullCommits(token: string): {
170
518
  deletions?: number;
171
519
  total?: number;
172
520
  };
173
- files?: import("@octokit/openapi-types").components["schemas"]["diff-entry"][];
521
+ files?: {
522
+ sha: string | null;
523
+ filename: string;
524
+ status: "added" | "removed" | "modified" | "renamed" | "copied" | "changed" | "unchanged";
525
+ additions: number;
526
+ deletions: number;
527
+ changes: number;
528
+ blob_url: string;
529
+ raw_url: string;
530
+ contents_url: string;
531
+ patch?: string;
532
+ previous_filename?: string;
533
+ }[];
174
534
  }>;
175
535
  delete(): Promise<void>;
176
536
  };