@kana-ai/edgar-ext-github 0.0.0-stage → 0.1.1

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.
Files changed (136) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +469 -2
  3. package/agents/dismiss/agent.toml +4 -0
  4. package/agents/dismiss/instructions.md +25 -0
  5. package/dist/src/api/app.d.ts +16 -0
  6. package/dist/src/api/app.js +32 -0
  7. package/dist/src/api/client.d.ts +26 -0
  8. package/dist/src/api/client.js +103 -0
  9. package/dist/src/api/failures.d.ts +8 -0
  10. package/dist/src/api/failures.js +31 -0
  11. package/dist/src/feed/alerts.d.ts +26 -0
  12. package/dist/src/feed/alerts.js +117 -0
  13. package/dist/src/feed/cards.d.ts +32 -0
  14. package/dist/src/feed/cards.js +164 -0
  15. package/dist/src/feed/service.d.ts +28 -0
  16. package/dist/src/feed/service.js +163 -0
  17. package/dist/src/index.d.ts +490 -0
  18. package/dist/src/index.js +62 -0
  19. package/dist/src/schemas/config.d.ts +57 -0
  20. package/dist/src/schemas/config.js +89 -0
  21. package/dist/src/schemas/github.d.ts +417 -0
  22. package/dist/src/schemas/github.js +216 -0
  23. package/dist/src/schemas/tools.d.ts +620 -0
  24. package/dist/src/schemas/tools.js +501 -0
  25. package/dist/src/tools/alerts.d.ts +45 -0
  26. package/dist/src/tools/alerts.js +100 -0
  27. package/dist/src/tools/branch.d.ts +9 -0
  28. package/dist/src/tools/branch.js +48 -0
  29. package/dist/src/tools/checks.d.ts +118 -0
  30. package/dist/src/tools/checks.js +223 -0
  31. package/dist/src/tools/discussion.d.ts +41 -0
  32. package/dist/src/tools/discussion.js +66 -0
  33. package/dist/src/tools/pull-request.d.ts +195 -0
  34. package/dist/src/tools/pull-request.js +537 -0
  35. package/dist/src/tools/repository.d.ts +53 -0
  36. package/dist/src/tools/repository.js +134 -0
  37. package/dist/src/tools/screenshot.d.ts +21 -0
  38. package/dist/src/tools/screenshot.js +99 -0
  39. package/dist/src/tracker/assignee.d.ts +15 -0
  40. package/dist/src/tracker/assignee.js +65 -0
  41. package/dist/src/tracker/cards.d.ts +41 -0
  42. package/dist/src/tracker/cards.js +361 -0
  43. package/dist/src/tracker/comments.d.ts +9 -0
  44. package/dist/src/tracker/comments.js +68 -0
  45. package/dist/src/tracker/description.d.ts +19 -0
  46. package/dist/src/tracker/description.js +55 -0
  47. package/dist/src/tracker/hand-back.d.ts +8 -0
  48. package/dist/src/tracker/hand-back.js +60 -0
  49. package/dist/src/tracker/port.d.ts +2 -0
  50. package/dist/src/tracker/port.js +42 -0
  51. package/dist/src/tracker/states.d.ts +77 -0
  52. package/dist/src/tracker/states.js +189 -0
  53. package/dist/src/tracker/tools.d.ts +143 -0
  54. package/dist/src/tracker/tools.js +131 -0
  55. package/dist/src/tracker/transitions.d.ts +12 -0
  56. package/dist/src/tracker/transitions.js +101 -0
  57. package/edgar-extension.json +507 -0
  58. package/package.json +43 -3
  59. package/schemas/assign.in.json +15 -0
  60. package/schemas/assign.out.json +14 -0
  61. package/schemas/attach_screenshot.in.json +44 -0
  62. package/schemas/attach_screenshot.out.json +31 -0
  63. package/schemas/batch_cards.in.json +27 -0
  64. package/schemas/batch_cards.out.json +37 -0
  65. package/schemas/branch_protection.in.json +15 -0
  66. package/schemas/branch_protection.out.json +67 -0
  67. package/schemas/ci_run.in.json +12 -0
  68. package/schemas/ci_run.out.json +109 -0
  69. package/schemas/close.in.json +14 -0
  70. package/schemas/close.out.json +10 -0
  71. package/schemas/close_pull_request.in.json +21 -0
  72. package/schemas/close_pull_request.out.json +14 -0
  73. package/schemas/comment.in.json +19 -0
  74. package/schemas/comment.out.json +10 -0
  75. package/schemas/config.json +202 -0
  76. package/schemas/count_sighting.in.json +17 -0
  77. package/schemas/count_sighting.out.json +10 -0
  78. package/schemas/create_card.in.json +108 -0
  79. package/schemas/create_card.out.json +13 -0
  80. package/schemas/dependabot_alerts.in.json +49 -0
  81. package/schemas/dependabot_alerts.out.json +75 -0
  82. package/schemas/dismiss_dependabot_alert.in.json +26 -0
  83. package/schemas/dismiss_dependabot_alert.out.json +27 -0
  84. package/schemas/find_assignee.in.json +15 -0
  85. package/schemas/find_assignee.out.json +10 -0
  86. package/schemas/find_cards.in.json +18 -0
  87. package/schemas/find_cards.out.json +33 -0
  88. package/schemas/find_dependabot_dismissal.in.json +12 -0
  89. package/schemas/find_dependabot_dismissal.out.json +27 -0
  90. package/schemas/find_description.in.json +15 -0
  91. package/schemas/find_description.out.json +10 -0
  92. package/schemas/find_pull_request.in.json +25 -0
  93. package/schemas/find_pull_request.out.json +14 -0
  94. package/schemas/hand_back.in.json +11 -0
  95. package/schemas/hand_back.out.json +18 -0
  96. package/schemas/linked_pull_requests.in.json +15 -0
  97. package/schemas/linked_pull_requests.out.json +44 -0
  98. package/schemas/list_pull_requests.in.json +26 -0
  99. package/schemas/list_pull_requests.out.json +42 -0
  100. package/schemas/merge_pull_request.in.json +22 -0
  101. package/schemas/merge_pull_request.out.json +16 -0
  102. package/schemas/move.in.json +15 -0
  103. package/schemas/move.out.json +10 -0
  104. package/schemas/note_pull_request.in.json +15 -0
  105. package/schemas/note_pull_request.out.json +10 -0
  106. package/schemas/open_pull_request.in.json +113 -0
  107. package/schemas/open_pull_request.out.json +15 -0
  108. package/schemas/pull_request_checks.in.json +11 -0
  109. package/schemas/pull_request_checks.out.json +72 -0
  110. package/schemas/pull_request_discussion.in.json +11 -0
  111. package/schemas/pull_request_discussion.out.json +107 -0
  112. package/schemas/pull_request_state.in.json +11 -0
  113. package/schemas/pull_request_state.out.json +52 -0
  114. package/schemas/push_branch.in.json +21 -0
  115. package/schemas/push_branch.out.json +13 -0
  116. package/schemas/release_follow_ups.in.json +15 -0
  117. package/schemas/release_follow_ups.out.json +13 -0
  118. package/schemas/reopen_dependabot_alert.in.json +33 -0
  119. package/schemas/reopen_dependabot_alert.out.json +22 -0
  120. package/schemas/restore_assignee.in.json +20 -0
  121. package/schemas/restore_assignee.out.json +10 -0
  122. package/schemas/restore_description.in.json +20 -0
  123. package/schemas/restore_description.out.json +10 -0
  124. package/schemas/update_description.in.json +15 -0
  125. package/schemas/update_description.out.json +14 -0
  126. package/schemas/update_pull_request.in.json +81 -0
  127. package/schemas/update_pull_request.out.json +10 -0
  128. package/schemas/wait_for_checks.in.json +11 -0
  129. package/schemas/wait_for_checks.out.json +72 -0
  130. package/schemas/wait_for_merge.in.json +11 -0
  131. package/schemas/wait_for_merge.out.json +17 -0
  132. package/schemas/wait_for_passed_checks.in.json +11 -0
  133. package/schemas/wait_for_passed_checks.out.json +72 -0
  134. package/schemas/wait_for_review.in.json +11 -0
  135. package/schemas/wait_for_review.out.json +52 -0
  136. package/workflows/resume.toml +17 -0
