@octokit/webhooks 6.1.0 → 6.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.
- package/.travis.yml +3 -5
- package/README.md +4 -2
- package/event-handler/receive.js +1 -1
- package/event-handler/wrap-error-handler.js +2 -2
- package/index.d.ts +604 -88
- package/lib/webhook-names.json +4 -0
- package/package.json +6 -6
package/.travis.yml
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
language: node_js
|
|
2
|
-
cache:
|
|
3
|
-
directories:
|
|
4
|
-
- ~/.npm
|
|
5
|
-
|
|
2
|
+
cache: npm
|
|
6
3
|
node_js: lts/*
|
|
7
4
|
|
|
8
5
|
# Trigger a push build on master and greenkeeper branches + PRs build on every branches
|
|
@@ -35,10 +32,11 @@ jobs:
|
|
|
35
32
|
- stage: test
|
|
36
33
|
node_js: 8
|
|
37
34
|
- node_js: 10
|
|
35
|
+
- node_js: 12
|
|
38
36
|
|
|
39
37
|
# run semantic-release and coverage in parallel
|
|
40
38
|
- stage: release
|
|
41
|
-
script:
|
|
39
|
+
script: npx semantic-release
|
|
42
40
|
- script:
|
|
43
41
|
- npm run test
|
|
44
42
|
- npm run coverage:upload
|
package/README.md
CHANGED
|
@@ -351,7 +351,7 @@ webhooks.on(eventNames, handler)
|
|
|
351
351
|
</td>
|
|
352
352
|
<td>
|
|
353
353
|
<strong>Required.</strong>
|
|
354
|
-
Name of the event. One of <a href="
|
|
354
|
+
Name of the event. One of <a href="https://developer.github.com/webhooks/#events">GitHub's supported event names</a>.
|
|
355
355
|
</td>
|
|
356
356
|
</tr>
|
|
357
357
|
<tr>
|
|
@@ -407,7 +407,7 @@ webhooks.removeListener(eventNames, handler)
|
|
|
407
407
|
</td>
|
|
408
408
|
<td>
|
|
409
409
|
<strong>Required.</strong>
|
|
410
|
-
Name of the event. One of <a href="
|
|
410
|
+
Name of the event. One of <a href="https://developer.github.com/webhooks/#events">GitHub’s supported event names</a>.
|
|
411
411
|
</td>
|
|
412
412
|
</tr>
|
|
413
413
|
<tr>
|
|
@@ -535,7 +535,9 @@ If there are actions for a webhook, events are emitted for both, the webhook nam
|
|
|
535
535
|
<tr ><td class="name-td td_text"><a href="https://developer.github.com/v3/activity/events/types/#pullrequestreviewevent"><code>pull_request_review</code></a></td><td class="actions-td td_text"><code>dismissed</code><br><code>edited</code><br><code>submitted</code></td></tr>
|
|
536
536
|
<tr ><td class="name-td td_text"><a href="https://developer.github.com/v3/activity/events/types/#pullrequestreviewcommentevent"><code>pull_request_review_comment</code></a></td><td class="actions-td td_text"><code>created</code><br><code>deleted</code><br><code>edited</code></td></tr>
|
|
537
537
|
<tr ><td class="name-td td_text"><a href="https://developer.github.com/v3/activity/events/types/#pushevent"><code>push</code></a></td><td class="actions-td td_num"></td></tr>
|
|
538
|
+
<tr ><td class="name-td td_text"><a href="https://developer.github.com/v3/activity/events/types/#registrypackageevent"><code>registry_package</code></a></td><td class="actions-td td_text"><code>published</code><br><code>updated</code></td></tr>
|
|
538
539
|
<tr ><td class="name-td td_text"><a href="https://developer.github.com/v3/activity/events/types/#releaseevent"><code>release</code></a></td><td class="actions-td td_text"><code>created</code><br><code>deleted</code><br><code>edited</code><br><code>prereleased</code><br><code>published</code><br><code>unpublished</code></td></tr>
|
|
540
|
+
<tr ><td class="name-td td_text"><a href="https://developer.github.com/v3/activity/events/types/#repositorydispatchevent"><code>repository_dispatch</code></a></td><td class="actions-td td_num"></td></tr>
|
|
539
541
|
<tr ><td class="name-td td_text"><a href="https://developer.github.com/v3/activity/events/types/#repositoryevent"><code>repository</code></a></td><td class="actions-td td_text"><code>archived</code><br><code>created</code><br><code>deleted</code><br><code>edited</code><br><code>privatized</code><br><code>publicized</code><br><code>renamed</code><br><code>transferred</code><br><code>unarchived</code></td></tr>
|
|
540
542
|
<tr ><td class="name-td td_text"><a href="https://developer.github.com/v3/activity/events/types/#repositoryimportevent"><code>repository_import</code></a></td><td class="actions-td td_num"></td></tr>
|
|
541
543
|
<tr ><td class="name-td td_text"><a href="https://developer.github.com/v3/activity/events/types/#repositoryvulnerabilityalertevent"><code>repository_vulnerability_alert</code></a></td><td class="actions-td td_text"><code>create</code><br><code>dismiss</code><br><code>resolve</code></td></tr>
|
package/event-handler/receive.js
CHANGED
|
@@ -23,7 +23,7 @@ function receiverHandle (state, event) {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
// flatten arrays of event listeners and remove undefined values
|
|
26
|
-
|
|
26
|
+
const hooks = [].concat(
|
|
27
27
|
state.hooks[`${event.name}.${event.payload.action}`],
|
|
28
28
|
state.hooks[event.name],
|
|
29
29
|
state.hooks['*']
|
|
@@ -11,13 +11,13 @@ function wrapErrorHandler (handler, error) {
|
|
|
11
11
|
try {
|
|
12
12
|
returnValue = handler(error)
|
|
13
13
|
} catch (error) {
|
|
14
|
-
console.log(
|
|
14
|
+
console.log('FATAL: Error occured in "error" event handler')
|
|
15
15
|
console.log(error)
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
if (returnValue && returnValue.catch) {
|
|
19
19
|
returnValue.catch(error => {
|
|
20
|
-
console.log(
|
|
20
|
+
console.log('FATAL: Error occured in "error" event handler')
|
|
21
21
|
console.log(error)
|
|
22
22
|
})
|
|
23
23
|
}
|
package/index.d.ts
CHANGED
|
@@ -79,6 +79,7 @@ declare namespace Webhooks {
|
|
|
79
79
|
description: string;
|
|
80
80
|
privacy: string;
|
|
81
81
|
url: string;
|
|
82
|
+
html_url: string;
|
|
82
83
|
members_url: string;
|
|
83
84
|
repositories_url: string;
|
|
84
85
|
permission: string;
|
|
@@ -136,6 +137,7 @@ declare namespace Webhooks {
|
|
|
136
137
|
description: string;
|
|
137
138
|
privacy: string;
|
|
138
139
|
url: string;
|
|
140
|
+
html_url: string;
|
|
139
141
|
members_url: string;
|
|
140
142
|
repositories_url: string;
|
|
141
143
|
permission: string;
|
|
@@ -171,6 +173,7 @@ declare namespace Webhooks {
|
|
|
171
173
|
type WebhookPayloadStatusBranchesItem = {
|
|
172
174
|
name: string;
|
|
173
175
|
commit: WebhookPayloadStatusBranchesItemCommit;
|
|
176
|
+
protected: boolean;
|
|
174
177
|
};
|
|
175
178
|
type WebhookPayloadStatusCommitCommitter = {
|
|
176
179
|
login: string;
|
|
@@ -332,7 +335,7 @@ declare namespace Webhooks {
|
|
|
332
335
|
action: string;
|
|
333
336
|
security_advisory: WebhookPayloadSecurityAdvisorySecurityAdvisory;
|
|
334
337
|
};
|
|
335
|
-
type
|
|
338
|
+
type WebhookPayloadRepositoryVulnerabilityAlertSender = {
|
|
336
339
|
login: string;
|
|
337
340
|
id: number;
|
|
338
341
|
node_id: string;
|
|
@@ -359,13 +362,12 @@ declare namespace Webhooks {
|
|
|
359
362
|
external_reference: string;
|
|
360
363
|
external_identifier: string;
|
|
361
364
|
fixed_in: string;
|
|
362
|
-
dismisser: WebhookPayloadRepositoryVulnerabilityAlertAlertDismisser;
|
|
363
|
-
dismiss_reason: string;
|
|
364
|
-
dismissed_at: string;
|
|
365
365
|
};
|
|
366
366
|
type WebhookPayloadRepositoryVulnerabilityAlert = {
|
|
367
367
|
action: string;
|
|
368
368
|
alert: WebhookPayloadRepositoryVulnerabilityAlertAlert;
|
|
369
|
+
repository: PayloadRepository;
|
|
370
|
+
sender: WebhookPayloadRepositoryVulnerabilityAlertSender;
|
|
369
371
|
};
|
|
370
372
|
type WebhookPayloadRepositoryImportSender = {
|
|
371
373
|
login: string;
|
|
@@ -432,6 +434,53 @@ declare namespace Webhooks {
|
|
|
432
434
|
repository: PayloadRepository;
|
|
433
435
|
sender: WebhookPayloadRepositorySender;
|
|
434
436
|
};
|
|
437
|
+
type WebhookPayloadRepositoryDispatchInstallation = {
|
|
438
|
+
id: number;
|
|
439
|
+
node_id: string;
|
|
440
|
+
};
|
|
441
|
+
type WebhookPayloadRepositoryDispatchSender = {
|
|
442
|
+
login: string;
|
|
443
|
+
id: number;
|
|
444
|
+
node_id: string;
|
|
445
|
+
avatar_url: string;
|
|
446
|
+
gravatar_id: string;
|
|
447
|
+
url: string;
|
|
448
|
+
html_url: string;
|
|
449
|
+
followers_url: string;
|
|
450
|
+
following_url: string;
|
|
451
|
+
gists_url: string;
|
|
452
|
+
starred_url: string;
|
|
453
|
+
subscriptions_url: string;
|
|
454
|
+
organizations_url: string;
|
|
455
|
+
repos_url: string;
|
|
456
|
+
events_url: string;
|
|
457
|
+
received_events_url: string;
|
|
458
|
+
type: string;
|
|
459
|
+
site_admin: boolean;
|
|
460
|
+
};
|
|
461
|
+
type WebhookPayloadRepositoryDispatchOrganization = {
|
|
462
|
+
login: string;
|
|
463
|
+
id: number;
|
|
464
|
+
node_id: string;
|
|
465
|
+
url: string;
|
|
466
|
+
repos_url: string;
|
|
467
|
+
events_url: string;
|
|
468
|
+
hooks_url: string;
|
|
469
|
+
issues_url: string;
|
|
470
|
+
members_url: string;
|
|
471
|
+
public_members_url: string;
|
|
472
|
+
avatar_url: string;
|
|
473
|
+
description: string;
|
|
474
|
+
};
|
|
475
|
+
type WebhookPayloadRepositoryDispatch = {
|
|
476
|
+
action: string;
|
|
477
|
+
branch: string;
|
|
478
|
+
ref: string;
|
|
479
|
+
repository: PayloadRepository;
|
|
480
|
+
organization: WebhookPayloadRepositoryDispatchOrganization;
|
|
481
|
+
sender: WebhookPayloadRepositoryDispatchSender;
|
|
482
|
+
installation: WebhookPayloadRepositoryDispatchInstallation;
|
|
483
|
+
};
|
|
435
484
|
type WebhookPayloadReleaseSender = {
|
|
436
485
|
login: string;
|
|
437
486
|
id: number;
|
|
@@ -498,6 +547,159 @@ declare namespace Webhooks {
|
|
|
498
547
|
repository: PayloadRepository;
|
|
499
548
|
sender: WebhookPayloadReleaseSender;
|
|
500
549
|
};
|
|
550
|
+
type WebhookPayloadRegistryPackageSender = {
|
|
551
|
+
login: string;
|
|
552
|
+
id: number;
|
|
553
|
+
node_id: string;
|
|
554
|
+
avatar_url: string;
|
|
555
|
+
gravatar_id: string;
|
|
556
|
+
url: string;
|
|
557
|
+
html_url: string;
|
|
558
|
+
followers_url: string;
|
|
559
|
+
following_url: string;
|
|
560
|
+
gists_url: string;
|
|
561
|
+
starred_url: string;
|
|
562
|
+
subscriptions_url: string;
|
|
563
|
+
organizations_url: string;
|
|
564
|
+
repos_url: string;
|
|
565
|
+
events_url: string;
|
|
566
|
+
received_events_url: string;
|
|
567
|
+
type: string;
|
|
568
|
+
site_admin: boolean;
|
|
569
|
+
};
|
|
570
|
+
type WebhookPayloadRegistryPackageRegistryPackageRegistry = {
|
|
571
|
+
about_url: string;
|
|
572
|
+
name: string;
|
|
573
|
+
type: string;
|
|
574
|
+
url: string;
|
|
575
|
+
vendor: string;
|
|
576
|
+
};
|
|
577
|
+
type WebhookPayloadRegistryPackageRegistryPackagePackageVersionAuthor = {
|
|
578
|
+
login: string;
|
|
579
|
+
id: number;
|
|
580
|
+
node_id: string;
|
|
581
|
+
avatar_url: string;
|
|
582
|
+
gravatar_id: string;
|
|
583
|
+
url: string;
|
|
584
|
+
html_url: string;
|
|
585
|
+
followers_url: string;
|
|
586
|
+
following_url: string;
|
|
587
|
+
gists_url: string;
|
|
588
|
+
starred_url: string;
|
|
589
|
+
subscriptions_url: string;
|
|
590
|
+
organizations_url: string;
|
|
591
|
+
repos_url: string;
|
|
592
|
+
events_url: string;
|
|
593
|
+
received_events_url: string;
|
|
594
|
+
type: string;
|
|
595
|
+
site_admin: boolean;
|
|
596
|
+
};
|
|
597
|
+
type WebhookPayloadRegistryPackageRegistryPackagePackageVersionPackageFilesItem = {
|
|
598
|
+
download_url: string;
|
|
599
|
+
id: number;
|
|
600
|
+
name: string;
|
|
601
|
+
sha256: string;
|
|
602
|
+
sha1: string;
|
|
603
|
+
md5: string;
|
|
604
|
+
content_type: string;
|
|
605
|
+
state: string;
|
|
606
|
+
size: number;
|
|
607
|
+
created_at: string;
|
|
608
|
+
updated_at: string;
|
|
609
|
+
};
|
|
610
|
+
type WebhookPayloadRegistryPackageRegistryPackagePackageVersionReleaseAuthor = {
|
|
611
|
+
login: string;
|
|
612
|
+
id: number;
|
|
613
|
+
node_id: string;
|
|
614
|
+
avatar_url: string;
|
|
615
|
+
gravatar_id: string;
|
|
616
|
+
url: string;
|
|
617
|
+
html_url: string;
|
|
618
|
+
followers_url: string;
|
|
619
|
+
following_url: string;
|
|
620
|
+
gists_url: string;
|
|
621
|
+
starred_url: string;
|
|
622
|
+
subscriptions_url: string;
|
|
623
|
+
organizations_url: string;
|
|
624
|
+
repos_url: string;
|
|
625
|
+
events_url: string;
|
|
626
|
+
received_events_url: string;
|
|
627
|
+
type: string;
|
|
628
|
+
site_admin: boolean;
|
|
629
|
+
};
|
|
630
|
+
type WebhookPayloadRegistryPackageRegistryPackagePackageVersionRelease = {
|
|
631
|
+
url: string;
|
|
632
|
+
html_url: string;
|
|
633
|
+
id: number;
|
|
634
|
+
tag_name: string;
|
|
635
|
+
target_commitish: string;
|
|
636
|
+
name: string;
|
|
637
|
+
draft: boolean;
|
|
638
|
+
author: WebhookPayloadRegistryPackageRegistryPackagePackageVersionReleaseAuthor;
|
|
639
|
+
prerelease: boolean;
|
|
640
|
+
created_at: string;
|
|
641
|
+
published_at: string;
|
|
642
|
+
};
|
|
643
|
+
type WebhookPayloadRegistryPackageRegistryPackagePackageVersion = {
|
|
644
|
+
id: number;
|
|
645
|
+
version: string;
|
|
646
|
+
summary: string;
|
|
647
|
+
body: string;
|
|
648
|
+
body_html: string;
|
|
649
|
+
release: WebhookPayloadRegistryPackageRegistryPackagePackageVersionRelease;
|
|
650
|
+
manifest: string;
|
|
651
|
+
html_url: string;
|
|
652
|
+
tag_name: string;
|
|
653
|
+
target_commitish: string;
|
|
654
|
+
target_oid: string;
|
|
655
|
+
draft: boolean;
|
|
656
|
+
prerelease: boolean;
|
|
657
|
+
created_at: string;
|
|
658
|
+
updated_at: string;
|
|
659
|
+
metadata: Array<any>;
|
|
660
|
+
package_files: Array<
|
|
661
|
+
WebhookPayloadRegistryPackageRegistryPackagePackageVersionPackageFilesItem
|
|
662
|
+
>;
|
|
663
|
+
author: WebhookPayloadRegistryPackageRegistryPackagePackageVersionAuthor;
|
|
664
|
+
installation_command: string;
|
|
665
|
+
};
|
|
666
|
+
type WebhookPayloadRegistryPackageRegistryPackageOwner = {
|
|
667
|
+
login: string;
|
|
668
|
+
id: number;
|
|
669
|
+
node_id: string;
|
|
670
|
+
avatar_url: string;
|
|
671
|
+
gravatar_id: string;
|
|
672
|
+
url: string;
|
|
673
|
+
html_url: string;
|
|
674
|
+
followers_url: string;
|
|
675
|
+
following_url: string;
|
|
676
|
+
gists_url: string;
|
|
677
|
+
starred_url: string;
|
|
678
|
+
subscriptions_url: string;
|
|
679
|
+
organizations_url: string;
|
|
680
|
+
repos_url: string;
|
|
681
|
+
events_url: string;
|
|
682
|
+
received_events_url: string;
|
|
683
|
+
type: string;
|
|
684
|
+
site_admin: boolean;
|
|
685
|
+
};
|
|
686
|
+
type WebhookPayloadRegistryPackageRegistryPackage = {
|
|
687
|
+
id: number;
|
|
688
|
+
name: string;
|
|
689
|
+
package_type: string;
|
|
690
|
+
html_url: string;
|
|
691
|
+
created_at: string;
|
|
692
|
+
updated_at: string;
|
|
693
|
+
owner: WebhookPayloadRegistryPackageRegistryPackageOwner;
|
|
694
|
+
package_version: WebhookPayloadRegistryPackageRegistryPackagePackageVersion;
|
|
695
|
+
registry: WebhookPayloadRegistryPackageRegistryPackageRegistry;
|
|
696
|
+
};
|
|
697
|
+
type WebhookPayloadRegistryPackage = {
|
|
698
|
+
action: string;
|
|
699
|
+
registry_package: WebhookPayloadRegistryPackageRegistryPackage;
|
|
700
|
+
repository: PayloadRepository;
|
|
701
|
+
sender: WebhookPayloadRegistryPackageSender;
|
|
702
|
+
};
|
|
501
703
|
type WebhookPayloadPushSender = {
|
|
502
704
|
login: string;
|
|
503
705
|
id: number;
|
|
@@ -613,8 +815,8 @@ declare namespace Webhooks {
|
|
|
613
815
|
node_id: string;
|
|
614
816
|
name: string;
|
|
615
817
|
full_name: string;
|
|
616
|
-
owner: WebhookPayloadPullRequestReviewCommentPullRequestBaseRepoOwner;
|
|
617
818
|
private: boolean;
|
|
819
|
+
owner: WebhookPayloadPullRequestReviewCommentPullRequestBaseRepoOwner;
|
|
618
820
|
html_url: string;
|
|
619
821
|
description: null;
|
|
620
822
|
fork: boolean;
|
|
@@ -666,7 +868,7 @@ declare namespace Webhooks {
|
|
|
666
868
|
size: number;
|
|
667
869
|
stargazers_count: number;
|
|
668
870
|
watchers_count: number;
|
|
669
|
-
language:
|
|
871
|
+
language: string;
|
|
670
872
|
has_issues: boolean;
|
|
671
873
|
has_projects: boolean;
|
|
672
874
|
has_downloads: boolean;
|
|
@@ -675,6 +877,7 @@ declare namespace Webhooks {
|
|
|
675
877
|
forks_count: number;
|
|
676
878
|
mirror_url: null;
|
|
677
879
|
archived: boolean;
|
|
880
|
+
disabled: boolean;
|
|
678
881
|
open_issues_count: number;
|
|
679
882
|
license: null;
|
|
680
883
|
forks: number;
|
|
@@ -734,8 +937,8 @@ declare namespace Webhooks {
|
|
|
734
937
|
node_id: string;
|
|
735
938
|
name: string;
|
|
736
939
|
full_name: string;
|
|
737
|
-
owner: WebhookPayloadPullRequestReviewCommentPullRequestHeadRepoOwner;
|
|
738
940
|
private: boolean;
|
|
941
|
+
owner: WebhookPayloadPullRequestReviewCommentPullRequestHeadRepoOwner;
|
|
739
942
|
html_url: string;
|
|
740
943
|
description: null;
|
|
741
944
|
fork: boolean;
|
|
@@ -787,7 +990,7 @@ declare namespace Webhooks {
|
|
|
787
990
|
size: number;
|
|
788
991
|
stargazers_count: number;
|
|
789
992
|
watchers_count: number;
|
|
790
|
-
language:
|
|
993
|
+
language: string;
|
|
791
994
|
has_issues: boolean;
|
|
792
995
|
has_projects: boolean;
|
|
793
996
|
has_downloads: boolean;
|
|
@@ -796,6 +999,7 @@ declare namespace Webhooks {
|
|
|
796
999
|
forks_count: number;
|
|
797
1000
|
mirror_url: null;
|
|
798
1001
|
archived: boolean;
|
|
1002
|
+
disabled: boolean;
|
|
799
1003
|
open_issues_count: number;
|
|
800
1004
|
license: null;
|
|
801
1005
|
forks: number;
|
|
@@ -1019,8 +1223,8 @@ declare namespace Webhooks {
|
|
|
1019
1223
|
node_id: string;
|
|
1020
1224
|
name: string;
|
|
1021
1225
|
full_name: string;
|
|
1022
|
-
owner: WebhookPayloadPullRequestReviewPullRequestBaseRepoOwner;
|
|
1023
1226
|
private: boolean;
|
|
1227
|
+
owner: WebhookPayloadPullRequestReviewPullRequestBaseRepoOwner;
|
|
1024
1228
|
html_url: string;
|
|
1025
1229
|
description: null;
|
|
1026
1230
|
fork: boolean;
|
|
@@ -1072,7 +1276,7 @@ declare namespace Webhooks {
|
|
|
1072
1276
|
size: number;
|
|
1073
1277
|
stargazers_count: number;
|
|
1074
1278
|
watchers_count: number;
|
|
1075
|
-
language:
|
|
1279
|
+
language: string;
|
|
1076
1280
|
has_issues: boolean;
|
|
1077
1281
|
has_projects: boolean;
|
|
1078
1282
|
has_downloads: boolean;
|
|
@@ -1081,6 +1285,7 @@ declare namespace Webhooks {
|
|
|
1081
1285
|
forks_count: number;
|
|
1082
1286
|
mirror_url: null;
|
|
1083
1287
|
archived: boolean;
|
|
1288
|
+
disabled: boolean;
|
|
1084
1289
|
open_issues_count: number;
|
|
1085
1290
|
license: null;
|
|
1086
1291
|
forks: number;
|
|
@@ -1140,8 +1345,8 @@ declare namespace Webhooks {
|
|
|
1140
1345
|
node_id: string;
|
|
1141
1346
|
name: string;
|
|
1142
1347
|
full_name: string;
|
|
1143
|
-
owner: WebhookPayloadPullRequestReviewPullRequestHeadRepoOwner;
|
|
1144
1348
|
private: boolean;
|
|
1349
|
+
owner: WebhookPayloadPullRequestReviewPullRequestHeadRepoOwner;
|
|
1145
1350
|
html_url: string;
|
|
1146
1351
|
description: null;
|
|
1147
1352
|
fork: boolean;
|
|
@@ -1193,7 +1398,7 @@ declare namespace Webhooks {
|
|
|
1193
1398
|
size: number;
|
|
1194
1399
|
stargazers_count: number;
|
|
1195
1400
|
watchers_count: number;
|
|
1196
|
-
language:
|
|
1401
|
+
language: string;
|
|
1197
1402
|
has_issues: boolean;
|
|
1198
1403
|
has_projects: boolean;
|
|
1199
1404
|
has_downloads: boolean;
|
|
@@ -1202,6 +1407,7 @@ declare namespace Webhooks {
|
|
|
1202
1407
|
forks_count: number;
|
|
1203
1408
|
mirror_url: null;
|
|
1204
1409
|
archived: boolean;
|
|
1410
|
+
disabled: boolean;
|
|
1205
1411
|
open_issues_count: number;
|
|
1206
1412
|
license: null;
|
|
1207
1413
|
forks: number;
|
|
@@ -1404,8 +1610,8 @@ declare namespace Webhooks {
|
|
|
1404
1610
|
node_id: string;
|
|
1405
1611
|
name: string;
|
|
1406
1612
|
full_name: string;
|
|
1407
|
-
owner: WebhookPayloadPullRequestPullRequestBaseRepoOwner;
|
|
1408
1613
|
private: boolean;
|
|
1614
|
+
owner: WebhookPayloadPullRequestPullRequestBaseRepoOwner;
|
|
1409
1615
|
html_url: string;
|
|
1410
1616
|
description: null;
|
|
1411
1617
|
fork: boolean;
|
|
@@ -1466,6 +1672,7 @@ declare namespace Webhooks {
|
|
|
1466
1672
|
forks_count: number;
|
|
1467
1673
|
mirror_url: null;
|
|
1468
1674
|
archived: boolean;
|
|
1675
|
+
disabled: boolean;
|
|
1469
1676
|
open_issues_count: number;
|
|
1470
1677
|
license: null;
|
|
1471
1678
|
forks: number;
|
|
@@ -1525,8 +1732,8 @@ declare namespace Webhooks {
|
|
|
1525
1732
|
node_id: string;
|
|
1526
1733
|
name: string;
|
|
1527
1734
|
full_name: string;
|
|
1528
|
-
owner: WebhookPayloadPullRequestPullRequestHeadRepoOwner;
|
|
1529
1735
|
private: boolean;
|
|
1736
|
+
owner: WebhookPayloadPullRequestPullRequestHeadRepoOwner;
|
|
1530
1737
|
html_url: string;
|
|
1531
1738
|
description: null;
|
|
1532
1739
|
fork: boolean;
|
|
@@ -1587,6 +1794,7 @@ declare namespace Webhooks {
|
|
|
1587
1794
|
forks_count: number;
|
|
1588
1795
|
mirror_url: null;
|
|
1589
1796
|
archived: boolean;
|
|
1797
|
+
disabled: boolean;
|
|
1590
1798
|
open_issues_count: number;
|
|
1591
1799
|
license: null;
|
|
1592
1800
|
forks: number;
|
|
@@ -1657,9 +1865,9 @@ declare namespace Webhooks {
|
|
|
1657
1865
|
body: string;
|
|
1658
1866
|
created_at: string;
|
|
1659
1867
|
updated_at: string;
|
|
1660
|
-
closed_at:
|
|
1868
|
+
closed_at: null;
|
|
1661
1869
|
merged_at: null;
|
|
1662
|
-
merge_commit_sha:
|
|
1870
|
+
merge_commit_sha: null;
|
|
1663
1871
|
assignee: null;
|
|
1664
1872
|
assignees: Array<any>;
|
|
1665
1873
|
requested_reviewers: Array<any>;
|
|
@@ -1675,9 +1883,10 @@ declare namespace Webhooks {
|
|
|
1675
1883
|
base: WebhookPayloadPullRequestPullRequestBase;
|
|
1676
1884
|
_links: WebhookPayloadPullRequestPullRequestLinks;
|
|
1677
1885
|
author_association: string;
|
|
1886
|
+
draft: boolean;
|
|
1678
1887
|
merged: boolean;
|
|
1679
|
-
mergeable:
|
|
1680
|
-
rebaseable:
|
|
1888
|
+
mergeable: null;
|
|
1889
|
+
rebaseable: null;
|
|
1681
1890
|
mergeable_state: string;
|
|
1682
1891
|
merged_by: null;
|
|
1683
1892
|
comments: number;
|
|
@@ -1864,6 +2073,7 @@ declare namespace Webhooks {
|
|
|
1864
2073
|
id: number;
|
|
1865
2074
|
node_id: string;
|
|
1866
2075
|
note: string;
|
|
2076
|
+
archived: boolean;
|
|
1867
2077
|
creator: WebhookPayloadProjectCardProjectCardCreator;
|
|
1868
2078
|
created_at: string;
|
|
1869
2079
|
updated_at: string;
|
|
@@ -2186,6 +2396,7 @@ declare namespace Webhooks {
|
|
|
2186
2396
|
description: string;
|
|
2187
2397
|
privacy: string;
|
|
2188
2398
|
url: string;
|
|
2399
|
+
html_url: string;
|
|
2189
2400
|
members_url: string;
|
|
2190
2401
|
repositories_url: string;
|
|
2191
2402
|
permission: string;
|
|
@@ -2258,10 +2469,6 @@ declare namespace Webhooks {
|
|
|
2258
2469
|
type: string;
|
|
2259
2470
|
site_admin: boolean;
|
|
2260
2471
|
};
|
|
2261
|
-
type WebhookPayloadMemberChangesPermission = { from: string };
|
|
2262
|
-
type WebhookPayloadMemberChanges = {
|
|
2263
|
-
permission: WebhookPayloadMemberChangesPermission;
|
|
2264
|
-
};
|
|
2265
2472
|
type WebhookPayloadMemberMember = {
|
|
2266
2473
|
login: string;
|
|
2267
2474
|
id: number;
|
|
@@ -2285,7 +2492,6 @@ declare namespace Webhooks {
|
|
|
2285
2492
|
type WebhookPayloadMember = {
|
|
2286
2493
|
action: string;
|
|
2287
2494
|
member: WebhookPayloadMemberMember;
|
|
2288
|
-
changes: WebhookPayloadMemberChanges;
|
|
2289
2495
|
repository: PayloadRepository;
|
|
2290
2496
|
sender: WebhookPayloadMemberSender;
|
|
2291
2497
|
};
|
|
@@ -2396,6 +2602,84 @@ declare namespace Webhooks {
|
|
|
2396
2602
|
site_admin: boolean;
|
|
2397
2603
|
};
|
|
2398
2604
|
type WebhookPayloadIssuesChanges = {};
|
|
2605
|
+
type WebhookPayloadIssuesIssueMilestoneCreator = {
|
|
2606
|
+
login: string;
|
|
2607
|
+
id: number;
|
|
2608
|
+
node_id: string;
|
|
2609
|
+
avatar_url: string;
|
|
2610
|
+
gravatar_id: string;
|
|
2611
|
+
url: string;
|
|
2612
|
+
html_url: string;
|
|
2613
|
+
followers_url: string;
|
|
2614
|
+
following_url: string;
|
|
2615
|
+
gists_url: string;
|
|
2616
|
+
starred_url: string;
|
|
2617
|
+
subscriptions_url: string;
|
|
2618
|
+
organizations_url: string;
|
|
2619
|
+
repos_url: string;
|
|
2620
|
+
events_url: string;
|
|
2621
|
+
received_events_url: string;
|
|
2622
|
+
type: string;
|
|
2623
|
+
site_admin: boolean;
|
|
2624
|
+
};
|
|
2625
|
+
type WebhookPayloadIssuesIssueMilestone = {
|
|
2626
|
+
url: string;
|
|
2627
|
+
html_url: string;
|
|
2628
|
+
labels_url: string;
|
|
2629
|
+
id: number;
|
|
2630
|
+
node_id: string;
|
|
2631
|
+
number: number;
|
|
2632
|
+
title: string;
|
|
2633
|
+
description: string;
|
|
2634
|
+
creator: WebhookPayloadIssuesIssueMilestoneCreator;
|
|
2635
|
+
open_issues: number;
|
|
2636
|
+
closed_issues: number;
|
|
2637
|
+
state: string;
|
|
2638
|
+
created_at: string;
|
|
2639
|
+
updated_at: string;
|
|
2640
|
+
due_on: string;
|
|
2641
|
+
closed_at: string;
|
|
2642
|
+
};
|
|
2643
|
+
type WebhookPayloadIssuesIssueAssigneesItem = {
|
|
2644
|
+
login: string;
|
|
2645
|
+
id: number;
|
|
2646
|
+
node_id: string;
|
|
2647
|
+
avatar_url: string;
|
|
2648
|
+
gravatar_id: string;
|
|
2649
|
+
url: string;
|
|
2650
|
+
html_url: string;
|
|
2651
|
+
followers_url: string;
|
|
2652
|
+
following_url: string;
|
|
2653
|
+
gists_url: string;
|
|
2654
|
+
starred_url: string;
|
|
2655
|
+
subscriptions_url: string;
|
|
2656
|
+
organizations_url: string;
|
|
2657
|
+
repos_url: string;
|
|
2658
|
+
events_url: string;
|
|
2659
|
+
received_events_url: string;
|
|
2660
|
+
type: string;
|
|
2661
|
+
site_admin: boolean;
|
|
2662
|
+
};
|
|
2663
|
+
type WebhookPayloadIssuesIssueAssignee = {
|
|
2664
|
+
login: string;
|
|
2665
|
+
id: number;
|
|
2666
|
+
node_id: string;
|
|
2667
|
+
avatar_url: string;
|
|
2668
|
+
gravatar_id: string;
|
|
2669
|
+
url: string;
|
|
2670
|
+
html_url: string;
|
|
2671
|
+
followers_url: string;
|
|
2672
|
+
following_url: string;
|
|
2673
|
+
gists_url: string;
|
|
2674
|
+
starred_url: string;
|
|
2675
|
+
subscriptions_url: string;
|
|
2676
|
+
organizations_url: string;
|
|
2677
|
+
repos_url: string;
|
|
2678
|
+
events_url: string;
|
|
2679
|
+
received_events_url: string;
|
|
2680
|
+
type: string;
|
|
2681
|
+
site_admin: boolean;
|
|
2682
|
+
};
|
|
2399
2683
|
type WebhookPayloadIssuesIssueLabelsItem = {
|
|
2400
2684
|
id: number;
|
|
2401
2685
|
node_id: string;
|
|
@@ -2439,9 +2723,9 @@ declare namespace Webhooks {
|
|
|
2439
2723
|
labels: Array<WebhookPayloadIssuesIssueLabelsItem>;
|
|
2440
2724
|
state: string;
|
|
2441
2725
|
locked: boolean;
|
|
2442
|
-
assignee:
|
|
2443
|
-
assignees: Array<
|
|
2444
|
-
milestone:
|
|
2726
|
+
assignee: WebhookPayloadIssuesIssueAssignee;
|
|
2727
|
+
assignees: Array<WebhookPayloadIssuesIssueAssigneesItem>;
|
|
2728
|
+
milestone: WebhookPayloadIssuesIssueMilestone;
|
|
2445
2729
|
comments: number;
|
|
2446
2730
|
created_at: string;
|
|
2447
2731
|
updated_at: string;
|
|
@@ -2508,6 +2792,84 @@ declare namespace Webhooks {
|
|
|
2508
2792
|
author_association: string;
|
|
2509
2793
|
body: string;
|
|
2510
2794
|
};
|
|
2795
|
+
type WebhookPayloadIssueCommentIssueMilestoneCreator = {
|
|
2796
|
+
login: string;
|
|
2797
|
+
id: number;
|
|
2798
|
+
node_id: string;
|
|
2799
|
+
avatar_url: string;
|
|
2800
|
+
gravatar_id: string;
|
|
2801
|
+
url: string;
|
|
2802
|
+
html_url: string;
|
|
2803
|
+
followers_url: string;
|
|
2804
|
+
following_url: string;
|
|
2805
|
+
gists_url: string;
|
|
2806
|
+
starred_url: string;
|
|
2807
|
+
subscriptions_url: string;
|
|
2808
|
+
organizations_url: string;
|
|
2809
|
+
repos_url: string;
|
|
2810
|
+
events_url: string;
|
|
2811
|
+
received_events_url: string;
|
|
2812
|
+
type: string;
|
|
2813
|
+
site_admin: boolean;
|
|
2814
|
+
};
|
|
2815
|
+
type WebhookPayloadIssueCommentIssueMilestone = {
|
|
2816
|
+
url: string;
|
|
2817
|
+
html_url: string;
|
|
2818
|
+
labels_url: string;
|
|
2819
|
+
id: number;
|
|
2820
|
+
node_id: string;
|
|
2821
|
+
number: number;
|
|
2822
|
+
title: string;
|
|
2823
|
+
description: string;
|
|
2824
|
+
creator: WebhookPayloadIssueCommentIssueMilestoneCreator;
|
|
2825
|
+
open_issues: number;
|
|
2826
|
+
closed_issues: number;
|
|
2827
|
+
state: string;
|
|
2828
|
+
created_at: string;
|
|
2829
|
+
updated_at: string;
|
|
2830
|
+
due_on: string;
|
|
2831
|
+
closed_at: string;
|
|
2832
|
+
};
|
|
2833
|
+
type WebhookPayloadIssueCommentIssueAssigneesItem = {
|
|
2834
|
+
login: string;
|
|
2835
|
+
id: number;
|
|
2836
|
+
node_id: string;
|
|
2837
|
+
avatar_url: string;
|
|
2838
|
+
gravatar_id: string;
|
|
2839
|
+
url: string;
|
|
2840
|
+
html_url: string;
|
|
2841
|
+
followers_url: string;
|
|
2842
|
+
following_url: string;
|
|
2843
|
+
gists_url: string;
|
|
2844
|
+
starred_url: string;
|
|
2845
|
+
subscriptions_url: string;
|
|
2846
|
+
organizations_url: string;
|
|
2847
|
+
repos_url: string;
|
|
2848
|
+
events_url: string;
|
|
2849
|
+
received_events_url: string;
|
|
2850
|
+
type: string;
|
|
2851
|
+
site_admin: boolean;
|
|
2852
|
+
};
|
|
2853
|
+
type WebhookPayloadIssueCommentIssueAssignee = {
|
|
2854
|
+
login: string;
|
|
2855
|
+
id: number;
|
|
2856
|
+
node_id: string;
|
|
2857
|
+
avatar_url: string;
|
|
2858
|
+
gravatar_id: string;
|
|
2859
|
+
url: string;
|
|
2860
|
+
html_url: string;
|
|
2861
|
+
followers_url: string;
|
|
2862
|
+
following_url: string;
|
|
2863
|
+
gists_url: string;
|
|
2864
|
+
starred_url: string;
|
|
2865
|
+
subscriptions_url: string;
|
|
2866
|
+
organizations_url: string;
|
|
2867
|
+
repos_url: string;
|
|
2868
|
+
events_url: string;
|
|
2869
|
+
received_events_url: string;
|
|
2870
|
+
type: string;
|
|
2871
|
+
site_admin: boolean;
|
|
2872
|
+
};
|
|
2511
2873
|
type WebhookPayloadIssueCommentIssueLabelsItem = {
|
|
2512
2874
|
id: number;
|
|
2513
2875
|
node_id: string;
|
|
@@ -2551,9 +2913,9 @@ declare namespace Webhooks {
|
|
|
2551
2913
|
labels: Array<WebhookPayloadIssueCommentIssueLabelsItem>;
|
|
2552
2914
|
state: string;
|
|
2553
2915
|
locked: boolean;
|
|
2554
|
-
assignee:
|
|
2555
|
-
assignees: Array<
|
|
2556
|
-
milestone:
|
|
2916
|
+
assignee: WebhookPayloadIssueCommentIssueAssignee;
|
|
2917
|
+
assignees: Array<WebhookPayloadIssueCommentIssueAssigneesItem>;
|
|
2918
|
+
milestone: WebhookPayloadIssueCommentIssueMilestone;
|
|
2557
2919
|
comments: number;
|
|
2558
2920
|
created_at: string;
|
|
2559
2921
|
updated_at: string;
|
|
@@ -2588,16 +2950,26 @@ declare namespace Webhooks {
|
|
|
2588
2950
|
type: string;
|
|
2589
2951
|
site_admin: boolean;
|
|
2590
2952
|
};
|
|
2591
|
-
type
|
|
2953
|
+
type WebhookPayloadInstallationRepositoriesRepositoriesAddedItem = {
|
|
2592
2954
|
id: number;
|
|
2955
|
+
node_id: string;
|
|
2593
2956
|
name: string;
|
|
2594
2957
|
full_name: string;
|
|
2595
2958
|
private: boolean;
|
|
2596
2959
|
};
|
|
2597
2960
|
type WebhookPayloadInstallationRepositoriesInstallationPermissions = {
|
|
2598
|
-
|
|
2599
|
-
|
|
2961
|
+
administration: string;
|
|
2962
|
+
statuses: string;
|
|
2963
|
+
repository_projects: string;
|
|
2964
|
+
repository_hooks: string;
|
|
2965
|
+
pull_requests: string;
|
|
2966
|
+
pages: string;
|
|
2600
2967
|
issues: string;
|
|
2968
|
+
deployments: string;
|
|
2969
|
+
contents: string;
|
|
2970
|
+
checks: string;
|
|
2971
|
+
metadata: string;
|
|
2972
|
+
vulnerability_alerts: string;
|
|
2601
2973
|
};
|
|
2602
2974
|
type WebhookPayloadInstallationRepositoriesInstallationAccount = {
|
|
2603
2975
|
login: string;
|
|
@@ -2630,19 +3002,19 @@ declare namespace Webhooks {
|
|
|
2630
3002
|
target_id: number;
|
|
2631
3003
|
target_type: string;
|
|
2632
3004
|
permissions: WebhookPayloadInstallationRepositoriesInstallationPermissions;
|
|
2633
|
-
events: Array<
|
|
3005
|
+
events: Array<any>;
|
|
2634
3006
|
created_at: number;
|
|
2635
3007
|
updated_at: number;
|
|
2636
|
-
single_file_name:
|
|
3008
|
+
single_file_name: null;
|
|
2637
3009
|
};
|
|
2638
3010
|
type WebhookPayloadInstallationRepositories = {
|
|
2639
3011
|
action: string;
|
|
2640
3012
|
installation: WebhookPayloadInstallationRepositoriesInstallation;
|
|
2641
3013
|
repository_selection: string;
|
|
2642
|
-
repositories_added: Array<
|
|
2643
|
-
|
|
2644
|
-
WebhookPayloadInstallationRepositoriesRepositoriesRemovedItem
|
|
3014
|
+
repositories_added: Array<
|
|
3015
|
+
WebhookPayloadInstallationRepositoriesRepositoriesAddedItem
|
|
2645
3016
|
>;
|
|
3017
|
+
repositories_removed: Array<any>;
|
|
2646
3018
|
sender: WebhookPayloadInstallationRepositoriesSender;
|
|
2647
3019
|
};
|
|
2648
3020
|
type WebhookPayloadInstallationSender = {
|
|
@@ -2820,8 +3192,8 @@ declare namespace Webhooks {
|
|
|
2820
3192
|
node_id: string;
|
|
2821
3193
|
name: string;
|
|
2822
3194
|
full_name: string;
|
|
2823
|
-
owner: WebhookPayloadForkForkeeOwner;
|
|
2824
3195
|
private: boolean;
|
|
3196
|
+
owner: WebhookPayloadForkForkeeOwner;
|
|
2825
3197
|
html_url: string;
|
|
2826
3198
|
description: null;
|
|
2827
3199
|
fork: boolean;
|
|
@@ -2882,6 +3254,7 @@ declare namespace Webhooks {
|
|
|
2882
3254
|
forks_count: number;
|
|
2883
3255
|
mirror_url: null;
|
|
2884
3256
|
archived: boolean;
|
|
3257
|
+
disabled: boolean;
|
|
2885
3258
|
open_issues_count: number;
|
|
2886
3259
|
license: null;
|
|
2887
3260
|
forks: number;
|
|
@@ -2944,6 +3317,7 @@ declare namespace Webhooks {
|
|
|
2944
3317
|
ref: string;
|
|
2945
3318
|
task: string;
|
|
2946
3319
|
payload: WebhookPayloadDeploymentStatusDeploymentPayload;
|
|
3320
|
+
original_environment: string;
|
|
2947
3321
|
environment: string;
|
|
2948
3322
|
description: null;
|
|
2949
3323
|
creator: WebhookPayloadDeploymentStatusDeploymentCreator;
|
|
@@ -2979,6 +3353,7 @@ declare namespace Webhooks {
|
|
|
2979
3353
|
state: string;
|
|
2980
3354
|
creator: WebhookPayloadDeploymentStatusDeploymentStatusCreator;
|
|
2981
3355
|
description: string;
|
|
3356
|
+
environment: string;
|
|
2982
3357
|
target_url: string;
|
|
2983
3358
|
created_at: string;
|
|
2984
3359
|
updated_at: string;
|
|
@@ -3040,6 +3415,7 @@ declare namespace Webhooks {
|
|
|
3040
3415
|
ref: string;
|
|
3041
3416
|
task: string;
|
|
3042
3417
|
payload: WebhookPayloadDeploymentDeploymentPayload;
|
|
3418
|
+
original_environment: string;
|
|
3043
3419
|
environment: string;
|
|
3044
3420
|
description: null;
|
|
3045
3421
|
creator: WebhookPayloadDeploymentDeploymentCreator;
|
|
@@ -3241,7 +3617,6 @@ declare namespace Webhooks {
|
|
|
3241
3617
|
repository: PayloadRepository;
|
|
3242
3618
|
sender: WebhookPayloadCommitCommentSender;
|
|
3243
3619
|
};
|
|
3244
|
-
type WebhookPayloadCheckSuiteInstallation = { id: number };
|
|
3245
3620
|
type WebhookPayloadCheckSuiteSender = {
|
|
3246
3621
|
login: string;
|
|
3247
3622
|
id: number;
|
|
@@ -3262,20 +3637,6 @@ declare namespace Webhooks {
|
|
|
3262
3637
|
type: string;
|
|
3263
3638
|
site_admin: boolean;
|
|
3264
3639
|
};
|
|
3265
|
-
type WebhookPayloadCheckSuiteOrganization = {
|
|
3266
|
-
login: string;
|
|
3267
|
-
id: number;
|
|
3268
|
-
node_id: string;
|
|
3269
|
-
url: string;
|
|
3270
|
-
repos_url: string;
|
|
3271
|
-
events_url: string;
|
|
3272
|
-
hooks_url: string;
|
|
3273
|
-
issues_url: string;
|
|
3274
|
-
members_url: string;
|
|
3275
|
-
public_members_url: string;
|
|
3276
|
-
avatar_url: string;
|
|
3277
|
-
description: string;
|
|
3278
|
-
};
|
|
3279
3640
|
type WebhookPayloadCheckSuiteCheckSuiteHeadCommitCommitter = {
|
|
3280
3641
|
name: string;
|
|
3281
3642
|
email: string;
|
|
@@ -3292,6 +3653,27 @@ declare namespace Webhooks {
|
|
|
3292
3653
|
author: WebhookPayloadCheckSuiteCheckSuiteHeadCommitAuthor;
|
|
3293
3654
|
committer: WebhookPayloadCheckSuiteCheckSuiteHeadCommitCommitter;
|
|
3294
3655
|
};
|
|
3656
|
+
type WebhookPayloadCheckSuiteCheckSuiteAppPermissions = {
|
|
3657
|
+
administration: string;
|
|
3658
|
+
checks: string;
|
|
3659
|
+
contents: string;
|
|
3660
|
+
deployments: string;
|
|
3661
|
+
issues: string;
|
|
3662
|
+
members: string;
|
|
3663
|
+
metadata: string;
|
|
3664
|
+
organization_administration: string;
|
|
3665
|
+
organization_hooks: string;
|
|
3666
|
+
organization_plan: string;
|
|
3667
|
+
organization_projects: string;
|
|
3668
|
+
organization_user_blocking: string;
|
|
3669
|
+
pages: string;
|
|
3670
|
+
pull_requests: string;
|
|
3671
|
+
repository_hooks: string;
|
|
3672
|
+
repository_projects: string;
|
|
3673
|
+
statuses: string;
|
|
3674
|
+
team_discussions: string;
|
|
3675
|
+
vulnerability_alerts: string;
|
|
3676
|
+
};
|
|
3295
3677
|
type WebhookPayloadCheckSuiteCheckSuiteAppOwner = {
|
|
3296
3678
|
login: string;
|
|
3297
3679
|
id: number;
|
|
@@ -3317,14 +3699,44 @@ declare namespace Webhooks {
|
|
|
3317
3699
|
node_id: string;
|
|
3318
3700
|
owner: WebhookPayloadCheckSuiteCheckSuiteAppOwner;
|
|
3319
3701
|
name: string;
|
|
3320
|
-
description:
|
|
3702
|
+
description: string;
|
|
3321
3703
|
external_url: string;
|
|
3322
3704
|
html_url: string;
|
|
3323
3705
|
created_at: string;
|
|
3324
3706
|
updated_at: string;
|
|
3707
|
+
permissions: WebhookPayloadCheckSuiteCheckSuiteAppPermissions;
|
|
3708
|
+
events: Array<any>;
|
|
3709
|
+
};
|
|
3710
|
+
type WebhookPayloadCheckSuiteCheckSuitePullRequestsItemBaseRepo = {
|
|
3711
|
+
id: number;
|
|
3712
|
+
url: string;
|
|
3713
|
+
name: string;
|
|
3714
|
+
};
|
|
3715
|
+
type WebhookPayloadCheckSuiteCheckSuitePullRequestsItemBase = {
|
|
3716
|
+
ref: string;
|
|
3717
|
+
sha: string;
|
|
3718
|
+
repo: WebhookPayloadCheckSuiteCheckSuitePullRequestsItemBaseRepo;
|
|
3719
|
+
};
|
|
3720
|
+
type WebhookPayloadCheckSuiteCheckSuitePullRequestsItemHeadRepo = {
|
|
3721
|
+
id: number;
|
|
3722
|
+
url: string;
|
|
3723
|
+
name: string;
|
|
3724
|
+
};
|
|
3725
|
+
type WebhookPayloadCheckSuiteCheckSuitePullRequestsItemHead = {
|
|
3726
|
+
ref: string;
|
|
3727
|
+
sha: string;
|
|
3728
|
+
repo: WebhookPayloadCheckSuiteCheckSuitePullRequestsItemHeadRepo;
|
|
3729
|
+
};
|
|
3730
|
+
type WebhookPayloadCheckSuiteCheckSuitePullRequestsItem = {
|
|
3731
|
+
url: string;
|
|
3732
|
+
id: number;
|
|
3733
|
+
number: number;
|
|
3734
|
+
head: WebhookPayloadCheckSuiteCheckSuitePullRequestsItemHead;
|
|
3735
|
+
base: WebhookPayloadCheckSuiteCheckSuitePullRequestsItemBase;
|
|
3325
3736
|
};
|
|
3326
3737
|
type WebhookPayloadCheckSuiteCheckSuite = {
|
|
3327
3738
|
id: number;
|
|
3739
|
+
node_id: string;
|
|
3328
3740
|
head_branch: string;
|
|
3329
3741
|
head_sha: string;
|
|
3330
3742
|
status: string;
|
|
@@ -3332,7 +3744,7 @@ declare namespace Webhooks {
|
|
|
3332
3744
|
url: string;
|
|
3333
3745
|
before: string;
|
|
3334
3746
|
after: string;
|
|
3335
|
-
pull_requests: Array<
|
|
3747
|
+
pull_requests: Array<WebhookPayloadCheckSuiteCheckSuitePullRequestsItem>;
|
|
3336
3748
|
app: WebhookPayloadCheckSuiteCheckSuiteApp;
|
|
3337
3749
|
created_at: string;
|
|
3338
3750
|
updated_at: string;
|
|
@@ -3344,11 +3756,8 @@ declare namespace Webhooks {
|
|
|
3344
3756
|
action: string;
|
|
3345
3757
|
check_suite: WebhookPayloadCheckSuiteCheckSuite;
|
|
3346
3758
|
repository: PayloadRepository;
|
|
3347
|
-
organization: WebhookPayloadCheckSuiteOrganization;
|
|
3348
3759
|
sender: WebhookPayloadCheckSuiteSender;
|
|
3349
|
-
installation: WebhookPayloadCheckSuiteInstallation;
|
|
3350
3760
|
};
|
|
3351
|
-
type WebhookPayloadCheckRunInstallation = { id: number };
|
|
3352
3761
|
type WebhookPayloadCheckRunSender = {
|
|
3353
3762
|
login: string;
|
|
3354
3763
|
id: number;
|
|
@@ -3369,20 +3778,6 @@ declare namespace Webhooks {
|
|
|
3369
3778
|
type: string;
|
|
3370
3779
|
site_admin: boolean;
|
|
3371
3780
|
};
|
|
3372
|
-
type WebhookPayloadCheckRunOrganization = {
|
|
3373
|
-
login: string;
|
|
3374
|
-
id: number;
|
|
3375
|
-
node_id: string;
|
|
3376
|
-
url: string;
|
|
3377
|
-
repos_url: string;
|
|
3378
|
-
events_url: string;
|
|
3379
|
-
hooks_url: string;
|
|
3380
|
-
issues_url: string;
|
|
3381
|
-
members_url: string;
|
|
3382
|
-
public_members_url: string;
|
|
3383
|
-
avatar_url: string;
|
|
3384
|
-
description: string;
|
|
3385
|
-
};
|
|
3386
3781
|
type PayloadRepositoryOwner = {
|
|
3387
3782
|
login: string;
|
|
3388
3783
|
id: number;
|
|
@@ -3410,10 +3805,10 @@ declare namespace Webhooks {
|
|
|
3410
3805
|
node_id: string;
|
|
3411
3806
|
name: string;
|
|
3412
3807
|
full_name: string;
|
|
3413
|
-
owner: PayloadRepositoryOwner;
|
|
3414
3808
|
private: boolean;
|
|
3809
|
+
owner: PayloadRepositoryOwner;
|
|
3415
3810
|
html_url: string;
|
|
3416
|
-
description: null;
|
|
3811
|
+
description: null | string;
|
|
3417
3812
|
fork: boolean;
|
|
3418
3813
|
url: string;
|
|
3419
3814
|
forks_url: string;
|
|
@@ -3459,11 +3854,11 @@ declare namespace Webhooks {
|
|
|
3459
3854
|
ssh_url: string;
|
|
3460
3855
|
clone_url: string;
|
|
3461
3856
|
svn_url: string;
|
|
3462
|
-
homepage: null;
|
|
3857
|
+
homepage: null | string;
|
|
3463
3858
|
size: number;
|
|
3464
3859
|
stargazers_count: number;
|
|
3465
3860
|
watchers_count: number;
|
|
3466
|
-
language: null;
|
|
3861
|
+
language: string | null;
|
|
3467
3862
|
has_issues: boolean;
|
|
3468
3863
|
has_projects: boolean;
|
|
3469
3864
|
has_downloads: boolean;
|
|
@@ -3472,6 +3867,7 @@ declare namespace Webhooks {
|
|
|
3472
3867
|
forks_count: number;
|
|
3473
3868
|
mirror_url: null;
|
|
3474
3869
|
archived: boolean;
|
|
3870
|
+
disabled?: boolean;
|
|
3475
3871
|
open_issues_count: number;
|
|
3476
3872
|
license: null;
|
|
3477
3873
|
forks: number;
|
|
@@ -3482,6 +3878,54 @@ declare namespace Webhooks {
|
|
|
3482
3878
|
master_branch?: string;
|
|
3483
3879
|
permissions?: PayloadRepositoryPermissions;
|
|
3484
3880
|
};
|
|
3881
|
+
type WebhookPayloadCheckRunCheckRunPullRequestsItemBaseRepo = {
|
|
3882
|
+
id: number;
|
|
3883
|
+
url: string;
|
|
3884
|
+
name: string;
|
|
3885
|
+
};
|
|
3886
|
+
type WebhookPayloadCheckRunCheckRunPullRequestsItemBase = {
|
|
3887
|
+
ref: string;
|
|
3888
|
+
sha: string;
|
|
3889
|
+
repo: WebhookPayloadCheckRunCheckRunPullRequestsItemBaseRepo;
|
|
3890
|
+
};
|
|
3891
|
+
type WebhookPayloadCheckRunCheckRunPullRequestsItemHeadRepo = {
|
|
3892
|
+
id: number;
|
|
3893
|
+
url: string;
|
|
3894
|
+
name: string;
|
|
3895
|
+
};
|
|
3896
|
+
type WebhookPayloadCheckRunCheckRunPullRequestsItemHead = {
|
|
3897
|
+
ref: string;
|
|
3898
|
+
sha: string;
|
|
3899
|
+
repo: WebhookPayloadCheckRunCheckRunPullRequestsItemHeadRepo;
|
|
3900
|
+
};
|
|
3901
|
+
type WebhookPayloadCheckRunCheckRunPullRequestsItem = {
|
|
3902
|
+
url: string;
|
|
3903
|
+
id: number;
|
|
3904
|
+
number: number;
|
|
3905
|
+
head: WebhookPayloadCheckRunCheckRunPullRequestsItemHead;
|
|
3906
|
+
base: WebhookPayloadCheckRunCheckRunPullRequestsItemBase;
|
|
3907
|
+
};
|
|
3908
|
+
type WebhookPayloadCheckRunCheckRunAppPermissions = {
|
|
3909
|
+
administration: string;
|
|
3910
|
+
checks: string;
|
|
3911
|
+
contents: string;
|
|
3912
|
+
deployments: string;
|
|
3913
|
+
issues: string;
|
|
3914
|
+
members: string;
|
|
3915
|
+
metadata: string;
|
|
3916
|
+
organization_administration: string;
|
|
3917
|
+
organization_hooks: string;
|
|
3918
|
+
organization_plan: string;
|
|
3919
|
+
organization_projects: string;
|
|
3920
|
+
organization_user_blocking: string;
|
|
3921
|
+
pages: string;
|
|
3922
|
+
pull_requests: string;
|
|
3923
|
+
repository_hooks: string;
|
|
3924
|
+
repository_projects: string;
|
|
3925
|
+
statuses: string;
|
|
3926
|
+
team_discussions: string;
|
|
3927
|
+
vulnerability_alerts: string;
|
|
3928
|
+
};
|
|
3485
3929
|
type WebhookPayloadCheckRunCheckRunAppOwner = {
|
|
3486
3930
|
login: string;
|
|
3487
3931
|
id: number;
|
|
@@ -3507,11 +3951,34 @@ declare namespace Webhooks {
|
|
|
3507
3951
|
node_id: string;
|
|
3508
3952
|
owner: WebhookPayloadCheckRunCheckRunAppOwner;
|
|
3509
3953
|
name: string;
|
|
3510
|
-
description:
|
|
3954
|
+
description: string;
|
|
3511
3955
|
external_url: string;
|
|
3512
3956
|
html_url: string;
|
|
3513
3957
|
created_at: string;
|
|
3514
3958
|
updated_at: string;
|
|
3959
|
+
permissions: WebhookPayloadCheckRunCheckRunAppPermissions;
|
|
3960
|
+
events: Array<any>;
|
|
3961
|
+
};
|
|
3962
|
+
type WebhookPayloadCheckRunCheckRunCheckSuiteAppPermissions = {
|
|
3963
|
+
administration: string;
|
|
3964
|
+
checks: string;
|
|
3965
|
+
contents: string;
|
|
3966
|
+
deployments: string;
|
|
3967
|
+
issues: string;
|
|
3968
|
+
members: string;
|
|
3969
|
+
metadata: string;
|
|
3970
|
+
organization_administration: string;
|
|
3971
|
+
organization_hooks: string;
|
|
3972
|
+
organization_plan: string;
|
|
3973
|
+
organization_projects: string;
|
|
3974
|
+
organization_user_blocking: string;
|
|
3975
|
+
pages: string;
|
|
3976
|
+
pull_requests: string;
|
|
3977
|
+
repository_hooks: string;
|
|
3978
|
+
repository_projects: string;
|
|
3979
|
+
statuses: string;
|
|
3980
|
+
team_discussions: string;
|
|
3981
|
+
vulnerability_alerts: string;
|
|
3515
3982
|
};
|
|
3516
3983
|
type WebhookPayloadCheckRunCheckRunCheckSuiteAppOwner = {
|
|
3517
3984
|
login: string;
|
|
@@ -3538,56 +4005,88 @@ declare namespace Webhooks {
|
|
|
3538
4005
|
node_id: string;
|
|
3539
4006
|
owner: WebhookPayloadCheckRunCheckRunCheckSuiteAppOwner;
|
|
3540
4007
|
name: string;
|
|
3541
|
-
description:
|
|
4008
|
+
description: string;
|
|
3542
4009
|
external_url: string;
|
|
3543
4010
|
html_url: string;
|
|
3544
4011
|
created_at: string;
|
|
3545
4012
|
updated_at: string;
|
|
4013
|
+
permissions: WebhookPayloadCheckRunCheckRunCheckSuiteAppPermissions;
|
|
4014
|
+
events: Array<any>;
|
|
4015
|
+
};
|
|
4016
|
+
type WebhookPayloadCheckRunCheckRunCheckSuitePullRequestsItemBaseRepo = {
|
|
4017
|
+
id: number;
|
|
4018
|
+
url: string;
|
|
4019
|
+
name: string;
|
|
4020
|
+
};
|
|
4021
|
+
type WebhookPayloadCheckRunCheckRunCheckSuitePullRequestsItemBase = {
|
|
4022
|
+
ref: string;
|
|
4023
|
+
sha: string;
|
|
4024
|
+
repo: WebhookPayloadCheckRunCheckRunCheckSuitePullRequestsItemBaseRepo;
|
|
4025
|
+
};
|
|
4026
|
+
type WebhookPayloadCheckRunCheckRunCheckSuitePullRequestsItemHeadRepo = {
|
|
4027
|
+
id: number;
|
|
4028
|
+
url: string;
|
|
4029
|
+
name: string;
|
|
4030
|
+
};
|
|
4031
|
+
type WebhookPayloadCheckRunCheckRunCheckSuitePullRequestsItemHead = {
|
|
4032
|
+
ref: string;
|
|
4033
|
+
sha: string;
|
|
4034
|
+
repo: WebhookPayloadCheckRunCheckRunCheckSuitePullRequestsItemHeadRepo;
|
|
4035
|
+
};
|
|
4036
|
+
type WebhookPayloadCheckRunCheckRunCheckSuitePullRequestsItem = {
|
|
4037
|
+
url: string;
|
|
4038
|
+
id: number;
|
|
4039
|
+
number: number;
|
|
4040
|
+
head: WebhookPayloadCheckRunCheckRunCheckSuitePullRequestsItemHead;
|
|
4041
|
+
base: WebhookPayloadCheckRunCheckRunCheckSuitePullRequestsItemBase;
|
|
3546
4042
|
};
|
|
3547
4043
|
type WebhookPayloadCheckRunCheckRunCheckSuite = {
|
|
3548
4044
|
id: number;
|
|
4045
|
+
node_id: string;
|
|
3549
4046
|
head_branch: string;
|
|
3550
4047
|
head_sha: string;
|
|
3551
4048
|
status: string;
|
|
3552
|
-
conclusion:
|
|
4049
|
+
conclusion: null;
|
|
3553
4050
|
url: string;
|
|
3554
4051
|
before: string;
|
|
3555
4052
|
after: string;
|
|
3556
|
-
pull_requests: Array<
|
|
4053
|
+
pull_requests: Array<
|
|
4054
|
+
WebhookPayloadCheckRunCheckRunCheckSuitePullRequestsItem
|
|
4055
|
+
>;
|
|
3557
4056
|
app: WebhookPayloadCheckRunCheckRunCheckSuiteApp;
|
|
3558
4057
|
created_at: string;
|
|
3559
4058
|
updated_at: string;
|
|
3560
4059
|
};
|
|
3561
4060
|
type WebhookPayloadCheckRunCheckRunOutput = {
|
|
3562
|
-
title:
|
|
3563
|
-
summary:
|
|
3564
|
-
text:
|
|
4061
|
+
title: null;
|
|
4062
|
+
summary: null;
|
|
4063
|
+
text: null;
|
|
3565
4064
|
annotations_count: number;
|
|
3566
4065
|
annotations_url: string;
|
|
3567
4066
|
};
|
|
3568
4067
|
type WebhookPayloadCheckRunCheckRun = {
|
|
3569
4068
|
id: number;
|
|
4069
|
+
node_id: string;
|
|
3570
4070
|
head_sha: string;
|
|
3571
4071
|
external_id: string;
|
|
3572
4072
|
url: string;
|
|
3573
4073
|
html_url: string;
|
|
4074
|
+
details_url: string;
|
|
3574
4075
|
status: string;
|
|
3575
|
-
conclusion:
|
|
4076
|
+
conclusion: null;
|
|
3576
4077
|
started_at: string;
|
|
3577
|
-
completed_at:
|
|
4078
|
+
completed_at: null;
|
|
3578
4079
|
output: WebhookPayloadCheckRunCheckRunOutput;
|
|
3579
4080
|
name: string;
|
|
3580
4081
|
check_suite: WebhookPayloadCheckRunCheckRunCheckSuite;
|
|
3581
4082
|
app: WebhookPayloadCheckRunCheckRunApp;
|
|
3582
|
-
pull_requests: Array<
|
|
4083
|
+
pull_requests: Array<WebhookPayloadCheckRunCheckRunPullRequestsItem>;
|
|
3583
4084
|
};
|
|
3584
4085
|
type WebhookPayloadCheckRun = {
|
|
3585
4086
|
action: string;
|
|
3586
4087
|
check_run: WebhookPayloadCheckRunCheckRun;
|
|
3587
4088
|
repository: PayloadRepository;
|
|
3588
|
-
organization: WebhookPayloadCheckRunOrganization;
|
|
3589
4089
|
sender: WebhookPayloadCheckRunSender;
|
|
3590
|
-
installation: WebhookPayloadCheckRunInstallation;
|
|
3591
4090
|
};
|
|
3592
4091
|
|
|
3593
4092
|
interface WebhookEvent<T> {
|
|
@@ -3941,6 +4440,16 @@ declare class Webhooks {
|
|
|
3941
4440
|
) => Promise<void> | void
|
|
3942
4441
|
): void;
|
|
3943
4442
|
|
|
4443
|
+
public on(
|
|
4444
|
+
event:
|
|
4445
|
+
| "registry_package"
|
|
4446
|
+
| "registry_package.published"
|
|
4447
|
+
| "registry_package.updated",
|
|
4448
|
+
callback: (
|
|
4449
|
+
event: Webhooks.WebhookEvent<Webhooks.WebhookPayloadRegistryPackage>
|
|
4450
|
+
) => Promise<void> | void
|
|
4451
|
+
): void;
|
|
4452
|
+
|
|
3944
4453
|
public on(
|
|
3945
4454
|
event:
|
|
3946
4455
|
| "release"
|
|
@@ -3955,6 +4464,13 @@ declare class Webhooks {
|
|
|
3955
4464
|
) => Promise<void> | void
|
|
3956
4465
|
): void;
|
|
3957
4466
|
|
|
4467
|
+
public on(
|
|
4468
|
+
event: "repository_dispatch",
|
|
4469
|
+
callback: (
|
|
4470
|
+
event: Webhooks.WebhookEvent<Webhooks.WebhookPayloadRepositoryDispatch>
|
|
4471
|
+
) => Promise<void> | void
|
|
4472
|
+
): void;
|
|
4473
|
+
|
|
3958
4474
|
public on(
|
|
3959
4475
|
event:
|
|
3960
4476
|
| "repository"
|
package/lib/webhook-names.json
CHANGED
|
@@ -129,6 +129,9 @@
|
|
|
129
129
|
"pull_request_review_comment.deleted",
|
|
130
130
|
"pull_request_review_comment.edited",
|
|
131
131
|
"push",
|
|
132
|
+
"registry_package",
|
|
133
|
+
"registry_package.published",
|
|
134
|
+
"registry_package.updated",
|
|
132
135
|
"release",
|
|
133
136
|
"release.created",
|
|
134
137
|
"release.deleted",
|
|
@@ -146,6 +149,7 @@
|
|
|
146
149
|
"repository.renamed",
|
|
147
150
|
"repository.transferred",
|
|
148
151
|
"repository.unarchived",
|
|
152
|
+
"repository_dispatch",
|
|
149
153
|
"repository_import",
|
|
150
154
|
"repository_vulnerability_alert",
|
|
151
155
|
"repository_vulnerability_alert.create",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@octokit/webhooks",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.3.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@gimenete/type-writer": "^0.1.3",
|
|
18
|
-
"@octokit/webhooks-definitions": "1.
|
|
19
|
-
"axios": "^0.
|
|
18
|
+
"@octokit/webhooks-definitions": "1.5.1",
|
|
19
|
+
"axios": "^0.19.0",
|
|
20
20
|
"cheerio": "^1.0.0-rc.2",
|
|
21
21
|
"coveralls": "^3.0.3",
|
|
22
22
|
"get-port": "^5.0.0",
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
"pify": "^4.0.0",
|
|
25
25
|
"prettier": "^1.16.1",
|
|
26
26
|
"proxyquire": "^2.0.0",
|
|
27
|
-
"semantic-release": "^15.13.
|
|
27
|
+
"semantic-release": "^15.13.24",
|
|
28
28
|
"simple-mock": "^0.8.0",
|
|
29
|
-
"standard": "^
|
|
29
|
+
"standard": "^14.0.2",
|
|
30
30
|
"table-builder": "^2.1.1",
|
|
31
|
-
"tap": "^
|
|
31
|
+
"tap": "^14.0.0"
|
|
32
32
|
},
|
|
33
33
|
"scripts": {
|
|
34
34
|
"coverage": "tap --coverage-report=html && open coverage/lcov-report/index.html",
|