@ghx-dev/core 0.1.1 → 0.2.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/.claude-plugin/plugin.json +21 -0
- package/README.md +17 -20
- package/dist/cards/issue.assignees.add.yaml +50 -0
- package/dist/cards/issue.assignees.remove.yaml +50 -0
- package/dist/cards/issue.assignees.set.yaml +47 -0
- package/dist/cards/issue.close.yaml +16 -2
- package/dist/cards/issue.comments.create.yaml +16 -2
- package/dist/cards/issue.create.yaml +11 -0
- package/dist/cards/issue.delete.yaml +16 -2
- package/dist/cards/issue.labels.add.yaml +48 -0
- package/dist/cards/issue.labels.remove.yaml +50 -0
- package/dist/cards/issue.labels.set.yaml +47 -0
- package/dist/cards/issue.milestone.clear.yaml +40 -0
- package/dist/cards/issue.milestone.set.yaml +23 -4
- package/dist/{core/registry/cards/issue.blocked_by.add.yaml → cards/issue.relations.blocked_by.add.yaml} +3 -2
- package/dist/cards/{issue.blocked_by.remove.yaml → issue.relations.blocked_by.remove.yaml} +1 -1
- package/dist/cards/{issue.parent.remove.yaml → issue.relations.parent.remove.yaml} +11 -1
- package/dist/{core/registry/cards/issue.parent.set.yaml → cards/issue.relations.parent.set.yaml} +3 -2
- package/dist/{core/registry/cards/issue.linked_prs.list.yaml → cards/issue.relations.prs.list.yaml} +1 -1
- package/dist/cards/{issue.relations.get.yaml → issue.relations.view.yaml} +1 -1
- package/dist/cards/issue.reopen.yaml +16 -2
- package/dist/cards/issue.update.yaml +16 -2
- package/dist/cards/issue.view.yaml +7 -5
- package/dist/cards/{pr.review.submit_approve.yaml → pr.assignees.add.yaml} +12 -9
- package/dist/cards/pr.assignees.remove.yaml +29 -0
- package/dist/{core/registry/cards/pr.status.checks.yaml → cards/pr.checks.list.yaml} +15 -2
- package/dist/{core/registry/cards/pr.checks.rerun_all.yaml → cards/pr.checks.rerun.all.yaml} +2 -4
- package/dist/{core/registry/cards/pr.checks.rerun_failed.yaml → cards/pr.checks.rerun.failed.yaml} +3 -5
- package/dist/cards/pr.create.yaml +30 -0
- package/dist/cards/{pr.diff.list_files.yaml → pr.diff.files.yaml} +1 -1
- package/dist/cards/{pr.ready_for_review.set.yaml → pr.diff.view.yaml} +6 -8
- package/dist/{core/registry/cards/pr.mergeability.view.yaml → cards/pr.merge.status.yaml} +6 -3
- package/dist/{core/registry/cards/pr.merge.execute.yaml → cards/pr.merge.yaml} +1 -1
- package/dist/cards/pr.reviews.list.yaml +1 -1
- package/dist/cards/{pr.reviewers.request.yaml → pr.reviews.request.yaml} +1 -1
- package/dist/cards/pr.reviews.submit.yaml +67 -0
- package/dist/cards/{pr.comments.list.yaml → pr.threads.list.yaml} +2 -2
- package/dist/cards/{pr.comment.reply.yaml → pr.threads.reply.yaml} +4 -2
- package/dist/cards/{pr.comment.resolve.yaml → pr.threads.resolve.yaml} +1 -1
- package/dist/cards/{pr.comment.unresolve.yaml → pr.threads.unresolve.yaml} +1 -1
- package/dist/cards/pr.update.yaml +29 -0
- package/dist/cards/pr.view.yaml +7 -5
- package/dist/cards/project_v2.fields.list.yaml +2 -2
- package/dist/{core/registry/cards/project_v2.item.field.update.yaml → cards/project_v2.items.field.update.yaml} +3 -3
- package/dist/{core/registry/cards/project_v2.item.add_issue.yaml → cards/project_v2.items.issue.add.yaml} +3 -3
- package/dist/cards/project_v2.items.issue.remove.yaml +23 -0
- package/dist/cards/project_v2.items.list.yaml +2 -2
- package/dist/{core/registry/cards/project_v2.org.get.yaml → cards/project_v2.org.view.yaml} +3 -3
- package/dist/cards/{project_v2.user.get.yaml → project_v2.user.view.yaml} +3 -3
- package/dist/{core/registry/cards/release.create_draft.yaml → cards/release.create.yaml} +1 -1
- package/dist/cards/{release.publish_draft.yaml → release.publish.yaml} +1 -1
- package/dist/{core/registry/cards/release.get.yaml → cards/release.view.yaml} +1 -1
- package/dist/cards/repo.issue_types.list.yaml +2 -2
- package/dist/cards/repo.view.yaml +2 -4
- package/dist/cards/{workflow_dispatch.run.yaml → workflow.dispatch.yaml} +1 -1
- package/dist/{core/registry/cards/workflow_job.logs.get.yaml → cards/workflow.job.logs.raw.yaml} +2 -2
- package/dist/{core/registry/cards/workflow_job.logs.analyze.yaml → cards/workflow.job.logs.view.yaml} +1 -1
- package/dist/{core/registry/cards/workflow_run.artifacts.list.yaml → cards/workflow.run.artifacts.list.yaml} +1 -1
- package/dist/cards/{workflow_run.cancel.yaml → workflow.run.cancel.yaml} +1 -1
- package/dist/cards/{workflow_run.rerun_all.yaml → workflow.run.rerun.all.yaml} +3 -3
- package/dist/{core/registry/cards/workflow_run.rerun_failed.yaml → cards/workflow.run.rerun.failed.yaml} +3 -3
- package/dist/{core/registry/cards/workflow_run.get.yaml → cards/workflow.run.view.yaml} +19 -4
- package/dist/cards/{workflow_runs.list.yaml → workflow.runs.list.yaml} +1 -1
- package/dist/cards/{workflow.get.yaml → workflow.view.yaml} +2 -2
- package/dist/chunk-3DU2WHXF.js +15 -0
- package/dist/chunk-3DU2WHXF.js.map +1 -0
- package/dist/chunk-3P3KHWFU.js +5779 -0
- package/dist/chunk-3P3KHWFU.js.map +1 -0
- package/dist/chunk-BIWBJA2F.js +228 -0
- package/dist/chunk-BIWBJA2F.js.map +1 -0
- package/dist/chunk-HEHONZTO.js +121 -0
- package/dist/chunk-HEHONZTO.js.map +1 -0
- package/dist/chunk-Q7RCIK2C.js +773 -0
- package/dist/chunk-Q7RCIK2C.js.map +1 -0
- package/dist/chunk-R3CBGJZX.js +12 -0
- package/dist/chunk-R3CBGJZX.js.map +1 -0
- package/dist/chunk-TDABI6C7.js +167 -0
- package/dist/chunk-TDABI6C7.js.map +1 -0
- package/dist/chunk-TPQYVCAS.js +15 -0
- package/dist/chunk-TPQYVCAS.js.map +1 -0
- package/dist/cli/index.js +202 -21
- package/dist/cli/index.js.map +1 -1
- package/dist/core/registry/cards/issue.assignees.add.yaml +50 -0
- package/dist/core/registry/cards/issue.assignees.remove.yaml +50 -0
- package/dist/core/registry/cards/issue.assignees.set.yaml +47 -0
- package/dist/core/registry/cards/issue.close.yaml +16 -2
- package/dist/core/registry/cards/issue.comments.create.yaml +16 -2
- package/dist/core/registry/cards/issue.create.yaml +11 -0
- package/dist/core/registry/cards/issue.delete.yaml +16 -2
- package/dist/core/registry/cards/issue.labels.add.yaml +48 -0
- package/dist/core/registry/cards/issue.labels.remove.yaml +50 -0
- package/dist/core/registry/cards/issue.labels.set.yaml +47 -0
- package/dist/core/registry/cards/issue.milestone.clear.yaml +40 -0
- package/dist/core/registry/cards/issue.milestone.set.yaml +23 -4
- package/dist/{cards/issue.blocked_by.add.yaml → core/registry/cards/issue.relations.blocked_by.add.yaml} +3 -2
- package/dist/core/registry/cards/{issue.blocked_by.remove.yaml → issue.relations.blocked_by.remove.yaml} +1 -1
- package/dist/core/registry/cards/{issue.parent.remove.yaml → issue.relations.parent.remove.yaml} +11 -1
- package/dist/{cards/issue.parent.set.yaml → core/registry/cards/issue.relations.parent.set.yaml} +3 -2
- package/dist/{cards/issue.linked_prs.list.yaml → core/registry/cards/issue.relations.prs.list.yaml} +1 -1
- package/dist/core/registry/cards/{issue.relations.get.yaml → issue.relations.view.yaml} +1 -1
- package/dist/core/registry/cards/issue.reopen.yaml +16 -2
- package/dist/core/registry/cards/issue.update.yaml +16 -2
- package/dist/core/registry/cards/issue.view.yaml +7 -5
- package/dist/core/registry/cards/pr.assignees.add.yaml +29 -0
- package/dist/core/registry/cards/pr.assignees.remove.yaml +29 -0
- package/dist/{cards/pr.status.checks.yaml → core/registry/cards/pr.checks.list.yaml} +15 -2
- package/dist/{cards/pr.checks.rerun_all.yaml → core/registry/cards/pr.checks.rerun.all.yaml} +2 -4
- package/dist/{cards/pr.checks.rerun_failed.yaml → core/registry/cards/pr.checks.rerun.failed.yaml} +3 -5
- package/dist/core/registry/cards/pr.create.yaml +30 -0
- package/dist/core/registry/cards/{pr.diff.list_files.yaml → pr.diff.files.yaml} +1 -1
- package/dist/core/registry/cards/{pr.ready_for_review.set.yaml → pr.diff.view.yaml} +6 -8
- package/dist/{cards/pr.mergeability.view.yaml → core/registry/cards/pr.merge.status.yaml} +6 -3
- package/dist/{cards/pr.merge.execute.yaml → core/registry/cards/pr.merge.yaml} +1 -1
- package/dist/core/registry/cards/pr.reviews.list.yaml +1 -1
- package/dist/core/registry/cards/{pr.reviewers.request.yaml → pr.reviews.request.yaml} +1 -1
- package/dist/core/registry/cards/pr.reviews.submit.yaml +67 -0
- package/dist/core/registry/cards/{pr.comments.list.yaml → pr.threads.list.yaml} +2 -2
- package/dist/core/registry/cards/{pr.comment.reply.yaml → pr.threads.reply.yaml} +4 -2
- package/dist/core/registry/cards/{pr.comment.resolve.yaml → pr.threads.resolve.yaml} +1 -1
- package/dist/core/registry/cards/{pr.comment.unresolve.yaml → pr.threads.unresolve.yaml} +1 -1
- package/dist/core/registry/cards/pr.update.yaml +29 -0
- package/dist/core/registry/cards/pr.view.yaml +7 -5
- package/dist/core/registry/cards/project_v2.fields.list.yaml +2 -2
- package/dist/{cards/project_v2.item.field.update.yaml → core/registry/cards/project_v2.items.field.update.yaml} +3 -3
- package/dist/{cards/project_v2.item.add_issue.yaml → core/registry/cards/project_v2.items.issue.add.yaml} +3 -3
- package/dist/core/registry/cards/project_v2.items.issue.remove.yaml +23 -0
- package/dist/core/registry/cards/project_v2.items.list.yaml +2 -2
- package/dist/{cards/project_v2.org.get.yaml → core/registry/cards/project_v2.org.view.yaml} +3 -3
- package/dist/core/registry/cards/{project_v2.user.get.yaml → project_v2.user.view.yaml} +3 -3
- package/dist/{cards/release.create_draft.yaml → core/registry/cards/release.create.yaml} +1 -1
- package/dist/core/registry/cards/{release.publish_draft.yaml → release.publish.yaml} +1 -1
- package/dist/{cards/release.get.yaml → core/registry/cards/release.view.yaml} +1 -1
- package/dist/core/registry/cards/repo.issue_types.list.yaml +2 -2
- package/dist/core/registry/cards/repo.view.yaml +2 -4
- package/dist/core/registry/cards/{workflow_dispatch.run.yaml → workflow.dispatch.yaml} +1 -1
- package/dist/{cards/workflow_job.logs.get.yaml → core/registry/cards/workflow.job.logs.raw.yaml} +2 -2
- package/dist/{cards/workflow_job.logs.analyze.yaml → core/registry/cards/workflow.job.logs.view.yaml} +1 -1
- package/dist/{cards/workflow_run.artifacts.list.yaml → core/registry/cards/workflow.run.artifacts.list.yaml} +1 -1
- package/dist/core/registry/cards/{workflow_run.cancel.yaml → workflow.run.cancel.yaml} +1 -1
- package/dist/core/registry/cards/{workflow_run.rerun_all.yaml → workflow.run.rerun.all.yaml} +3 -3
- package/dist/{cards/workflow_run.rerun_failed.yaml → core/registry/cards/workflow.run.rerun.failed.yaml} +3 -3
- package/dist/{cards/workflow_run.get.yaml → core/registry/cards/workflow.run.view.yaml} +19 -4
- package/dist/core/registry/cards/{workflow_runs.list.yaml → workflow.runs.list.yaml} +1 -1
- package/dist/core/registry/cards/{workflow.get.yaml → workflow.view.yaml} +2 -2
- package/dist/index.d.ts +374 -35
- package/dist/index.js +33 -5
- package/dist/index.js.map +1 -1
- package/dist/issue-mutations-FJNZW7L5.js +668 -0
- package/dist/issue-mutations-FJNZW7L5.js.map +1 -0
- package/dist/issue-queries-GRA4MKPD.js +208 -0
- package/dist/issue-queries-GRA4MKPD.js.map +1 -0
- package/dist/pr-mutations-UG67YOF5.js +344 -0
- package/dist/pr-mutations-UG67YOF5.js.map +1 -0
- package/dist/pr-queries-UOEOXIJQ.js +331 -0
- package/dist/pr-queries-UOEOXIJQ.js.map +1 -0
- package/dist/repo-JDUHFPZF.js +66 -0
- package/dist/repo-JDUHFPZF.js.map +1 -0
- package/package.json +18 -18
- package/skills/using-ghx/SKILL.md +61 -0
- package/dist/agent.d.ts +0 -32
- package/dist/agent.js +0 -38
- package/dist/agent.js.map +0 -1
- package/dist/cards/check_run.annotations.list.yaml +0 -35
- package/dist/cards/issue.assignees.update.yaml +0 -27
- package/dist/cards/issue.labels.update.yaml +0 -27
- package/dist/cards/pr.assignees.update.yaml +0 -38
- package/dist/cards/pr.checks.get_failed.yaml +0 -42
- package/dist/cards/pr.review.submit_comment.yaml +0 -26
- package/dist/cards/pr.review.submit_request_changes.yaml +0 -26
- package/dist/cards/workflow_run.jobs.list.yaml +0 -35
- package/dist/chunk-OL4ARD3R.js +0 -242
- package/dist/chunk-OL4ARD3R.js.map +0 -1
- package/dist/chunk-PJ2JKKQE.js +0 -4148
- package/dist/chunk-PJ2JKKQE.js.map +0 -1
- package/dist/chunk-SCIJMW5P.js +0 -54
- package/dist/chunk-SCIJMW5P.js.map +0 -1
- package/dist/cli/assets/skills/ghx/SKILL.md +0 -57
- package/dist/core/registry/cards/check_run.annotations.list.yaml +0 -35
- package/dist/core/registry/cards/issue.assignees.update.yaml +0 -27
- package/dist/core/registry/cards/issue.labels.update.yaml +0 -27
- package/dist/core/registry/cards/pr.assignees.update.yaml +0 -38
- package/dist/core/registry/cards/pr.checks.get_failed.yaml +0 -42
- package/dist/core/registry/cards/pr.review.submit_approve.yaml +0 -26
- package/dist/core/registry/cards/pr.review.submit_comment.yaml +0 -26
- package/dist/core/registry/cards/pr.review.submit_request_changes.yaml +0 -26
- package/dist/core/registry/cards/workflow_run.jobs.list.yaml +0 -35
- package/dist/envelope-BpF6MNCv.d.ts +0 -55
|
@@ -3,9 +3,11 @@ version: "1.0.0"
|
|
|
3
3
|
description: Reopen a closed issue.
|
|
4
4
|
input_schema:
|
|
5
5
|
type: object
|
|
6
|
-
required: [
|
|
6
|
+
required: [owner, name, issueNumber]
|
|
7
7
|
properties:
|
|
8
|
-
|
|
8
|
+
owner: { type: string, minLength: 1 }
|
|
9
|
+
name: { type: string, minLength: 1 }
|
|
10
|
+
issueNumber: { type: integer, minimum: 1 }
|
|
9
11
|
additionalProperties: false
|
|
10
12
|
output_schema:
|
|
11
13
|
type: object
|
|
@@ -22,3 +24,15 @@ routing:
|
|
|
22
24
|
graphql:
|
|
23
25
|
operationName: IssueReopen
|
|
24
26
|
documentPath: src/gql/operations/issue-reopen.graphql
|
|
27
|
+
resolution:
|
|
28
|
+
lookup:
|
|
29
|
+
operationName: IssueNodeIdLookup
|
|
30
|
+
documentPath: src/gql/operations/issue-node-id-lookup.graphql
|
|
31
|
+
vars:
|
|
32
|
+
owner: owner
|
|
33
|
+
name: name
|
|
34
|
+
issueNumber: issueNumber
|
|
35
|
+
inject:
|
|
36
|
+
- target: issueId
|
|
37
|
+
source: scalar
|
|
38
|
+
path: repository.issue.id
|
|
@@ -3,9 +3,11 @@ version: "1.0.0"
|
|
|
3
3
|
description: Update issue title and/or body.
|
|
4
4
|
input_schema:
|
|
5
5
|
type: object
|
|
6
|
-
required: [
|
|
6
|
+
required: [owner, name, issueNumber]
|
|
7
7
|
properties:
|
|
8
|
-
|
|
8
|
+
owner: { type: string, minLength: 1 }
|
|
9
|
+
name: { type: string, minLength: 1 }
|
|
10
|
+
issueNumber: { type: integer, minimum: 1 }
|
|
9
11
|
title: { type: string }
|
|
10
12
|
body: { type: string }
|
|
11
13
|
additionalProperties: false
|
|
@@ -25,3 +27,15 @@ routing:
|
|
|
25
27
|
graphql:
|
|
26
28
|
operationName: IssueUpdate
|
|
27
29
|
documentPath: src/gql/operations/issue-update.graphql
|
|
30
|
+
resolution:
|
|
31
|
+
lookup:
|
|
32
|
+
operationName: IssueNodeIdLookup
|
|
33
|
+
documentPath: src/gql/operations/issue-node-id-lookup.graphql
|
|
34
|
+
vars:
|
|
35
|
+
owner: owner
|
|
36
|
+
name: name
|
|
37
|
+
issueNumber: issueNumber
|
|
38
|
+
inject:
|
|
39
|
+
- target: issueId
|
|
40
|
+
source: scalar
|
|
41
|
+
path: repository.issue.id
|
|
@@ -11,22 +11,24 @@ input_schema:
|
|
|
11
11
|
additionalProperties: false
|
|
12
12
|
output_schema:
|
|
13
13
|
type: object
|
|
14
|
-
required: [id, number, title, state, url]
|
|
14
|
+
required: [id, number, title, state, url, body, labels]
|
|
15
15
|
properties:
|
|
16
16
|
id: { type: string, minLength: 1 }
|
|
17
17
|
number: { type: integer, minimum: 1 }
|
|
18
18
|
title: { type: string }
|
|
19
19
|
state: { type: string }
|
|
20
20
|
url: { type: string, minLength: 1 }
|
|
21
|
+
body: { type: string }
|
|
22
|
+
labels: { type: array, items: { type: string } }
|
|
21
23
|
additionalProperties: false
|
|
22
24
|
routing:
|
|
23
|
-
preferred:
|
|
24
|
-
fallbacks: [
|
|
25
|
+
preferred: graphql
|
|
26
|
+
fallbacks: [cli]
|
|
25
27
|
notes:
|
|
26
|
-
- Prefer
|
|
28
|
+
- Prefer GraphQL for structured fetch; CLI fallback if gh auth unavailable.
|
|
27
29
|
graphql:
|
|
28
30
|
operationName: IssueView
|
|
29
31
|
documentPath: src/gql/operations/issue-view.graphql
|
|
30
32
|
cli:
|
|
31
33
|
command: issue view
|
|
32
|
-
jsonFields: [id, number, title, state, url]
|
|
34
|
+
jsonFields: [id, number, title, state, url, body, labels]
|
|
@@ -1,26 +1,29 @@
|
|
|
1
|
-
capability_id: pr.
|
|
1
|
+
capability_id: pr.assignees.add
|
|
2
2
|
version: "1.0.0"
|
|
3
|
-
description:
|
|
3
|
+
description: Add assignees to a pull request without replacing existing ones.
|
|
4
4
|
input_schema:
|
|
5
5
|
type: object
|
|
6
|
-
required: [owner, name, prNumber]
|
|
6
|
+
required: [owner, name, prNumber, assignees]
|
|
7
7
|
properties:
|
|
8
8
|
owner: { type: string, minLength: 1 }
|
|
9
9
|
name: { type: string, minLength: 1 }
|
|
10
10
|
prNumber: { type: integer, minimum: 1 }
|
|
11
|
-
|
|
11
|
+
assignees:
|
|
12
|
+
type: array
|
|
13
|
+
items: { type: string, minLength: 1 }
|
|
14
|
+
minItems: 1
|
|
12
15
|
additionalProperties: false
|
|
13
16
|
output_schema:
|
|
14
17
|
type: object
|
|
15
|
-
required: [prNumber,
|
|
18
|
+
required: [prNumber, added]
|
|
16
19
|
properties:
|
|
17
20
|
prNumber: { type: integer, minimum: 1 }
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
+
added:
|
|
22
|
+
type: array
|
|
23
|
+
items: { type: string }
|
|
21
24
|
additionalProperties: false
|
|
22
25
|
routing:
|
|
23
26
|
preferred: cli
|
|
24
27
|
fallbacks: []
|
|
25
28
|
cli:
|
|
26
|
-
command: pr
|
|
29
|
+
command: pr edit
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
capability_id: pr.assignees.remove
|
|
2
|
+
version: "1.0.0"
|
|
3
|
+
description: Remove specific assignees from a pull request.
|
|
4
|
+
input_schema:
|
|
5
|
+
type: object
|
|
6
|
+
required: [owner, name, prNumber, assignees]
|
|
7
|
+
properties:
|
|
8
|
+
owner: { type: string, minLength: 1 }
|
|
9
|
+
name: { type: string, minLength: 1 }
|
|
10
|
+
prNumber: { type: integer, minimum: 1 }
|
|
11
|
+
assignees:
|
|
12
|
+
type: array
|
|
13
|
+
items: { type: string, minLength: 1 }
|
|
14
|
+
minItems: 1
|
|
15
|
+
additionalProperties: false
|
|
16
|
+
output_schema:
|
|
17
|
+
type: object
|
|
18
|
+
required: [prNumber, removed]
|
|
19
|
+
properties:
|
|
20
|
+
prNumber: { type: integer, minimum: 1 }
|
|
21
|
+
removed:
|
|
22
|
+
type: array
|
|
23
|
+
items: { type: string }
|
|
24
|
+
additionalProperties: false
|
|
25
|
+
routing:
|
|
26
|
+
preferred: cli
|
|
27
|
+
fallbacks: []
|
|
28
|
+
cli:
|
|
29
|
+
command: pr edit
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
capability_id: pr.
|
|
1
|
+
capability_id: pr.checks.list
|
|
2
2
|
version: "1.0.0"
|
|
3
3
|
description: List pull request check statuses with summary counts.
|
|
4
4
|
input_schema:
|
|
@@ -8,6 +8,7 @@ input_schema:
|
|
|
8
8
|
owner: { type: string, minLength: 1 }
|
|
9
9
|
name: { type: string, minLength: 1 }
|
|
10
10
|
prNumber: { type: integer, minimum: 1 }
|
|
11
|
+
state: { type: string, enum: [failed, pending, passed] }
|
|
11
12
|
additionalProperties: false
|
|
12
13
|
output_schema:
|
|
13
14
|
type: object
|
|
@@ -17,12 +18,24 @@ output_schema:
|
|
|
17
18
|
type: array
|
|
18
19
|
items:
|
|
19
20
|
type: object
|
|
20
|
-
required: [name, state, workflow, link]
|
|
21
|
+
required: [name, state, workflow, link, annotations]
|
|
21
22
|
properties:
|
|
22
23
|
name: { type: [string, "null"] }
|
|
23
24
|
state: { type: [string, "null"] }
|
|
24
25
|
workflow: { type: [string, "null"] }
|
|
25
26
|
link: { type: [string, "null"] }
|
|
27
|
+
annotations:
|
|
28
|
+
type: array
|
|
29
|
+
items:
|
|
30
|
+
type: object
|
|
31
|
+
required: [path, startLine, endLine, level, message]
|
|
32
|
+
properties:
|
|
33
|
+
path: { type: [string, "null"] }
|
|
34
|
+
startLine: { type: [integer, "null"] }
|
|
35
|
+
endLine: { type: [integer, "null"] }
|
|
36
|
+
level: { type: [string, "null"] }
|
|
37
|
+
message: { type: [string, "null"] }
|
|
38
|
+
additionalProperties: false
|
|
26
39
|
additionalProperties: false
|
|
27
40
|
summary:
|
|
28
41
|
type: object
|
package/dist/{core/registry/cards/pr.checks.rerun_all.yaml → cards/pr.checks.rerun.all.yaml}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
capability_id: pr.checks.
|
|
1
|
+
capability_id: pr.checks.rerun.all
|
|
2
2
|
version: "1.0.0"
|
|
3
3
|
description: Rerun all pull request workflow checks for a selected run.
|
|
4
4
|
input_schema:
|
|
@@ -12,11 +12,9 @@ input_schema:
|
|
|
12
12
|
additionalProperties: false
|
|
13
13
|
output_schema:
|
|
14
14
|
type: object
|
|
15
|
-
required: [
|
|
15
|
+
required: [runId, queued]
|
|
16
16
|
properties:
|
|
17
|
-
prNumber: { type: integer, minimum: 1 }
|
|
18
17
|
runId: { type: integer, minimum: 1 }
|
|
19
|
-
mode: { type: string, const: all }
|
|
20
18
|
queued: { type: boolean }
|
|
21
19
|
additionalProperties: false
|
|
22
20
|
routing:
|
package/dist/{core/registry/cards/pr.checks.rerun_failed.yaml → cards/pr.checks.rerun.failed.yaml}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
capability_id: pr.checks.
|
|
1
|
+
capability_id: pr.checks.rerun.failed
|
|
2
2
|
version: "1.0.0"
|
|
3
3
|
description: Rerun failed pull request workflow checks for a selected run.
|
|
4
4
|
input_schema:
|
|
@@ -12,11 +12,9 @@ input_schema:
|
|
|
12
12
|
additionalProperties: false
|
|
13
13
|
output_schema:
|
|
14
14
|
type: object
|
|
15
|
-
required: [
|
|
15
|
+
required: [runId, queued]
|
|
16
16
|
properties:
|
|
17
|
-
|
|
18
|
-
runId: { type: integer, minimum: 1 }
|
|
19
|
-
mode: { type: string, const: failed }
|
|
17
|
+
runId: { type: integer }
|
|
20
18
|
queued: { type: boolean }
|
|
21
19
|
additionalProperties: false
|
|
22
20
|
routing:
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
capability_id: pr.create
|
|
2
|
+
version: "1.0.0"
|
|
3
|
+
description: Create a pull request.
|
|
4
|
+
input_schema:
|
|
5
|
+
type: object
|
|
6
|
+
required: [owner, name, title, head]
|
|
7
|
+
properties:
|
|
8
|
+
owner: { type: string, minLength: 1 }
|
|
9
|
+
name: { type: string, minLength: 1 }
|
|
10
|
+
title: { type: string, minLength: 1 }
|
|
11
|
+
body: { type: string }
|
|
12
|
+
head: { type: string, minLength: 1 }
|
|
13
|
+
base: { type: string, minLength: 1 }
|
|
14
|
+
draft: { type: boolean }
|
|
15
|
+
additionalProperties: false
|
|
16
|
+
output_schema:
|
|
17
|
+
type: object
|
|
18
|
+
required: [number, url, title, state, draft]
|
|
19
|
+
properties:
|
|
20
|
+
number: { type: integer, minimum: 1 }
|
|
21
|
+
url: { type: string, minLength: 1 }
|
|
22
|
+
title: { type: string }
|
|
23
|
+
state: { type: string }
|
|
24
|
+
draft: { type: boolean }
|
|
25
|
+
additionalProperties: false
|
|
26
|
+
routing:
|
|
27
|
+
preferred: cli
|
|
28
|
+
fallbacks: []
|
|
29
|
+
cli:
|
|
30
|
+
command: pr create
|
|
@@ -1,24 +1,22 @@
|
|
|
1
|
-
capability_id: pr.
|
|
1
|
+
capability_id: pr.diff.view
|
|
2
2
|
version: "1.0.0"
|
|
3
|
-
description:
|
|
3
|
+
description: View the unified diff for a pull request.
|
|
4
4
|
input_schema:
|
|
5
5
|
type: object
|
|
6
|
-
required: [owner, name, prNumber
|
|
6
|
+
required: [owner, name, prNumber]
|
|
7
7
|
properties:
|
|
8
8
|
owner: { type: string, minLength: 1 }
|
|
9
9
|
name: { type: string, minLength: 1 }
|
|
10
10
|
prNumber: { type: integer, minimum: 1 }
|
|
11
|
-
ready: { type: boolean }
|
|
12
11
|
additionalProperties: false
|
|
13
12
|
output_schema:
|
|
14
13
|
type: object
|
|
15
|
-
required: [
|
|
14
|
+
required: [diff]
|
|
16
15
|
properties:
|
|
17
|
-
|
|
18
|
-
isDraft: { type: boolean }
|
|
16
|
+
diff: { type: string }
|
|
19
17
|
additionalProperties: false
|
|
20
18
|
routing:
|
|
21
19
|
preferred: cli
|
|
22
20
|
fallbacks: []
|
|
23
21
|
cli:
|
|
24
|
-
command: pr
|
|
22
|
+
command: pr diff
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
capability_id: pr.
|
|
1
|
+
capability_id: pr.merge.status
|
|
2
2
|
version: "1.0.0"
|
|
3
3
|
description: View pull request mergeability and readiness signals.
|
|
4
4
|
input_schema:
|
|
@@ -20,8 +20,11 @@ output_schema:
|
|
|
20
20
|
state: { type: string }
|
|
21
21
|
additionalProperties: false
|
|
22
22
|
routing:
|
|
23
|
-
preferred:
|
|
24
|
-
fallbacks: []
|
|
23
|
+
preferred: graphql
|
|
24
|
+
fallbacks: [cli]
|
|
25
|
+
graphql:
|
|
26
|
+
operationName: PrMergeStatus
|
|
27
|
+
documentPath: src/gql/operations/pr-merge-status.graphql
|
|
25
28
|
cli:
|
|
26
29
|
command: pr view
|
|
27
30
|
jsonFields: [mergeable, mergeStateStatus, reviewDecision, isDraft, state]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
capability_id: pr.reviews.list
|
|
2
2
|
version: "1.0.0"
|
|
3
|
-
description: List pull request reviews.
|
|
3
|
+
description: "List pull request reviews (state, author, overall review body). Returns review-level metadata only — use pr.threads.list for inline diff comments."
|
|
4
4
|
input_schema:
|
|
5
5
|
type: object
|
|
6
6
|
required: [owner, name, prNumber]
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
capability_id: pr.reviews.submit
|
|
2
|
+
version: "1.0.0"
|
|
3
|
+
description: Submit a pull request review (approve, request changes, or comment). GitHub requires a non-empty body for COMMENT and REQUEST_CHANGES events.
|
|
4
|
+
input_schema:
|
|
5
|
+
type: object
|
|
6
|
+
required: [owner, name, prNumber, event]
|
|
7
|
+
properties:
|
|
8
|
+
owner: { type: string, minLength: 1 }
|
|
9
|
+
name: { type: string, minLength: 1 }
|
|
10
|
+
prNumber: { type: integer, minimum: 1 }
|
|
11
|
+
event:
|
|
12
|
+
type: string
|
|
13
|
+
enum: [APPROVE, COMMENT, REQUEST_CHANGES]
|
|
14
|
+
body:
|
|
15
|
+
type: string
|
|
16
|
+
minLength: 1
|
|
17
|
+
description: "Required when event is COMMENT or REQUEST_CHANGES. Optional for APPROVE."
|
|
18
|
+
comments:
|
|
19
|
+
type: array
|
|
20
|
+
items:
|
|
21
|
+
type: object
|
|
22
|
+
required: [path, body, line]
|
|
23
|
+
properties:
|
|
24
|
+
path: { type: string, minLength: 1 }
|
|
25
|
+
body: { type: string, minLength: 1 }
|
|
26
|
+
line: { type: integer, minimum: 1 }
|
|
27
|
+
side:
|
|
28
|
+
type: string
|
|
29
|
+
enum: [LEFT, RIGHT]
|
|
30
|
+
description: "Diff side of the comment line (LEFT=base, RIGHT=head). Returned as diffSide in pr.threads.list output."
|
|
31
|
+
startLine:
|
|
32
|
+
type: integer
|
|
33
|
+
minimum: 1
|
|
34
|
+
description: "First line of a multi-line comment range. Omit for single-line comments."
|
|
35
|
+
startSide:
|
|
36
|
+
type: string
|
|
37
|
+
enum: [LEFT, RIGHT]
|
|
38
|
+
description: "Diff side of startLine (LEFT=base, RIGHT=head). Required if startLine is set."
|
|
39
|
+
additionalProperties: false
|
|
40
|
+
additionalProperties: false
|
|
41
|
+
output_schema:
|
|
42
|
+
type: object
|
|
43
|
+
required: [id, state, url, body]
|
|
44
|
+
properties:
|
|
45
|
+
id: { type: [string, "null"] }
|
|
46
|
+
state: { type: [string, "null"] }
|
|
47
|
+
url: { type: [string, "null"] }
|
|
48
|
+
body: { type: [string, "null"] }
|
|
49
|
+
additionalProperties: false
|
|
50
|
+
routing:
|
|
51
|
+
preferred: graphql
|
|
52
|
+
fallbacks: []
|
|
53
|
+
graphql:
|
|
54
|
+
operationName: PrReviewSubmit
|
|
55
|
+
documentPath: src/gql/operations/pr-review-submit.graphql
|
|
56
|
+
resolution:
|
|
57
|
+
lookup:
|
|
58
|
+
operationName: PrNodeId
|
|
59
|
+
documentPath: src/gql/operations/pr-node-id.graphql
|
|
60
|
+
vars:
|
|
61
|
+
owner: owner
|
|
62
|
+
name: name
|
|
63
|
+
prNumber: prNumber
|
|
64
|
+
inject:
|
|
65
|
+
- target: pullRequestId
|
|
66
|
+
source: scalar
|
|
67
|
+
path: repository.pullRequest.id
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
capability_id: pr.
|
|
1
|
+
capability_id: pr.threads.list
|
|
2
2
|
version: "1.0.0"
|
|
3
|
-
description: List pull request review threads
|
|
3
|
+
description: List pull request review threads (unresolved only by default; pass unresolvedOnly:false to include resolved).
|
|
4
4
|
input_schema:
|
|
5
5
|
type: object
|
|
6
6
|
required: [owner, name, prNumber]
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
capability_id: pr.
|
|
1
|
+
capability_id: pr.threads.reply
|
|
2
2
|
version: "1.0.0"
|
|
3
3
|
description: Reply to a pull request review thread.
|
|
4
4
|
input_schema:
|
|
@@ -10,10 +10,12 @@ input_schema:
|
|
|
10
10
|
additionalProperties: false
|
|
11
11
|
output_schema:
|
|
12
12
|
type: object
|
|
13
|
-
required: [id, isResolved]
|
|
13
|
+
required: [id, isResolved, commentId, commentUrl]
|
|
14
14
|
properties:
|
|
15
15
|
id: { type: string, minLength: 1 }
|
|
16
16
|
isResolved: { type: boolean }
|
|
17
|
+
commentId: { type: string }
|
|
18
|
+
commentUrl: { type: string }
|
|
17
19
|
additionalProperties: false
|
|
18
20
|
routing:
|
|
19
21
|
preferred: graphql
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
capability_id: pr.update
|
|
2
|
+
version: "1.0.0"
|
|
3
|
+
description: Update pull request metadata (title, body, draft status).
|
|
4
|
+
input_schema:
|
|
5
|
+
type: object
|
|
6
|
+
required: [owner, name, prNumber]
|
|
7
|
+
properties:
|
|
8
|
+
owner: { type: string, minLength: 1 }
|
|
9
|
+
name: { type: string, minLength: 1 }
|
|
10
|
+
prNumber: { type: integer, minimum: 1 }
|
|
11
|
+
title: { type: string, minLength: 1 }
|
|
12
|
+
body: { type: string }
|
|
13
|
+
draft: { type: boolean }
|
|
14
|
+
additionalProperties: false
|
|
15
|
+
output_schema:
|
|
16
|
+
type: object
|
|
17
|
+
required: [number, url, title, state, draft]
|
|
18
|
+
properties:
|
|
19
|
+
number: { type: integer, minimum: 1 }
|
|
20
|
+
url: { type: string, minLength: 1 }
|
|
21
|
+
title: { type: string }
|
|
22
|
+
state: { type: string }
|
|
23
|
+
draft: { type: boolean }
|
|
24
|
+
additionalProperties: false
|
|
25
|
+
routing:
|
|
26
|
+
preferred: cli
|
|
27
|
+
fallbacks: []
|
|
28
|
+
cli:
|
|
29
|
+
command: pr edit
|
package/dist/cards/pr.view.yaml
CHANGED
|
@@ -11,22 +11,24 @@ input_schema:
|
|
|
11
11
|
additionalProperties: false
|
|
12
12
|
output_schema:
|
|
13
13
|
type: object
|
|
14
|
-
required: [id, number, title, state, url]
|
|
14
|
+
required: [id, number, title, state, url, body, labels]
|
|
15
15
|
properties:
|
|
16
16
|
id: { type: string, minLength: 1 }
|
|
17
17
|
number: { type: integer, minimum: 1 }
|
|
18
18
|
title: { type: string }
|
|
19
19
|
state: { type: string }
|
|
20
20
|
url: { type: string, minLength: 1 }
|
|
21
|
+
body: { type: string }
|
|
22
|
+
labels: { type: array, items: { type: string } }
|
|
21
23
|
additionalProperties: false
|
|
22
24
|
routing:
|
|
23
|
-
preferred:
|
|
24
|
-
fallbacks: [
|
|
25
|
+
preferred: graphql
|
|
26
|
+
fallbacks: [cli]
|
|
25
27
|
notes:
|
|
26
|
-
- Prefer
|
|
28
|
+
- Prefer GraphQL for structured fetch; CLI fallback if gh auth unavailable.
|
|
27
29
|
graphql:
|
|
28
30
|
operationName: PrView
|
|
29
31
|
documentPath: src/gql/operations/pr-view.graphql
|
|
30
32
|
cli:
|
|
31
33
|
command: pr view
|
|
32
|
-
jsonFields: [id, number, title, state, url]
|
|
34
|
+
jsonFields: [id, number, title, state, url, body, labels]
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
capability_id: project_v2.
|
|
1
|
+
capability_id: project_v2.items.field.update
|
|
2
2
|
version: "1.0.0"
|
|
3
3
|
description: Update a field on a Projects v2 project item.
|
|
4
4
|
input_schema:
|
|
@@ -23,7 +23,7 @@ output_schema:
|
|
|
23
23
|
updated: { type: boolean }
|
|
24
24
|
additionalProperties: false
|
|
25
25
|
routing:
|
|
26
|
-
preferred:
|
|
27
|
-
fallbacks: [
|
|
26
|
+
preferred: cli
|
|
27
|
+
fallbacks: []
|
|
28
28
|
cli:
|
|
29
29
|
command: project item-edit
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
capability_id: project_v2.
|
|
1
|
+
capability_id: project_v2.items.issue.add
|
|
2
2
|
version: "1.0.0"
|
|
3
3
|
description: Add an issue to a Projects v2 project.
|
|
4
4
|
input_schema:
|
|
@@ -17,7 +17,7 @@ output_schema:
|
|
|
17
17
|
added: { type: boolean }
|
|
18
18
|
additionalProperties: false
|
|
19
19
|
routing:
|
|
20
|
-
preferred:
|
|
21
|
-
fallbacks: [
|
|
20
|
+
preferred: cli
|
|
21
|
+
fallbacks: []
|
|
22
22
|
cli:
|
|
23
23
|
command: project item-add
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
capability_id: project_v2.items.issue.remove
|
|
2
|
+
version: "1.0.0"
|
|
3
|
+
description: Remove an issue from a Projects v2 project.
|
|
4
|
+
input_schema:
|
|
5
|
+
type: object
|
|
6
|
+
required: [owner, projectNumber, itemId]
|
|
7
|
+
properties:
|
|
8
|
+
owner: { type: string, minLength: 1 }
|
|
9
|
+
projectNumber: { type: integer, minimum: 1 }
|
|
10
|
+
itemId: { type: string, minLength: 1 }
|
|
11
|
+
additionalProperties: false
|
|
12
|
+
output_schema:
|
|
13
|
+
type: object
|
|
14
|
+
required: [itemId, removed]
|
|
15
|
+
properties:
|
|
16
|
+
itemId: { type: string, minLength: 1 }
|
|
17
|
+
removed: { type: boolean }
|
|
18
|
+
additionalProperties: false
|
|
19
|
+
routing:
|
|
20
|
+
preferred: cli
|
|
21
|
+
fallbacks: []
|
|
22
|
+
cli:
|
|
23
|
+
command: project item-delete
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
capability_id: project_v2.org.
|
|
1
|
+
capability_id: project_v2.org.view
|
|
2
2
|
version: "1.0.0"
|
|
3
3
|
description: Get an organization Projects v2 project.
|
|
4
4
|
input_schema:
|
|
@@ -20,7 +20,7 @@ output_schema:
|
|
|
20
20
|
url: { type: [string, "null"] }
|
|
21
21
|
additionalProperties: false
|
|
22
22
|
routing:
|
|
23
|
-
preferred:
|
|
24
|
-
fallbacks: [
|
|
23
|
+
preferred: cli
|
|
24
|
+
fallbacks: []
|
|
25
25
|
cli:
|
|
26
26
|
command: project view
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
capability_id: project_v2.user.
|
|
1
|
+
capability_id: project_v2.user.view
|
|
2
2
|
version: "1.0.0"
|
|
3
3
|
description: Get a user Projects v2 project.
|
|
4
4
|
input_schema:
|
|
@@ -20,7 +20,7 @@ output_schema:
|
|
|
20
20
|
url: { type: [string, "null"] }
|
|
21
21
|
additionalProperties: false
|
|
22
22
|
routing:
|
|
23
|
-
preferred:
|
|
24
|
-
fallbacks: [
|
|
23
|
+
preferred: cli
|
|
24
|
+
fallbacks: []
|
|
25
25
|
cli:
|
|
26
26
|
command: project view
|