@@ -0,0 +1,108 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "spec": {
6
+ "type": "object",
7
+ "properties": {
8
+ "title": {
9
+ "type": "string",
10
+ "minLength": 1
11
+ },
12
+ "description": {
13
+ "type": "string"
14
+ },
15
+ "column": {
16
+ "type": "string"
17
+ },
18
+ "labels": {
19
+ "type": "array",
20
+ "items": {
21
+ "type": "string"
22
+ }
23
+ },
24
+ "block": {
25
+ "type": "object",
26
+ "properties": {
27
+ "kind": {
28
+ "type": "string",
29
+ "enum": ["defect", "request", "question", "investigation"]
30
+ },
31
+ "service": {
32
+ "type": "string"
33
+ },
34
+ "environment": {
35
+ "type": "string"
36
+ },
37
+ "fingerprint": {
38
+ "type": "string",
39
+ "pattern": "^[0-9a-f]{16}$"
40
+ },
41
+ "first_seen": {
42
+ "type": "string",
43
+ "format": "date-time",
44
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
45
+ },
46
+ "last_seen": {
47
+ "type": "string",
48
+ "format": "date-time",
49
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
50
+ },
51
+ "occurrences": {
52
+ "type": "integer",
53
+ "minimum": 0,
54
+ "maximum": 9007199254740991
55
+ },
56
+ "severity": {
57
+ "type": "string"
58
+ },
59
+ "window": {
60
+ "type": "string"
61
+ },
62
+ "waits_for": {
63
+ "type": "string",
64
+ "minLength": 1
65
+ },
66
+ "decided": {
67
+ "type": "object",
68
+ "propertyNames": {
69
+ "type": "string"
70
+ },
71
+ "additionalProperties": {
72
+ "type": "string"
73
+ }
74
+ },
75
+ "origin": {
76
+ "type": "object",
77
+ "properties": {
78
+ "extension": {
79
+ "type": "string",
80
+ "pattern": "^[a-z][a-z0-9_]{0,63}$"
81
+ },
82
+ "channel": {
83
+ "type": "string",
84
+ "minLength": 1
85
+ },
86
+ "thread": {
87
+ "type": "string",
88
+ "minLength": 1
89
+ }
90
+ },
91
+ "required": ["extension", "channel", "thread"],
92
+ "additionalProperties": false
93
+ }
94
+ },
95
+ "required": ["kind"],
96
+ "additionalProperties": false
97
+ }
98
+ },
99
+ "required": ["title", "description", "block"],
100
+ "additionalProperties": false
101
+ },
102
+ "parent": {
103
+ "type": "string",
104
+ "minLength": 1
105
+ }
106
+ },
107
+ "required": ["spec"]
108
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "id": {
6
+ "type": "string"
7
+ },
8
+ "url": {
9
+ "type": "string"
10
+ }
11
+ },
12
+ "required": ["id", "url"]
13
+ }
@@ -0,0 +1,49 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "repo": {
6
+ "type": "string",
7
+ "minLength": 1
8
+ },
9
+ "number": {
10
+ "description": "one alert; the filters then must be empty",
11
+ "type": "integer",
12
+ "exclusiveMinimum": 0,
13
+ "maximum": 9007199254740991
14
+ },
15
+ "state": {
16
+ "description": "every state when absent",
17
+ "type": "array",
18
+ "items": {
19
+ "type": "string",
20
+ "enum": ["open", "fixed", "dismissed", "auto_dismissed"]
21
+ }
22
+ },
23
+ "package": {
24
+ "type": "string",
25
+ "minLength": 1
26
+ },
27
+ "ghsa": {
28
+ "type": "array",
29
+ "items": {
30
+ "type": "string",
31
+ "pattern": "^GHSA(-[0-9a-zA-Z]{4}){3}$"
32
+ }
33
+ },
34
+ "cve": {
35
+ "type": "array",
36
+ "items": {
37
+ "type": "string",
38
+ "pattern": "^CVE-\\d{4}-\\d{4,}$"
39
+ }
40
+ },
41
+ "limit": {
42
+ "description": "30 when absent",
43
+ "type": "integer",
44
+ "minimum": 1,
45
+ "maximum": 100
46
+ }
47
+ },
48
+ "required": ["repo"]
49
+ }
@@ -0,0 +1,75 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "alerts": {
6
+ "type": "array",
7
+ "items": {
8
+ "type": "object",
9
+ "properties": {
10
+ "number": {
11
+ "type": "integer",
12
+ "minimum": -9007199254740991,
13
+ "maximum": 9007199254740991
14
+ },
15
+ "url": {
16
+ "type": "string"
17
+ },
18
+ "state": {
19
+ "type": "string"
20
+ },
21
+ "package": {
22
+ "type": ["string", "null"]
23
+ },
24
+ "ecosystem": {
25
+ "type": ["string", "null"]
26
+ },
27
+ "severity": {
28
+ "type": "string"
29
+ },
30
+ "vulnerable_range": {
31
+ "type": "string"
32
+ },
33
+ "first_patched": {
34
+ "type": ["string", "null"]
35
+ },
36
+ "manifest": {
37
+ "type": ["string", "null"]
38
+ },
39
+ "scope": {
40
+ "type": ["string", "null"]
41
+ },
42
+ "ghsa": {
43
+ "type": "string"
44
+ },
45
+ "cve": {
46
+ "type": ["string", "null"]
47
+ },
48
+ "summary": {
49
+ "type": "string"
50
+ }
51
+ },
52
+ "required": [
53
+ "number",
54
+ "url",
55
+ "state",
56
+ "package",
57
+ "ecosystem",
58
+ "severity",
59
+ "vulnerable_range",
60
+ "first_patched",
61
+ "manifest",
62
+ "scope",
63
+ "ghsa",
64
+ "cve",
65
+ "summary"
66
+ ]
67
+ }
68
+ },
69
+ "complete": {
70
+ "type": "boolean",
71
+ "description": "false when GitHub may hold more alerts than one page gave"
72
+ }
73
+ },
74
+ "required": ["alerts", "complete"]
75
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "repo": {
6
+ "type": "string",
7
+ "minLength": 1
8
+ },
9
+ "number": {
10
+ "type": "integer",
11
+ "exclusiveMinimum": 0,
12
+ "maximum": 9007199254740991
13
+ },
14
+ "reason": {
15
+ "type": "string",
16
+ "enum": ["fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk"]
17
+ },
18
+ "comment": {
19
+ "type": "string",
20
+ "minLength": 1,
21
+ "maxLength": 280,
22
+ "description": "why, for the people who read the alert; GitHub keeps at most 280 characters"
23
+ }
24
+ },
25
+ "required": ["repo", "number", "reason", "comment"]
26
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "repo": {
6
+ "type": "string",
7
+ "description": "owner/name"
8
+ },
9
+ "number": {
10
+ "type": "integer",
11
+ "minimum": -9007199254740991,
12
+ "maximum": 9007199254740991
13
+ },
14
+ "url": {
15
+ "type": "string"
16
+ },
17
+ "reason": {
18
+ "type": "string",
19
+ "description": "the reason the alert holds now"
20
+ },
21
+ "reopen": {
22
+ "type": "boolean",
23
+ "description": "true when the alert was open, or held the reason and the comment of this call; reopen_dependabot_alert opens the alert again only then"
24
+ }
25
+ },
26
+ "required": ["repo", "number", "url", "reason", "reopen"]
27
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "card": {
6
+ "type": "string",
7
+ "minLength": 1
8
+ },
9
+ "user": {
10
+ "type": "string",
11
+ "description": "the GitHub login, `me` for EDGAR's own login, or an empty text for nobody"
12
+ }
13
+ },
14
+ "required": ["card", "user"]
15
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "id": {
6
+ "type": "string"
7
+ }
8
+ },
9
+ "required": ["id"]
10
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "text": {
6
+ "type": "string",
7
+ "minLength": 1,
8
+ "maxLength": 1024,
9
+ "description": "words of the fault, such as the error message, the endpoint or the service"
10
+ },
11
+ "except": {
12
+ "description": "the card you work on; it and each card made after it are left out",
13
+ "type": "string",
14
+ "minLength": 1
15
+ }
16
+ },
17
+ "required": ["text"]
18
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "cards": {
6
+ "maxItems": 10,
7
+ "type": "array",
8
+ "items": {
9
+ "type": "object",
10
+ "properties": {
11
+ "id": {
12
+ "type": "string"
13
+ },
14
+ "title": {
15
+ "type": "string"
16
+ },
17
+ "url": {
18
+ "type": "string"
19
+ },
20
+ "state": {
21
+ "type": "string",
22
+ "description": "the engine state of the card, or its column name"
23
+ },
24
+ "created_at": {
25
+ "type": "string"
26
+ }
27
+ },
28
+ "required": ["id", "title", "url", "state", "created_at"]
29
+ }
30
+ }
31
+ },
32
+ "required": ["cards"]
33
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "operation_id": {
6
+ "type": "string",
7
+ "minLength": 1
8
+ },
9
+ "input": {}
10
+ },
11
+ "required": ["operation_id", "input"]
12
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "repo": {
6
+ "type": "string",
7
+ "description": "owner/name"
8
+ },
9
+ "number": {
10
+ "type": "integer",
11
+ "minimum": -9007199254740991,
12
+ "maximum": 9007199254740991
13
+ },
14
+ "url": {
15
+ "type": "string"
16
+ },
17
+ "reason": {
18
+ "type": "string",
19
+ "description": "the reason the alert holds now"
20
+ },
21
+ "reopen": {
22
+ "type": "boolean",
23
+ "description": "true when the alert was open, or held the reason and the comment of this call; reopen_dependabot_alert opens the alert again only then"
24
+ }
25
+ },
26
+ "required": ["repo", "number", "url", "reason", "reopen"]
27
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "card": {
6
+ "type": "string",
7
+ "minLength": 1
8
+ },
9
+ "description": {
10
+ "type": "string",
11
+ "description": "the new description; the card's edgar:v0 block is kept"
12
+ }
13
+ },
14
+ "required": ["card", "description"]
15
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "id": {
6
+ "type": "string"
7
+ }
8
+ },
9
+ "required": ["id"]
10
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "operation_id": {
6
+ "type": "string",
7
+ "minLength": 1
8
+ },
9
+ "input": {
10
+ "type": "object",
11
+ "properties": {
12
+ "repo": {
13
+ "type": "string",
14
+ "minLength": 1
15
+ },
16
+ "branch": {
17
+ "type": "string",
18
+ "minLength": 1
19
+ }
20
+ },
21
+ "required": ["repo", "branch"]
22
+ }
23
+ },
24
+ "required": ["operation_id", "input"]
25
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "url": {
6
+ "type": "string"
7
+ },
8
+ "state": {
9
+ "type": "string",
10
+ "enum": ["open", "merged", "closed"]
11
+ }
12
+ },
13
+ "required": ["url", "state"]
14
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "card": {
6
+ "type": "string",
7
+ "minLength": 1
8
+ }
9
+ },
10
+ "required": ["card"]
11
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "id": {
6
+ "type": "string"
7
+ },
8
+ "to": {
9
+ "type": "string",
10
+ "description": "the login of the person the card is now assigned to"
11
+ },
12
+ "previous": {
13
+ "type": "string",
14
+ "description": "the login the card was assigned to before, or an empty text for nobody"
15
+ }
16
+ },
17
+ "required": ["id", "to", "previous"]
18
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "text": {
6
+ "type": "string"
7
+ },
8
+ "repo": {
9
+ "type": "string",
10
+ "minLength": 1,
11
+ "description": "the repository of the card's service; a link to a pull request elsewhere is left out"
12
+ }
13
+ },
14
+ "required": ["text", "repo"]
15
+ }
@@ -0,0 +1,44 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "pull_requests": {
6
+ "type": "array",
7
+ "items": {
8
+ "type": "object",
9
+ "properties": {
10
+ "url": {
11
+ "type": "string"
12
+ },
13
+ "state": {
14
+ "type": "string",
15
+ "enum": ["open", "merged", "closed"]
16
+ },
17
+ "title": {
18
+ "type": "string"
19
+ },
20
+ "body": {
21
+ "type": "string"
22
+ },
23
+ "files": {
24
+ "type": "array",
25
+ "items": {
26
+ "type": "object",
27
+ "properties": {
28
+ "path": {
29
+ "type": "string"
30
+ },
31
+ "patch": {
32
+ "type": "string"
33
+ }
34
+ },
35
+ "required": ["path", "patch"]
36
+ }
37
+ }
38
+ },
39
+ "required": ["url", "state", "title", "body", "files"]
40
+ }
41
+ }
42
+ },
43
+ "required": ["pull_requests"]
44
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "services": {
6
+ "type": "array",
7
+ "items": {
8
+ "type": "object",
9
+ "properties": {
10
+ "repo": {
11
+ "type": "string",
12
+ "minLength": 1
13
+ }
14
+ },
15
+ "required": ["repo"]
16
+ }
17
+ },
18
+ "merged_within_hours": {
19
+ "description": "with it, the pull requests merged within this many hours, in place of the open ones",
20
+ "type": "integer",
21
+ "minimum": 1,
22
+ "maximum": 720
23
+ }
24
+ },
25
+ "required": ["services"]
26
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "pull_requests": {
6
+ "type": "array",
7
+ "items": {
8
+ "type": "object",
9
+ "properties": {
10
+ "url": {
11
+ "type": "string"
12
+ },
13
+ "branch": {
14
+ "type": "string"
15
+ },
16
+ "card": {
17
+ "type": "string"
18
+ },
19
+ "unmerged": {
20
+ "type": "array",
21
+ "items": {
22
+ "type": "object",
23
+ "properties": {
24
+ "url": {
25
+ "type": "string"
26
+ },
27
+ "state": {
28
+ "type": "string",
29
+ "enum": ["open", "closed"]
30
+ }
31
+ },
32
+ "required": ["url", "state"]
33
+ },
34
+ "description": "with merged_within_hours, the pull requests of its `Goes with:` line that are not merged; empty otherwise"
35
+ }
36
+ },
37
+ "required": ["url", "branch", "card", "unmerged"]
38
+ }
39
+ }
40
+ },
41
+ "required": ["pull_requests"]
42
+ }