@sentry/junior-github 0.277.0 → 0.278.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.
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { type PluginEgress } from "@sentry/junior-plugin-api";
|
|
2
|
+
/**
|
|
3
|
+
* Post a pull request comment as the App bot, or reply in an inline review
|
|
4
|
+
* thread. GitHub keeps conversation comments under the issues endpoint and
|
|
5
|
+
* thread replies under the pulls endpoint.
|
|
6
|
+
*/
|
|
7
|
+
export declare function createGitHubCommentOnPullRequestTool(egress: PluginEgress): import("@sentry/junior-plugin-api").PluginToolDefinition<{
|
|
8
|
+
repo: string;
|
|
9
|
+
number: number;
|
|
10
|
+
body: string;
|
|
11
|
+
in_reply_to?: number | undefined;
|
|
12
|
+
}, {
|
|
13
|
+
[x: string]: unknown;
|
|
14
|
+
objectAnnotations?: {
|
|
15
|
+
kind: "object";
|
|
16
|
+
key: string;
|
|
17
|
+
label: string;
|
|
18
|
+
objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
|
|
19
|
+
title: string;
|
|
20
|
+
url: string | null;
|
|
21
|
+
description?: string | undefined;
|
|
22
|
+
status?: string | undefined;
|
|
23
|
+
trigger?: string | undefined;
|
|
24
|
+
warning?: string | undefined;
|
|
25
|
+
displayType?: string | undefined;
|
|
26
|
+
sourceUpdatedAt?: string | undefined;
|
|
27
|
+
facts?: {
|
|
28
|
+
type: "code_change";
|
|
29
|
+
author?: string | undefined;
|
|
30
|
+
sourceBranch?: string | undefined;
|
|
31
|
+
targetBranch?: string | undefined;
|
|
32
|
+
reviewers?: string[] | undefined;
|
|
33
|
+
review?: "approved" | "changes_requested" | "required" | undefined;
|
|
34
|
+
checks?: {
|
|
35
|
+
passed: number;
|
|
36
|
+
failed: number;
|
|
37
|
+
pending: number;
|
|
38
|
+
} | undefined;
|
|
39
|
+
mergeable?: boolean | undefined;
|
|
40
|
+
changedFiles?: number | undefined;
|
|
41
|
+
additions?: number | undefined;
|
|
42
|
+
deletions?: number | undefined;
|
|
43
|
+
} | {
|
|
44
|
+
type: "task";
|
|
45
|
+
assignees?: string[] | undefined;
|
|
46
|
+
priority?: string | undefined;
|
|
47
|
+
project?: string | undefined;
|
|
48
|
+
cycle?: string | undefined;
|
|
49
|
+
dueDate?: string | undefined;
|
|
50
|
+
labels?: string[] | undefined;
|
|
51
|
+
} | {
|
|
52
|
+
type: "deployment";
|
|
53
|
+
project?: string | undefined;
|
|
54
|
+
environment?: string | undefined;
|
|
55
|
+
revision?: string | undefined;
|
|
56
|
+
branch?: string | undefined;
|
|
57
|
+
} | {
|
|
58
|
+
type: "calendar_event";
|
|
59
|
+
when?: string | undefined;
|
|
60
|
+
attendees?: string[] | undefined;
|
|
61
|
+
} | undefined;
|
|
62
|
+
}[] | undefined;
|
|
63
|
+
truncated?: boolean | undefined;
|
|
64
|
+
continuation?: {
|
|
65
|
+
arguments: Record<string, unknown>;
|
|
66
|
+
reason?: string | undefined;
|
|
67
|
+
} | undefined;
|
|
68
|
+
target: "commentOnPullRequest";
|
|
69
|
+
repo: string;
|
|
70
|
+
number: number;
|
|
71
|
+
comment_id: number;
|
|
72
|
+
url: string;
|
|
73
|
+
}, {
|
|
74
|
+
[x: string]: unknown;
|
|
75
|
+
objectAnnotations?: {
|
|
76
|
+
kind: "object";
|
|
77
|
+
key: string;
|
|
78
|
+
label: string;
|
|
79
|
+
objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
|
|
80
|
+
title: string;
|
|
81
|
+
url: string | null;
|
|
82
|
+
description?: string | undefined;
|
|
83
|
+
status?: string | undefined;
|
|
84
|
+
trigger?: string | undefined;
|
|
85
|
+
warning?: string | undefined;
|
|
86
|
+
displayType?: string | undefined;
|
|
87
|
+
sourceUpdatedAt?: string | undefined;
|
|
88
|
+
facts?: {
|
|
89
|
+
type: "code_change";
|
|
90
|
+
author?: string | undefined;
|
|
91
|
+
sourceBranch?: string | undefined;
|
|
92
|
+
targetBranch?: string | undefined;
|
|
93
|
+
reviewers?: string[] | undefined;
|
|
94
|
+
review?: "approved" | "changes_requested" | "required" | undefined;
|
|
95
|
+
checks?: {
|
|
96
|
+
passed: number;
|
|
97
|
+
failed: number;
|
|
98
|
+
pending: number;
|
|
99
|
+
} | undefined;
|
|
100
|
+
mergeable?: boolean | undefined;
|
|
101
|
+
changedFiles?: number | undefined;
|
|
102
|
+
additions?: number | undefined;
|
|
103
|
+
deletions?: number | undefined;
|
|
104
|
+
} | {
|
|
105
|
+
type: "task";
|
|
106
|
+
assignees?: string[] | undefined;
|
|
107
|
+
priority?: string | undefined;
|
|
108
|
+
project?: string | undefined;
|
|
109
|
+
cycle?: string | undefined;
|
|
110
|
+
dueDate?: string | undefined;
|
|
111
|
+
labels?: string[] | undefined;
|
|
112
|
+
} | {
|
|
113
|
+
type: "deployment";
|
|
114
|
+
project?: string | undefined;
|
|
115
|
+
environment?: string | undefined;
|
|
116
|
+
revision?: string | undefined;
|
|
117
|
+
branch?: string | undefined;
|
|
118
|
+
} | {
|
|
119
|
+
type: "calendar_event";
|
|
120
|
+
when?: string | undefined;
|
|
121
|
+
attendees?: string[] | undefined;
|
|
122
|
+
} | undefined;
|
|
123
|
+
}[] | undefined;
|
|
124
|
+
truncated?: boolean | undefined;
|
|
125
|
+
continuation?: {
|
|
126
|
+
arguments: Record<string, unknown>;
|
|
127
|
+
reason?: string | undefined;
|
|
128
|
+
} | undefined;
|
|
129
|
+
target: "commentOnPullRequest";
|
|
130
|
+
repo: string;
|
|
131
|
+
number: number;
|
|
132
|
+
comment_id: number;
|
|
133
|
+
url: string;
|
|
134
|
+
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/junior-github",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.278.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"drizzle-orm": "^0.45.2",
|
|
33
33
|
"marked": "^18.1.2",
|
|
34
34
|
"zod": "^4.5.4",
|
|
35
|
-
"@sentry/junior-plugin-api": "0.
|
|
35
|
+
"@sentry/junior-plugin-api": "0.278.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@oxlint/plugins": "1.79.0",
|
|
@@ -13,6 +13,7 @@ Use `git` and `gh` for repository work.
|
|
|
13
13
|
| Update PR title/body/base/state | `github_updatePullRequest` |
|
|
14
14
|
| Mark PR ready / draft | `github_updatePullRequest` with `draft: false` / `draft: true` |
|
|
15
15
|
| Submit PR review | `github_submitPullRequestReview` |
|
|
16
|
+
| Comment on PR / reply in thread | `github_commentOnPullRequest` (`in_reply_to` for a thread reply) |
|
|
16
17
|
| Resolve review thread | `github_resolvePullRequestReviewThread` |
|
|
17
18
|
| Clone missing repo | `github_cloneRepository` (not `git clone` or `gh repo clone`); on Workspace match error use `switchWorkspace` |
|
|
18
19
|
|
|
@@ -42,6 +42,7 @@ If the user omits `owner/repo`, run `jr-rpc config get github.repo`. Then pass `
|
|
|
42
42
|
| Unstack | `gh stack unstack STACK_NUMBER` |
|
|
43
43
|
| Submit review | `github_submitPullRequestReview` |
|
|
44
44
|
| Set feedback status | `github_updatePullRequestFeedback` |
|
|
45
|
+
| PR comment / reply | `github_commentOnPullRequest` (`in_reply_to` for a thread reply) |
|
|
45
46
|
| Resolve review thread | `github_resolvePullRequestReviewThread` |
|
|
46
47
|
| Inline review comment | `gh api repos/owner/repo/pulls/NUMBER/comments --method POST --input comment.json` |
|
|
47
48
|
| View PR / checks | `gh pr view NUMBER --repo owner/repo` / `gh pr checks NUMBER --repo owner/repo` |
|
|
@@ -59,5 +60,5 @@ If the user omits `owner/repo`, run `jr-rpc config get github.repo`. Then pass `
|
|
|
59
60
|
- Stacks: open each PR with `github_createPullRequest`, based on the branch below. When its base is the head of another open PR, the tool links it into a GitHub stack and returns `stack`; do not run `gh stack link` for it. No `stack` means GitHub could not stack it. Without local stack state, run `gh stack checkout STACK_NUMBER` first. Do not pass `--open`.
|
|
60
61
|
- Junior does not support merges, forks, repository administration, REST content or Git database writes, direct PR update or review writes, auto-merge, or GraphQL mutations.
|
|
61
62
|
- Reviews and inline comments use the App bot.
|
|
62
|
-
- PR
|
|
63
|
+
- PR labels/assignees use issue endpoints; load `github-issues` for those.
|
|
63
64
|
- Embed local images with `publishImage` first (public URL). Do not use private Slack file links.
|