@coda-console/plugin-check 0.8.22 → 0.8.24

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.
@@ -25,7 +25,6 @@
25
25
  "approve-command"
26
26
  ],
27
27
  "gitCredentials": [],
28
- "endpoints": [],
29
28
  "views": [],
30
29
  "dependencies": [],
31
30
  "extensionPoints": {},
@@ -57,7 +56,6 @@
57
56
  "ask-user"
58
57
  ],
59
58
  "gitCredentials": [],
60
- "endpoints": [],
61
59
  "views": [],
62
60
  "dependencies": [],
63
61
  "extensionPoints": {},
@@ -89,7 +87,6 @@
89
87
  "change-setting"
90
88
  ],
91
89
  "gitCredentials": [],
92
- "endpoints": [],
93
90
  "views": [],
94
91
  "dependencies": [],
95
92
  "extensionPoints": {},
@@ -124,7 +121,6 @@
124
121
  "commands": [],
125
122
  "capabilities": [],
126
123
  "gitCredentials": [],
127
- "endpoints": [],
128
124
  "views": [
129
125
  {
130
126
  "id": "changes",
@@ -191,7 +187,6 @@
191
187
  }
192
188
  ],
193
189
  "gitCredentials": [],
194
- "endpoints": [],
195
190
  "views": [],
