@shipfox/api-integration-github 7.0.1 → 7.1.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/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +13 -0
- package/dist/api/shared-installation-token-cache.d.ts.map +1 -1
- package/dist/api/shared-installation-token-cache.js +15 -0
- package/dist/api/shared-installation-token-cache.js.map +1 -1
- package/dist/tsconfig.test.tsbuildinfo +1 -1
- package/package.json +7 -19
- package/src/api/shared-installation-token-cache.ts +11 -0
- package/tsconfig.build.tsbuildinfo +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shipfox/api-integration-github",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "7.0
|
|
4
|
+
"version": "7.1.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/ShipfoxHQ/shipfox.git",
|
|
@@ -27,28 +27,16 @@
|
|
|
27
27
|
"ky": "^2.0.0",
|
|
28
28
|
"octokit": "^5.0.3",
|
|
29
29
|
"zod": "^4.4.3",
|
|
30
|
-
"@shipfox/api-auth-context": "
|
|
30
|
+
"@shipfox/api-auth-context": "7.1.0",
|
|
31
31
|
"@shipfox/api-integration-core-dto": "6.0.0",
|
|
32
32
|
"@shipfox/api-integration-github-dto": "6.0.0",
|
|
33
|
-
"@shipfox/api-workspaces": "7.0
|
|
33
|
+
"@shipfox/api-workspaces": "7.1.0",
|
|
34
34
|
"@shipfox/config": "1.2.2",
|
|
35
|
-
"@shipfox/node-
|
|
36
|
-
"@shipfox/node-fastify": "0.2.4",
|
|
35
|
+
"@shipfox/node-fastify": "0.3.0",
|
|
37
36
|
"@shipfox/node-postgres": "0.4.2",
|
|
38
|
-
"@shipfox/node-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
"@types/pg": "^8.15.5",
|
|
42
|
-
"drizzle-kit": "^0.31.10",
|
|
43
|
-
"fastify": "^5.3.3",
|
|
44
|
-
"fastify-type-provider-zod": "^6.0.0",
|
|
45
|
-
"fishery": "^2.4.0",
|
|
46
|
-
"@shipfox/biome": "1.8.2",
|
|
47
|
-
"@shipfox/depcruise": "1.0.2",
|
|
48
|
-
"@shipfox/swc": "1.2.6",
|
|
49
|
-
"@shipfox/ts-config": "1.3.8",
|
|
50
|
-
"@shipfox/typescript": "1.1.7",
|
|
51
|
-
"@shipfox/vitest": "1.2.3"
|
|
37
|
+
"@shipfox/node-error-monitoring": "0.2.0",
|
|
38
|
+
"@shipfox/node-drizzle": "0.3.2",
|
|
39
|
+
"@shipfox/node-opentelemetry": "0.6.0"
|
|
52
40
|
},
|
|
53
41
|
"scripts": {
|
|
54
42
|
"build": "shipfox-swc",
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import {setTimeout as sleepTimeout} from 'node:timers/promises';
|
|
2
|
+
import {reportError} from '@shipfox/node-error-monitoring';
|
|
2
3
|
import {logger} from '@shipfox/node-opentelemetry';
|
|
3
4
|
import {GithubIntegrationProviderError} from '#core/errors.js';
|
|
4
5
|
import {
|
|
@@ -135,6 +136,11 @@ export class SharedInstallationTokenCache implements InstallationTokenCache {
|
|
|
135
136
|
{installationId: params.installationId, reason: classified.reason, error: writeError},
|
|
136
137
|
'github installation token backoff write failed',
|
|
137
138
|
);
|
|
139
|
+
reportError(writeError, {
|
|
140
|
+
boundary: 'integration.cache',
|
|
141
|
+
operation: 'write-backoff-envelope',
|
|
142
|
+
extra: {installationId: params.installationId},
|
|
143
|
+
});
|
|
138
144
|
});
|
|
139
145
|
|
|
140
146
|
if (
|
|
@@ -179,6 +185,11 @@ export class SharedInstallationTokenCache implements InstallationTokenCache {
|
|
|
179
185
|
{installationId: params.installationId, expiresAt: token.expiresAt.toISOString(), error},
|
|
180
186
|
'github installation token cache write failed after mint',
|
|
181
187
|
);
|
|
188
|
+
reportError(error, {
|
|
189
|
+
boundary: 'integration.cache',
|
|
190
|
+
operation: 'write-minted-token',
|
|
191
|
+
extra: {installationId: params.installationId},
|
|
192
|
+
});
|
|
182
193
|
}
|
|
183
194
|
|
|
184
195
|
logger().info(
|