@sentry/junior-linear 0.266.0 → 0.268.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/events/issue.d.ts +1 -0
- package/dist/index.js +11 -0
- package/package.json +2 -2
package/dist/events/issue.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export declare const LINEAR_ISSUE_MATCH_FIELDS: Record<string, {
|
|
|
9
9
|
description: string;
|
|
10
10
|
enum?: string[] | undefined;
|
|
11
11
|
list?: true | undefined;
|
|
12
|
+
case?: "lower" | "upper" | undefined;
|
|
12
13
|
events?: string[] | undefined;
|
|
13
14
|
}>;
|
|
14
15
|
/** Build the stable Linear issue identity shared by tools and webhooks. */
|
package/dist/index.js
CHANGED
|
@@ -12,11 +12,13 @@ var LINEAR_ISSUE_EVENTS = ["issue.created"];
|
|
|
12
12
|
var LINEAR_ISSUE_MATCH_FIELDS = eventMatchFieldsSchema.parse({
|
|
13
13
|
issueIdentifier: {
|
|
14
14
|
kind: "string",
|
|
15
|
+
case: "upper",
|
|
15
16
|
description: "uppercase Linear issue identifier, such as SRE-123",
|
|
16
17
|
events: [...LINEAR_ISSUE_EVENTS]
|
|
17
18
|
},
|
|
18
19
|
teamKey: {
|
|
19
20
|
kind: "string",
|
|
21
|
+
case: "upper",
|
|
20
22
|
description: "uppercase Linear team key for the issue, such as SRE",
|
|
21
23
|
events: [...LINEAR_ISSUE_EVENTS]
|
|
22
24
|
}
|
|
@@ -309,6 +311,15 @@ function linearPlugin() {
|
|
|
309
311
|
matchFields: LINEAR_ISSUE_MATCH_FIELDS
|
|
310
312
|
}
|
|
311
313
|
],
|
|
314
|
+
// An issue carries its title and description, and a team can be
|
|
315
|
+
// private. So a trigger with no identifier must name its team or one
|
|
316
|
+
// issue.
|
|
317
|
+
events: Object.fromEntries(
|
|
318
|
+
LINEAR_ISSUE_EVENTS.map((eventType) => [
|
|
319
|
+
eventType,
|
|
320
|
+
{ reach: { anyOf: ["teamKey", "issueIdentifier"] } }
|
|
321
|
+
])
|
|
322
|
+
),
|
|
312
323
|
isEnabled: () => Boolean(linearWebhookSecret()),
|
|
313
324
|
normalizeIdentifier: (identifier) => identifier.toUpperCase()
|
|
314
325
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/junior-linear",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.268.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"zod": "^4.5.4",
|
|
26
|
-
"@sentry/junior-plugin-api": "0.
|
|
26
|
+
"@sentry/junior-plugin-api": "0.268.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@oxlint/plugins": "1.79.0",
|