196
191
  "offers": {
197
192
  "resources": [
@@ -242,7 +237,6 @@
242
237
  ],
243
238
  "capabilities": [],
244
239
  "gitCredentials": [],
245
- "endpoints": [],
246
240
  "views": [],
247
241
  "dependencies": [
248
242
  "space"
@@ -254,7 +248,7 @@
254
248
  "id": "github",
255
249
  "displayName": "GitHub",
256
250
  "description": "登录账号,推送时自动选对账号",
257
- "version": "1.11.0",
251
+ "version": "1.13.0",
258
252
  "category": "模型与账号",
259
253
  "icon": {
260
254
  "symbol": "arrow.triangle.pull",
@@ -295,54 +289,6 @@
295
289
  }
296
290
  ],
297
291
  "capabilities": [],
298
- "events": [
299
- {
300
- "name": "github.pull_request_reported",
301
- "starts": true
302
- },
303
- {
304
- "name": "git.pushed",
305
- "starts": true
306
- },
307
- {
308
- "name": "pull_request.opened",
309
- "starts": true
310
- },
311
- {
312
- "name": "pull_request.synchronize",
313
- "starts": true
314
- },
315
- {
316
- "name": "pull_request.ready_for_review",
317
- "starts": false
318
- },
319
- {
320
- "name": "pull_request.converted_to_draft",
321
- "starts": false
322
- },
323
- {
324
- "name": "pull_request.edited",
325
- "starts": false
326
- },
327
- {
328
- "name": "pull_request.closed",
329
- "starts": false,
330
- "ends": true
331
- },
332
- {
333
- "name": "foreign_pull_request.opened",
334
- "starts": true
335
- },
336
- {
337
- "name": "foreign_pull_request.synchronize",
338
- "starts": true
339
- },
340
- {
341
- "name": "foreign_pull_request.closed",
342
- "starts": false,
343
- "ends": true
344
- }
345
- ],
346
292
  "gitCredentials": [
347
293
  {
348
294
  "url": "https://github.com",
@@ -352,12 +298,6 @@
352
298
  "repositories": {
353
299
  "command": "exec \"$CODA_NODE\" \"$CODA_PLUGIN_PATH/scripts/repositories.mjs\""
354
300
  },
355
- "endpoints": [
356
- {
357
- "id": "accounts",
358
- "command": "exec node \"$CODA_PLUGIN_PATH/scripts/endpoint.mjs\""
359
- }
360
- ],
361
301
  "views": [
362
302
  {
363
303
  "id": "accounts",
@@ -366,6 +306,1148 @@
366
306
  "frame": "document"
367
307
  }
368
308
  ],
309
+ "protocols": [
310
+ {
311
+ "name": "github/pull-request@1",
312
+ "title": "GitHub PR",
313
+ "description": "PR 的打开、更新、关闭等事件,由 PR 观察与会话的 gh、git 发布;只有事件,没有记录",
314
+ "events": {
315
+ "github.pull_request_reported": {
316
+ "description": "会话的 gh 开出或标为可评审了一个 PR",
317
+ "payload": {
318
+ "type": "object",
319
+ "required": [
320
+ "url"
321
+ ],
322
+ "properties": {
323
+ "url": {
324
+ "type": "string"
325
+ },
326
+ "session": {
327
+ "type": "string"
328
+ },
329
+ "reported_at": {
330
+ "type": "number"
331
+ }
332
+ }
333
+ }
334
+ },
335
+ "git.pushed": {
336
+ "description": "会话的 git 推送了一个已报告的 PR 的分支",
337
+ "payload": {
338
+ "type": "object",
339
+ "required": [
340
+ "url",
341
+ "branch",
342
+ "after"
343
+ ],
344
+ "properties": {
345
+ "url": {
346
+ "type": "string"
347
+ },
348
+ "session": {
349
+ "type": "string"
350
+ },
351
+ "repository": {
352
+ "type": "string"
353
+ },
354
+ "branch": {
355
+ "type": "string"
356
+ },
357
+ "before": {
358
+ "type": [
359
+ "string",
360
+ "null"
361
+ ]
362
+ },
363
+ "after": {
364
+ "type": "string"
365
+ },
366
+ "pushed_at": {
367
+ "type": "number"
368
+ }
369
+ }
370
+ }
371
+ },
372
+ "pull_request.opened": {
373
+ "description": "自己的 PR 第一次被看到",
374
+ "payload": {
375
+ "type": "object",
376
+ "required": [
377
+ "action",
378
+ "number",
379
+ "pull_request",
380
+ "repository"
381
+ ],
382
+ "properties": {
383
+ "action": {
384
+ "type": "string"
385
+ },
386
+ "number": {
387
+ "type": "integer"
388
+ },
389
+ "pull_request": {
390
+ "type": "object",
391
+ "required": [
392
+ "number",
393
+ "html_url",
394
+ "head",
395
+ "base"
396
+ ],
397
+ "properties": {
398
+ "number": {
399
+ "type": "integer"
400
+ },
401
+ "html_url": {
402
+ "type": "string"
403
+ },
404
+ "title": {
405
+ "type": "string"
406
+ },
407
+ "body": {
408
+ "type": "string"
409
+ },
410
+ "head": {
411
+ "type": "object",
412
+ "properties": {
413
+ "sha": {
414
+ "type": "string"
415
+ },
416
+ "ref": {
417
+ "type": "string"
418
+ }
419
+ }
420
+ },
421
+ "base": {
422
+ "type": "object",
423
+ "properties": {
424
+ "sha": {
425
+ "type": [
426
+ "string",
427
+ "null"
428
+ ]
429
+ },
430
+ "ref": {
431
+ "type": [
432
+ "string",
433
+ "null"
434
+ ]
435
+ }
436
+ }
437
+ },
438
+ "draft": {
439
+ "type": "boolean"
440
+ },
441
+ "state": {
442
+ "type": "string"
443
+ },
444
+ "merged": {
445
+ "type": "boolean"
446
+ },
447
+ "merge_commit_sha": {
448
+ "type": [
449
+ "string",
450
+ "null"
451
+ ]
452
+ }
453
+ }
454
+ },
455
+ "repository": {
456
+ "type": "object",
457
+ "required": [
458
+ "full_name"
459
+ ],
460
+ "properties": {
461
+ "full_name": {
462
+ "type": "string"
463
+ }
464
+ }
465
+ }
466
+ }
467
+ }
468
+ },
469
+ "pull_request.synchronize": {
470
+ "description": "自己的 PR 有了新版本",
471
+ "payload": {
472
+ "type": "object",
473
+ "required": [
474
+ "action",
475
+ "number",
476
+ "pull_request",
477
+ "repository"
478
+ ],
479
+ "properties": {
480
+ "action": {
481
+ "type": "string"
482
+ },
483
+ "number": {
484
+ "type": "integer"
485
+ },
486
+ "pull_request": {
487
+ "type": "object",
488
+ "required": [
489
+ "number",
490
+ "html_url",
491
+ "head",
492
+ "base"
493
+ ],
494
+ "properties": {
495
+ "number": {
496
+ "type": "integer"
497
+ },
498
+ "html_url": {
499
+ "type": "string"
500
+ },
501
+ "title": {
502
+ "type": "string"
503
+ },
504
+ "body": {
505
+ "type": "string"
506
+ },
507
+ "head": {
508
+ "type": "object",
509
+ "properties": {
510
+ "sha": {
511
+ "type": "string"
512
+ },
513
+ "ref": {
514
+ "type": "string"
515
+ }
516
+ }
517
+ },
518
+ "base": {
519
+ "type": "object",
520
+ "properties": {
521
+ "sha": {
522
+ "type": [
523
+ "string",
524
+ "null"
525
+ ]
526
+ },
527
+ "ref": {
528
+ "type": [
529
+ "string",
530
+ "null"
531
+ ]
532
+ }
533
+ }
534
+ },
535
+ "draft": {
536
+ "type": "boolean"
537
+ },
538
+ "state": {
539
+ "type": "string"
540
+ },
541
+ "merged": {
542
+ "type": "boolean"
543
+ },
544
+ "merge_commit_sha": {
545
+ "type": [
546
+ "string",
547
+ "null"
548
+ ]
549
+ }
550
+ }
551
+ },
552
+ "repository": {
553
+ "type": "object",
554
+ "required": [
555
+ "full_name"
556
+ ],
557
+ "properties": {
558
+ "full_name": {
559
+ "type": "string"
560
+ }
561
+ }
562
+ }
563
+ }
564
+ }
565
+ },
566
+ "pull_request.ready_for_review": {
567
+ "description": "自己的 PR 从草稿标为可评审",
568
+ "starts": false,
569
+ "payload": {
570
+ "type": "object",
571
+ "required": [
572
+ "action",
573
+ "number",
574
+ "pull_request",
575
+ "repository"
576
+ ],
577
+ "properties": {
578
+ "action": {
579
+ "type": "string"
580
+ },
581
+ "number": {
582
+ "type": "integer"
583
+ },
584
+ "pull_request": {
585
+ "type": "object",
586
+ "required": [
587
+ "number",
588
+ "html_url",
589
+ "head",
590
+ "base"
591
+ ],
592
+ "properties": {
593
+ "number": {
594
+ "type": "integer"
595
+ },
596
+ "html_url": {
597
+ "type": "string"
598
+ },
599
+ "title": {
600
+ "type": "string"
601
+ },
602
+ "body": {
603
+ "type": "string"
604
+ },
605
+ "head": {
606
+ "type": "object",
607
+ "properties": {
608
+ "sha": {
609
+ "type": "string"
610
+ },
611
+ "ref": {
612
+ "type": "string"
613
+ }
614
+ }
615
+ },
616
+ "base": {
617
+ "type": "object",
618
+ "properties": {
619
+ "sha": {
620
+ "type": [
621
+ "string",
622
+ "null"
623
+ ]
624
+ },
625
+ "ref": {
626
+ "type": [
627
+ "string",
628
+ "null"
629
+ ]
630
+ }
631
+ }
632
+ },
633
+ "draft": {
634
+ "type": "boolean"
635
+ },
636
+ "state": {
637
+ "type": "string"
638
+ },
639
+ "merged": {
640
+ "type": "boolean"
641
+ },
642
+ "merge_commit_sha": {
643
+ "type": [
644
+ "string",
645
+ "null"
646
+ ]
647
+ }
648
+ }
649
+ },
650
+ "repository": {
651
+ "type": "object",
652
+ "required": [
653
+ "full_name"
654
+ ],
655
+ "properties": {
656
+ "full_name": {
657
+ "type": "string"
658
+ }
659
+ }
660
+ }
661
+ }
662
+ }
663
+ },
664
+ "pull_request.converted_to_draft": {
665
+ "description": "自己的 PR 改回草稿",
666
+ "starts": false,
667
+ "payload": {
668
+ "type": "object",
669
+ "required": [
670
+ "action",
671
+ "number",
672
+ "pull_request",
673
+ "repository"
674
+ ],
675
+ "properties": {
676
+ "action": {
677
+ "type": "string"
678
+ },
679
+ "number": {
680
+ "type": "integer"
681
+ },
682
+ "pull_request": {
683
+ "type": "object",
684
+ "required": [
685
+ "number",
686
+ "html_url",
687
+ "head",
688
+ "base"
689
+ ],
690
+ "properties": {
691
+ "number": {
692
+ "type": "integer"
693
+ },
694
+ "html_url": {
695
+ "type": "string"
696
+ },
697
+ "title": {
698
+ "type": "string"
699
+ },
700
+ "body": {
701
+ "type": "string"
702
+ },
703
+ "head": {
704
+ "type": "object",
705
+ "properties": {
706
+ "sha": {
707
+ "type": "string"
708
+ },
709
+ "ref": {
710
+ "type": "string"
711
+ }
712
+ }
713
+ },
714
+ "base": {
715
+ "type": "object",
716
+ "properties": {
717
+ "sha": {
718
+ "type": [
719
+ "string",
720
+ "null"
721
+ ]
722
+ },
723
+ "ref": {
724
+ "type": [
725
+ "string",
726
+ "null"
727
+ ]
728
+ }
729
+ }
730
+ },
731
+ "draft": {
732
+ "type": "boolean"
733
+ },
734
+ "state": {
735
+ "type": "string"
736
+ },
737
+ "merged": {
738
+ "type": "boolean"
739
+ },
740
+ "merge_commit_sha": {
741
+ "type": [
742
+ "string",
743
+ "null"
744
+ ]
745
+ }
746
+ }
747
+ },
748
+ "repository": {
749
+ "type": "object",
750
+ "required": [
751
+ "full_name"
752
+ ],
753
+ "properties": {
754
+ "full_name": {
755
+ "type": "string"
756
+ }
757
+ }
758
+ }
759
+ }
760
+ }
761
+ },
762
+ "pull_request.edited": {
763
+ "description": "自己的 PR 换了 base",
764
+ "starts": false,
765
+ "payload": {
766
+ "type": "object",
767
+ "required": [
768
+ "action",
769
+ "number",
770
+ "pull_request",
771
+ "repository"
772
+ ],
773
+ "properties": {
774
+ "action": {
775
+ "type": "string"
776
+ },
777
+ "number": {
778
+ "type": "integer"
779
+ },
780
+ "pull_request": {
781
+ "type": "object",
782
+ "required": [
783
+ "number",
784
+ "html_url",
785
+ "head",
786
+ "base"
787
+ ],
788
+ "properties": {
789
+ "number": {
790
+ "type": "integer"
791
+ },
792
+ "html_url": {
793
+ "type": "string"
794
+ },
795
+ "title": {
796
+ "type": "string"
797
+ },
798
+ "body": {
799
+ "type": "string"
800
+ },
801
+ "head": {
802
+ "type": "object",
803
+ "properties": {
804
+ "sha": {
805
+ "type": "string"
806
+ },
807
+ "ref": {
808
+ "type": "string"
809
+ }
810
+ }
811
+ },
812
+ "base": {
813
+ "type": "object",
814
+ "properties": {
815
+ "sha": {
816
+ "type": [
817
+ "string",
818
+ "null"
819
+ ]
820
+ },
821
+ "ref": {
822
+ "type": [
823
+ "string",
824
+ "null"
825
+ ]
826
+ }
827
+ }
828
+ },
829
+ "draft": {
830
+ "type": "boolean"
831
+ },
832
+ "state": {
833
+ "type": "string"
834
+ },
835
+ "merged": {
836
+ "type": "boolean"
837
+ },
838
+ "merge_commit_sha": {
839
+ "type": [
840
+ "string",
841
+ "null"
842
+ ]
843
+ }
844
+ }
845
+ },
846
+ "repository": {
847
+ "type": "object",
848
+ "required": [
849
+ "full_name"
850
+ ],
851
+ "properties": {
852
+ "full_name": {
853
+ "type": "string"
854
+ }
855
+ }
856
+ }
857
+ }
858
+ }
859
+ },
860
+ "pull_request.closed": {
861
+ "description": "自己的 PR 合并或关闭",
862
+ "starts": false,
863
+ "ends": true,
864
+ "payload": {
865
+ "type": "object",
866
+ "required": [
867
+ "action",
868
+ "number",
869
+ "pull_request",
870
+ "repository"
871
+ ],
872
+ "properties": {
873
+ "action": {
874
+ "type": "string"
875
+ },
876
+ "number": {
877
+ "type": "integer"
878
+ },
879
+ "pull_request": {
880
+ "type": "object",
881
+ "required": [
882
+ "number",
883
+ "html_url",
884
+ "head",
885
+ "base"
886
+ ],
887
+ "properties": {
888
+ "number": {
889
+ "type": "integer"
890
+ },
891
+ "html_url": {
892
+ "type": "string"
893
+ },
894
+ "title": {
895
+ "type": "string"
896
+ },
897
+ "body": {
898
+ "type": "string"
899
+ },
900
+ "head": {
901
+ "type": "object",
902
+ "properties": {
903
+ "sha": {
904
+ "type": "string"
905
+ },
906
+ "ref": {
907
+ "type": "string"
908
+ }
909
+ }
910
+ },
911
+ "base": {
912
+ "type": "object",
913
+ "properties": {
914
+ "sha": {
915
+ "type": [
916
+ "string",
917
+ "null"
918
+ ]
919
+ },
920
+ "ref": {
921
+ "type": [
922
+ "string",
923
+ "null"
924
+ ]
925
+ }
926
+ }
927
+ },
928
+ "draft": {
929
+ "type": "boolean"
930
+ },
931
+ "state": {
932
+ "type": "string"
933
+ },
934
+ "merged": {
935
+ "type": "boolean"
936
+ },
937
+ "merge_commit_sha": {
938
+ "type": [
939
+ "string",
940
+ "null"
941
+ ]
942
+ }
943
+ }
944
+ },
945
+ "repository": {
946
+ "type": "object",
947
+ "required": [
948
+ "full_name"
949
+ ],
950
+ "properties": {
951
+ "full_name": {
952
+ "type": "string"
953
+ }
954
+ }
955
+ }
956
+ }
957
+ }
958
+ },
959
+ "foreign_pull_request.opened": {
960
+ "description": "别人的 PR 第一次被看到",
961
+ "payload": {
962
+ "type": "object",
963
+ "required": [
964
+ "action",
965
+ "number",
966
+ "pull_request",
967
+ "repository"
968
+ ],
969
+ "properties": {
970
+ "action": {
971
+ "type": "string"
972
+ },
973
+ "number": {
974
+ "type": "integer"
975
+ },
976
+ "pull_request": {
977
+ "type": "object",
978
+ "required": [
979
+ "number",
980
+ "html_url",
981
+ "head",
982
+ "base"
983
+ ],
984
+ "properties": {
985
+ "number": {
986
+ "type": "integer"
987
+ },
988
+ "html_url": {
989
+ "type": "string"
990
+ },
991
+ "title": {
992
+ "type": "string"
993
+ },
994
+ "body": {
995
+ "type": "string"
996
+ },
997
+ "head": {
998
+ "type": "object",
999
+ "properties": {
1000
+ "sha": {
1001
+ "type": "string"
1002
+ },
1003
+ "ref": {
1004
+ "type": "string"
1005
+ }
1006
+ }
1007
+ },
1008
+ "base": {
1009
+ "type": "object",
1010
+ "properties": {
1011
+ "sha": {
1012
+ "type": [
1013
+ "string",
1014
+ "null"
1015
+ ]
1016
+ },
1017
+ "ref": {
1018
+ "type": [
1019
+ "string",
1020
+ "null"
1021
+ ]
1022
+ }
1023
+ }
1024
+ },
1025
+ "draft": {
1026
+ "type": "boolean"
1027
+ },
1028
+ "state": {
1029
+ "type": "string"
1030
+ },
1031
+ "merged": {
1032
+ "type": "boolean"
1033
+ },
1034
+ "merge_commit_sha": {
1035
+ "type": [
1036
+ "string",
1037
+ "null"
1038
+ ]
1039
+ }
1040
+ }
1041
+ },
1042
+ "repository": {
1043
+ "type": "object",
1044
+ "required": [
1045
+ "full_name"
1046
+ ],
1047
+ "properties": {
1048
+ "full_name": {
1049
+ "type": "string"
1050
+ }
1051
+ }
1052
+ }
1053
+ }
1054
+ }
1055
+ },
1056
+ "foreign_pull_request.synchronize": {
1057
+ "description": "别人的 PR 有了新版本",
1058
+ "payload": {
1059
+ "type": "object",
1060
+ "required": [
1061
+ "action",
1062
+ "number",
1063
+ "pull_request",
1064
+ "repository"
1065
+ ],
1066
+ "properties": {
1067
+ "action": {
1068
+ "type": "string"
1069
+ },
1070
+ "number": {
1071
+ "type": "integer"
1072
+ },
1073
+ "pull_request": {
1074
+ "type": "object",
1075
+ "required": [
1076
+ "number",
1077
+ "html_url",
1078
+ "head",
1079
+ "base"
1080
+ ],
1081
+ "properties": {
1082
+ "number": {
1083
+ "type": "integer"
1084
+ },
1085
+ "html_url": {
1086
+ "type": "string"
1087
+ },
1088
+ "title": {
1089
+ "type": "string"
1090
+ },
1091
+ "body": {
1092
+ "type": "string"
1093
+ },
1094
+ "head": {
1095
+ "type": "object",
1096
+ "properties": {
1097
+ "sha": {
1098
+ "type": "string"
1099
+ },
1100
+ "ref": {
1101
+ "type": "string"
1102
+ }
1103
+ }
1104
+ },
1105
+ "base": {
1106
+ "type": "object",
1107
+ "properties": {
1108
+ "sha": {
1109
+ "type": [
1110
+ "string",
1111
+ "null"
1112
+ ]
1113
+ },
1114
+ "ref": {
1115
+ "type": [
1116
+ "string",
1117
+ "null"
1118
+ ]
1119
+ }
1120
+ }
1121
+ },
1122
+ "draft": {
1123
+ "type": "boolean"
1124
+ },
1125
+ "state": {
1126
+ "type": "string"
1127
+ },
1128
+ "merged": {
1129
+ "type": "boolean"
1130
+ },
1131
+ "merge_commit_sha": {
1132
+ "type": [
1133
+ "string",
1134
+ "null"
1135
+ ]
1136
+ }
1137
+ }
1138
+ },
1139
+ "repository": {
1140
+ "type": "object",
1141
+ "required": [
1142
+ "full_name"
1143
+ ],
1144
+ "properties": {
1145
+ "full_name": {
1146
+ "type": "string"
1147
+ }
1148
+ }
1149
+ }
1150
+ }
1151
+ }
1152
+ },
1153
+ "foreign_pull_request.closed": {
1154
+ "description": "别人的 PR 合并或关闭",
1155
+ "starts": false,
1156
+ "ends": true,
1157
+ "payload": {
1158
+ "type": "object",
1159
+ "required": [
1160
+ "action",
1161
+ "number",
1162
+ "pull_request",
1163
+ "repository"
1164
+ ],
1165
+ "properties": {
1166
+ "action": {
1167
+ "type": "string"
1168
+ },
1169
+ "number": {
1170
+ "type": "integer"
1171
+ },
1172
+ "pull_request": {
1173
+ "type": "object",
1174
+ "required": [
1175
+ "number",
1176
+ "html_url",
1177
+ "head",
1178
+ "base"
1179
+ ],
1180
+ "properties": {
1181
+ "number": {
1182
+ "type": "integer"
1183
+ },
1184
+ "html_url": {
1185
+ "type": "string"
1186
+ },
1187
+ "title": {
1188
+ "type": "string"
1189
+ },
1190
+ "body": {
1191
+ "type": "string"
1192
+ },
1193
+ "head": {
1194
+ "type": "object",
1195
+ "properties": {
1196
+ "sha": {
1197
+ "type": "string"
1198
+ },
1199
+ "ref": {
1200
+ "type": "string"
1201
+ }
1202
+ }
1203
+ },
1204
+ "base": {
1205
+ "type": "object",
1206
+ "properties": {
1207
+ "sha": {
1208
+ "type": [
1209
+ "string",
1210
+ "null"
1211
+ ]
1212
+ },
1213
+ "ref": {
1214
+ "type": [
1215
+ "string",
1216
+ "null"
1217
+ ]
1218
+ }
1219
+ }
1220
+ },
1221
+ "draft": {
1222
+ "type": "boolean"
1223
+ },
1224
+ "state": {
1225
+ "type": "string"
1226
+ },
1227
+ "merged": {
1228
+ "type": "boolean"
1229
+ },
1230
+ "merge_commit_sha": {
1231
+ "type": [
1232
+ "string",
1233
+ "null"
1234
+ ]
1235
+ }
1236
+ }
1237
+ },
1238
+ "repository": {
1239
+ "type": "object",
1240
+ "required": [
1241
+ "full_name"
1242
+ ],
1243
+ "properties": {
1244
+ "full_name": {
1245
+ "type": "string"
1246
+ }
1247
+ }
1248
+ }
1249
+ }
1250
+ }
1251
+ }
1252
+ },
1253
+ "permissions": {
1254
+ "pull-requests": {
1255
+ "title": "收到 PR 的打开、更新、关闭等通知",
1256
+ "trial": true,
1257
+ "events": [
1258
+ "github.pull_request_reported",
1259
+ "git.pushed",
1260
+ "pull_request.opened",
1261
+ "pull_request.synchronize",
1262
+ "pull_request.ready_for_review",
1263
+ "pull_request.converted_to_draft",
1264
+ "pull_request.edited",
1265
+ "pull_request.closed",
1266
+ "foreign_pull_request.opened",
1267
+ "foreign_pull_request.synchronize",
1268
+ "foreign_pull_request.closed"
1269
+ ]
1270
+ }
1271
+ }
1272
+ },
1273
+ {
1274
+ "name": "github/account@1",
1275
+ "title": "GitHub 账号",
1276
+ "description": "这台机器上登录的 GitHub 账号,按试用顺序,带登录状态与提交署名",
1277
+ "spec": {
1278
+ "type": "object",
1279
+ "required": [
1280
+ "login",
1281
+ "order"
1282
+ ],
1283
+ "properties": {
1284
+ "login": {
1285
+ "type": "string"
1286
+ },
1287
+ "order": {
1288
+ "type": "integer",
1289
+ "minimum": 0
1290
+ }
1291
+ },
1292
+ "additionalProperties": false
1293
+ },
1294
+ "status": {
1295
+ "type": "object",
1296
+ "required": [
1297
+ "state",
1298
+ "signature",
1299
+ "unreadable"
1300
+ ],
1301
+ "properties": {
1302
+ "state": {
1303
+ "enum": [
1304
+ "ok",
1305
+ "invalid",
1306
+ "absent",
1307
+ "unknown"
1308
+ ]
1309
+ },
1310
+ "signature": {
1311
+ "type": [
1312
+ "object",
1313
+ "null"
1314
+ ],
1315
+ "required": [
1316
+ "name",
1317
+ "email"
1318
+ ],
1319
+ "properties": {
1320
+ "name": {
1321
+ "type": "string"
1322
+ },
1323
+ "email": {
1324
+ "type": "string"
1325
+ }
1326
+ },
1327
+ "additionalProperties": false
1328
+ },
1329
+ "unreadable": {
1330
+ "type": "boolean"
1331
+ }
1332
+ },
1333
+ "additionalProperties": false
1334
+ },
1335
+ "operations": {
1336
+ "move": {
1337
+ "description": "在试用顺序里上移(-1)或下移(1)一位",
1338
+ "input": {
1339
+ "type": "object",
1340
+ "required": [
1341
+ "by"
1342
+ ],
1343
+ "properties": {
1344
+ "by": {
1345
+ "enum": [
1346
+ -1,
1347
+ 1
1348
+ ]
1349
+ }
1350
+ },
1351
+ "additionalProperties": false
1352
+ },
1353
+ "result": {
1354
+ "type": "object",
1355
+ "additionalProperties": false
1356
+ }
1357
+ }
1358
+ }
1359
+ },
1360
+ {
1361
+ "name": "github/owner@1",
1362
+ "title": "GitHub owner",
1363
+ "description": "记下的 owner 与它的仓库用来推送和署名的账号",
1364
+ "spec": {
1365
+ "type": "object",
1366
+ "required": [
1367
+ "owner",
1368
+ "login",
1369
+ "manual"
1370
+ ],
1371
+ "properties": {
1372
+ "owner": {
1373
+ "type": "string"
1374
+ },
1375
+ "login": {
1376
+ "type": "string"
1377
+ },
1378
+ "manual": {
1379
+ "type": "boolean"
1380
+ }
1381
+ },
1382
+ "additionalProperties": false
1383
+ },
1384
+ "status": {
1385
+ "type": "object",
1386
+ "additionalProperties": false
1387
+ },
1388
+ "operations": {
1389
+ "assign": {
1390
+ "description": "改用另一个已登录的账号",
1391
+ "input": {
1392
+ "type": "object",
1393
+ "required": [
1394
+ "login"
1395
+ ],
1396
+ "properties": {
1397
+ "login": {
1398
+ "type": "string"
1399
+ }
1400
+ },
1401
+ "additionalProperties": false
1402
+ },
1403
+ "result": {
1404
+ "type": "object",
1405
+ "additionalProperties": false
1406
+ },
1407
+ "idempotent": true
1408
+ },
1409
+ "forget": {
1410
+ "description": "删掉记录,下次用到时重新试出",
1411
+ "input": {
1412
+ "type": "object",
1413
+ "additionalProperties": false
1414
+ },
1415
+ "result": {
1416
+ "type": "object",
1417
+ "additionalProperties": false
1418
+ },
1419
+ "idempotent": true
1420
+ }
1421
+ }
1422
+ }
1423
+ ],
1424
+ "protocolImplementations": [
1425
+ {
1426
+ "kind": "github/account@1",
1427
+ "commands": {
1428
+ "move": "scripts/ops/move.mjs"
1429
+ }
1430
+ },
1431
+ {
1432
+ "kind": "github/owner@1",
1433
+ "commands": {
1434
+ "assign": "scripts/ops/assign.mjs",
1435
+ "forget": "scripts/ops/forget.mjs"
1436
+ }
1437
+ }
1438
+ ],
1439
+ "records": [
1440
+ {
1441
+ "kind": "github/account@1",
1442
+ "command": "scripts/records/accounts.mjs",
1443
+ "every": 300000
1444
+ },
1445
+ {
1446
+ "kind": "github/owner@1",
1447
+ "command": "scripts/records/owners.mjs",
1448
+ "every": 60000
1449
+ }
1450
+ ],
369
1451
  "offers": {
370
1452
  "resources": [
371
1453
  {
@@ -428,7 +1510,6 @@
428
1510
  "commands": [],
429
1511
  "capabilities": [],
430
1512
  "gitCredentials": [],
431
- "endpoints": [],
432
1513
  "views": [],
433
1514
  "dependencies": [],
434
1515
  "extensionPoints": {},
@@ -500,7 +1581,6 @@
500
1581
  "commands": [],
501
1582
  "capabilities": [],
502
1583
  "gitCredentials": [],
503
- "endpoints": [],
504
1584
  "views": [],
505
1585
  "dependencies": [],
506
1586
  "extensionPoints": {},
@@ -536,7 +1616,6 @@
536
1616
  "commands": [],
537
1617
  "capabilities": [],
538
1618
  "gitCredentials": [],
539
- "endpoints": [],
540
1619
  "views": [
541
1620
  {
542
1621
  "id": "panels",
@@ -844,7 +1923,6 @@
844
1923
  "secret-request"
845
1924
  ],
846
1925
  "gitCredentials": [],
847
- "endpoints": [],
848
1926
  "views": [],
849
1927
  "dependencies": [],
850
1928
  "extensionPoints": {},
@@ -901,7 +1979,6 @@
901
1979
  "commands": [],
902
1980
  "capabilities": [],
903
1981
  "gitCredentials": [],
904
- "endpoints": [],
905
1982
  "views": [],
906
1983
  "dependencies": [],
907
1984
  "extensionPoints": {},
@@ -948,7 +2025,6 @@
948
2025
  "commands": [],
949
2026
  "capabilities": [],
950
2027
  "gitCredentials": [],
951
- "endpoints": [],
952
2028
  "views": [],
953
2029
  "dependencies": [
954
2030
  "tailnet"
@@ -986,7 +2062,6 @@
986
2062
  ],
987
2063
  "capabilities": [],
988
2064
  "gitCredentials": [],
989
- "endpoints": [],
990
2065
  "views": [],
991
2066
  "dependencies": [],
992
2067
  "extensionPoints": {
@@ -1037,7 +2112,6 @@
1037
2112
  "commands": [],
1038
2113
  "capabilities": [],
1039
2114
  "gitCredentials": [],
1040
- "endpoints": [],
1041
2115
  "views": [
1042
2116
  {
1043
2117
  "id": "session",
@@ -1147,7 +2221,6 @@
1147
2221
  "commands": [],
1148
2222
  "capabilities": [],
1149
2223
  "gitCredentials": [],
1150
- "endpoints": [],
1151
2224
  "views": [],
1152
2225
  "offers": {
1153
2226
  "resources": [
@@ -1232,7 +2305,6 @@
1232
2305
  "commands": [],
1233
2306
  "capabilities": [],
1234
2307
  "gitCredentials": [],
1235
- "endpoints": [],
1236
2308
  "views": [],
1237
2309
  "offers": {
1238
2310
  "resources": [
@@ -1292,7 +2364,6 @@
1292
2364
  "commands": [],
1293
2365
  "capabilities": [],
1294
2366
  "gitCredentials": [],
1295
- "endpoints": [],
1296
2367
  "views": [],
1297
2368
  "offers": {
1298
2369
  "resources": [
@@ -1685,7 +2756,6 @@
1685
2756
  }
1686
2757
  }
1687
2758
  ],
1688
- "endpoints": [],
1689
2759
  "views": [],
1690
2760
  "dependencies": [
1691
2761
  "github"
@@ -1745,7 +2815,6 @@
1745
2815
  "commands": [],
1746
2816
  "capabilities": [],
1747
2817
  "gitCredentials": [],
1748
- "endpoints": [],
1749
2818
  "views": [],
1750
2819
  "offers": {
1751
2820
  "resources": [
@@ -1823,7 +2892,6 @@
1823
2892
  "commands": [],
1824
2893
  "capabilities": [],
1825
2894
  "gitCredentials": [],
1826
- "endpoints": [],
1827
2895
  "views": [],
1828
2896
  "offers": {
1829
2897
  "resources": [
@@ -1918,7 +2986,6 @@
1918
2986
  "commands": [],
1919
2987
  "capabilities": [],
1920
2988
  "gitCredentials": [],
1921
- "endpoints": [],
1922
2989
  "views": [],
1923
2990
  "dependencies": [],
1924
2991
  "extensionPoints": {},
@@ -2083,7 +3150,6 @@
2083
3150
  "review-commit"
2084
3151
  ],
2085
3152
  "gitCredentials": [],
2086
- "endpoints": [],
2087
3153
  "views": [],
2088
3154
  "dependencies": [
2089
3155
  "github"
@@ -2118,7 +3184,6 @@
2118
3184
  "commands": [],
2119
3185
  "capabilities": [],
2120
3186
  "gitCredentials": [],
2121
- "endpoints": [],
2122
3187
  "views": [],
2123
3188
  "offers": {
2124
3189
  "resources": [