@kana-ai/edgar-ext-github 0.0.0-stage → 0.1.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/LICENSE +202 -0
- package/README.md +469 -2
- package/agents/dismiss/agent.toml +4 -0
- package/agents/dismiss/instructions.md +25 -0
- package/dist/src/api/app.d.ts +16 -0
- package/dist/src/api/app.js +32 -0
- package/dist/src/api/client.d.ts +26 -0
- package/dist/src/api/client.js +103 -0
- package/dist/src/api/failures.d.ts +8 -0
- package/dist/src/api/failures.js +31 -0
- package/dist/src/feed/alerts.d.ts +26 -0
- package/dist/src/feed/alerts.js +117 -0
- package/dist/src/feed/cards.d.ts +32 -0
- package/dist/src/feed/cards.js +164 -0
- package/dist/src/feed/service.d.ts +28 -0
- package/dist/src/feed/service.js +163 -0
- package/dist/src/index.d.ts +490 -0
- package/dist/src/index.js +62 -0
- package/dist/src/schemas/config.d.ts +57 -0
- package/dist/src/schemas/config.js +89 -0
- package/dist/src/schemas/github.d.ts +417 -0
- package/dist/src/schemas/github.js +216 -0
- package/dist/src/schemas/tools.d.ts +620 -0
- package/dist/src/schemas/tools.js +501 -0
- package/dist/src/tools/alerts.d.ts +45 -0
- package/dist/src/tools/alerts.js +100 -0
- package/dist/src/tools/branch.d.ts +9 -0
- package/dist/src/tools/branch.js +48 -0
- package/dist/src/tools/checks.d.ts +118 -0
- package/dist/src/tools/checks.js +223 -0
- package/dist/src/tools/discussion.d.ts +41 -0
- package/dist/src/tools/discussion.js +66 -0
- package/dist/src/tools/pull-request.d.ts +195 -0
- package/dist/src/tools/pull-request.js +537 -0
- package/dist/src/tools/repository.d.ts +53 -0
- package/dist/src/tools/repository.js +134 -0
- package/dist/src/tools/screenshot.d.ts +21 -0
- package/dist/src/tools/screenshot.js +99 -0
- package/dist/src/tracker/assignee.d.ts +15 -0
- package/dist/src/tracker/assignee.js +65 -0
- package/dist/src/tracker/cards.d.ts +41 -0
- package/dist/src/tracker/cards.js +361 -0
- package/dist/src/tracker/comments.d.ts +9 -0
- package/dist/src/tracker/comments.js +68 -0
- package/dist/src/tracker/description.d.ts +19 -0
- package/dist/src/tracker/description.js +55 -0
- package/dist/src/tracker/hand-back.d.ts +8 -0
- package/dist/src/tracker/hand-back.js +60 -0
- package/dist/src/tracker/port.d.ts +2 -0
- package/dist/src/tracker/port.js +42 -0
- package/dist/src/tracker/states.d.ts +77 -0
- package/dist/src/tracker/states.js +189 -0
- package/dist/src/tracker/tools.d.ts +143 -0
- package/dist/src/tracker/tools.js +131 -0
- package/dist/src/tracker/transitions.d.ts +12 -0
- package/dist/src/tracker/transitions.js +101 -0
- package/edgar-extension.json +507 -0
- package/package.json +43 -3
- package/schemas/assign.in.json +15 -0
- package/schemas/assign.out.json +14 -0
- package/schemas/attach_screenshot.in.json +44 -0
- package/schemas/attach_screenshot.out.json +31 -0
- package/schemas/batch_cards.in.json +27 -0
- package/schemas/batch_cards.out.json +37 -0
- package/schemas/branch_protection.in.json +15 -0
- package/schemas/branch_protection.out.json +67 -0
- package/schemas/ci_run.in.json +12 -0
- package/schemas/ci_run.out.json +109 -0
- package/schemas/close.in.json +14 -0
- package/schemas/close.out.json +10 -0
- package/schemas/close_pull_request.in.json +21 -0
- package/schemas/close_pull_request.out.json +14 -0
- package/schemas/comment.in.json +19 -0
- package/schemas/comment.out.json +10 -0
- package/schemas/config.json +202 -0
- package/schemas/count_sighting.in.json +17 -0
- package/schemas/count_sighting.out.json +10 -0
- package/schemas/create_card.in.json +108 -0
- package/schemas/create_card.out.json +13 -0
- package/schemas/dependabot_alerts.in.json +49 -0
- package/schemas/dependabot_alerts.out.json +75 -0
- package/schemas/dismiss_dependabot_alert.in.json +26 -0
- package/schemas/dismiss_dependabot_alert.out.json +27 -0
- package/schemas/find_assignee.in.json +15 -0
- package/schemas/find_assignee.out.json +10 -0
- package/schemas/find_cards.in.json +18 -0
- package/schemas/find_cards.out.json +33 -0
- package/schemas/find_dependabot_dismissal.in.json +12 -0
- package/schemas/find_dependabot_dismissal.out.json +27 -0
- package/schemas/find_description.in.json +15 -0
- package/schemas/find_description.out.json +10 -0
- package/schemas/find_pull_request.in.json +25 -0
- package/schemas/find_pull_request.out.json +14 -0
- package/schemas/hand_back.in.json +11 -0
- package/schemas/hand_back.out.json +18 -0
- package/schemas/linked_pull_requests.in.json +15 -0
- package/schemas/linked_pull_requests.out.json +44 -0
- package/schemas/list_pull_requests.in.json +26 -0
- package/schemas/list_pull_requests.out.json +42 -0
- package/schemas/merge_pull_request.in.json +22 -0
- package/schemas/merge_pull_request.out.json +16 -0
- package/schemas/move.in.json +15 -0
- package/schemas/move.out.json +10 -0
- package/schemas/note_pull_request.in.json +15 -0
- package/schemas/note_pull_request.out.json +10 -0
- package/schemas/open_pull_request.in.json +113 -0
- package/schemas/open_pull_request.out.json +15 -0
- package/schemas/pull_request_checks.in.json +11 -0
- package/schemas/pull_request_checks.out.json +72 -0
- package/schemas/pull_request_discussion.in.json +11 -0
- package/schemas/pull_request_discussion.out.json +107 -0
- package/schemas/pull_request_state.in.json +11 -0
- package/schemas/pull_request_state.out.json +52 -0
- package/schemas/push_branch.in.json +21 -0
- package/schemas/push_branch.out.json +13 -0
- package/schemas/release_follow_ups.in.json +15 -0
- package/schemas/release_follow_ups.out.json +13 -0
- package/schemas/reopen_dependabot_alert.in.json +33 -0
- package/schemas/reopen_dependabot_alert.out.json +22 -0
- package/schemas/restore_assignee.in.json +20 -0
- package/schemas/restore_assignee.out.json +10 -0
- package/schemas/restore_description.in.json +20 -0
- package/schemas/restore_description.out.json +10 -0
- package/schemas/update_description.in.json +15 -0
- package/schemas/update_description.out.json +14 -0
- package/schemas/update_pull_request.in.json +81 -0
- package/schemas/update_pull_request.out.json +10 -0
- package/schemas/wait_for_checks.in.json +11 -0
- package/schemas/wait_for_checks.out.json +72 -0
- package/schemas/wait_for_merge.in.json +11 -0
- package/schemas/wait_for_merge.out.json +17 -0
- package/schemas/wait_for_passed_checks.in.json +11 -0
- package/schemas/wait_for_passed_checks.out.json +72 -0
- package/schemas/wait_for_review.in.json +11 -0
- package/schemas/wait_for_review.out.json +52 -0
- 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,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,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,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,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,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
|
+
}
|