@sentry/junior-github 0.280.0 → 0.281.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/dist/index.js +635 -600
- package/dist/tool-support/attribution.d.ts +11 -2
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Actor, Identity, PluginLogger, Source, User } from "@sentry/junior-plugin-api";
|
|
1
|
+
import type { Actor, Identity, PluginEgress, PluginLogger, Source, User } from "@sentry/junior-plugin-api";
|
|
2
2
|
export declare const GITHUB_REQUEST_ATTRIBUTION_START = "<!-- junior-request-attribution:start -->";
|
|
3
3
|
export declare const GITHUB_REQUEST_ATTRIBUTION_END = "<!-- junior-request-attribution:end -->";
|
|
4
4
|
/**
|
|
@@ -8,6 +8,14 @@ export declare const GITHUB_REQUEST_ATTRIBUTION_END = "<!-- junior-request-attri
|
|
|
8
8
|
* GitHub notifications for the issue or pull request.
|
|
9
9
|
*/
|
|
10
10
|
export declare function linkedGitHubLogin(user: User | undefined): string | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Read the body that is on GitHub now, so an update keeps its requesters.
|
|
13
|
+
* The model sees descriptions with the attribution block removed.
|
|
14
|
+
*/
|
|
15
|
+
export declare function readGitHubBody(egress: PluginEgress, input: {
|
|
16
|
+
operation: string;
|
|
17
|
+
path: string;
|
|
18
|
+
}): Promise<string | undefined>;
|
|
11
19
|
/** The stored Junior identity and user of the Actor that makes a GitHub write. */
|
|
12
20
|
export interface GitHubRequester {
|
|
13
21
|
identity?: Identity;
|
|
@@ -29,6 +37,7 @@ export declare function resolveGitHubRequester(ctx: {
|
|
|
29
37
|
}): Promise<GitHubRequester | undefined>;
|
|
30
38
|
/**
|
|
31
39
|
* Append or replace runtime-owned requester attribution in a GitHub body.
|
|
40
|
+
* Pass `currentBody` on updates so requesters already on GitHub are kept.
|
|
32
41
|
* With no stored requester, the label falls back to the already-hydrated
|
|
33
42
|
* actor profile.
|
|
34
43
|
*/
|
|
@@ -38,4 +47,4 @@ export declare function appendGitHubRequesterAttribution(body: string, ctx: {
|
|
|
38
47
|
url: string;
|
|
39
48
|
};
|
|
40
49
|
source?: Source;
|
|
41
|
-
}, requester: GitHubRequester | undefined): string;
|
|
50
|
+
}, requester: GitHubRequester | undefined, currentBody?: string): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/junior-github",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.281.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.281.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@oxlint/plugins": "1.79.0",
|