@sentry/junior-github 0.117.0 → 0.119.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/README.md +6 -4
- package/SETUP.md +11 -2
- package/dist/{chunk-JDNXIBCQ.js → chunk-EPYBKNXS.js} +165 -3
- package/dist/index.js +524 -313
- package/dist/resource-events/deployment.d.ts +14 -0
- package/dist/testing.js +1 -1
- package/dist/tools/get-deployment.d.ts +85 -0
- package/package.json +2 -2
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { SubscribableResource } from "@sentry/junior-plugin-api";
|
|
2
|
+
export declare const GITHUB_DEPLOYMENT_EVENTS: readonly ["deployment.created", "deployment.queued", "deployment.pending", "deployment.in_progress", "deployment.succeeded", "deployment.failed", "deployment.error"];
|
|
3
|
+
/** Build the stable deployment-source identity shared by tools and webhooks. */
|
|
4
|
+
export declare function gitHubDeploymentSourceResource(input: {
|
|
5
|
+
commitSha: string;
|
|
6
|
+
environment: string;
|
|
7
|
+
repo: string;
|
|
8
|
+
}): Pick<SubscribableResource, "label" | "provider" | "resourceRef">;
|
|
9
|
+
/** Describe a deployment source when GitHub webhooks are enabled. */
|
|
10
|
+
export declare function gitHubDeploymentSourceSubscribable(input: {
|
|
11
|
+
commitSha: string;
|
|
12
|
+
environment: string;
|
|
13
|
+
repo: string;
|
|
14
|
+
}): SubscribableResource | undefined;
|
package/dist/testing.js
CHANGED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { type ToolRegistrationHookContext } from "@sentry/junior-plugin-api";
|
|
2
|
+
/** Read deployment metadata and expose its stable subscription identity. */
|
|
3
|
+
export declare function createGitHubGetDeploymentTool(ctx: ToolRegistrationHookContext): import("@sentry/junior-plugin-api").PluginToolDefinition<{
|
|
4
|
+
repo: string;
|
|
5
|
+
commitSha: string;
|
|
6
|
+
environment: string;
|
|
7
|
+
}, {
|
|
8
|
+
commitSha: string;
|
|
9
|
+
deployment: {
|
|
10
|
+
createdAt: string;
|
|
11
|
+
creator: string | null;
|
|
12
|
+
description: string | null;
|
|
13
|
+
environment: string;
|
|
14
|
+
id: number;
|
|
15
|
+
latestStatus: {
|
|
16
|
+
createdAt: string;
|
|
17
|
+
creator: string | null;
|
|
18
|
+
description: string | null;
|
|
19
|
+
environmentUrl: string | null;
|
|
20
|
+
id: number;
|
|
21
|
+
logUrl: string | null;
|
|
22
|
+
state: string;
|
|
23
|
+
} | null;
|
|
24
|
+
ref: string;
|
|
25
|
+
sha: string;
|
|
26
|
+
updatedAt: string;
|
|
27
|
+
url: string;
|
|
28
|
+
} | null;
|
|
29
|
+
environment: string;
|
|
30
|
+
repo: string;
|
|
31
|
+
data: {
|
|
32
|
+
commitSha: string;
|
|
33
|
+
deployment: {
|
|
34
|
+
createdAt: string;
|
|
35
|
+
creator: string | null;
|
|
36
|
+
description: string | null;
|
|
37
|
+
environment: string;
|
|
38
|
+
id: number;
|
|
39
|
+
latestStatus: {
|
|
40
|
+
createdAt: string;
|
|
41
|
+
creator: string | null;
|
|
42
|
+
description: string | null;
|
|
43
|
+
environmentUrl: string | null;
|
|
44
|
+
id: number;
|
|
45
|
+
logUrl: string | null;
|
|
46
|
+
state: string;
|
|
47
|
+
} | null;
|
|
48
|
+
ref: string;
|
|
49
|
+
sha: string;
|
|
50
|
+
updatedAt: string;
|
|
51
|
+
url: string;
|
|
52
|
+
} | null;
|
|
53
|
+
environment: string;
|
|
54
|
+
repo: string;
|
|
55
|
+
subscribable?: {
|
|
56
|
+
label: string;
|
|
57
|
+
provider: string;
|
|
58
|
+
resourceRef: string;
|
|
59
|
+
supportedEvents: string[];
|
|
60
|
+
type: string;
|
|
61
|
+
suggestedEvents?: string[] | undefined;
|
|
62
|
+
} | undefined;
|
|
63
|
+
};
|
|
64
|
+
ok: true;
|
|
65
|
+
status: "success";
|
|
66
|
+
target: "getDeployment";
|
|
67
|
+
truncated?: boolean | undefined;
|
|
68
|
+
continuation?: {
|
|
69
|
+
arguments: Record<string, unknown>;
|
|
70
|
+
reason?: string | undefined;
|
|
71
|
+
} | undefined;
|
|
72
|
+
error?: string | {
|
|
73
|
+
kind: string;
|
|
74
|
+
message: string;
|
|
75
|
+
retryable?: boolean | undefined;
|
|
76
|
+
} | undefined;
|
|
77
|
+
subscribable?: {
|
|
78
|
+
label: string;
|
|
79
|
+
provider: string;
|
|
80
|
+
resourceRef: string;
|
|
81
|
+
supportedEvents: string[];
|
|
82
|
+
type: string;
|
|
83
|
+
suggestedEvents?: string[] | undefined;
|
|
84
|
+
} | undefined;
|
|
85
|
+
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/junior-github",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.119.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@sinclair/typebox": "^0.34.49",
|
|
32
32
|
"drizzle-orm": "^0.45.2",
|
|
33
33
|
"zod": "^4.4.3",
|
|
34
|
-
"@sentry/junior-plugin-api": "0.
|
|
34
|
+
"@sentry/junior-plugin-api": "0.119.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/node": "^25.9.1",
|