@shipfox/api-integration-github 10.2.0 → 11.0.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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shipfox/api-integration-github",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "11.0.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/ShipfoxHQ/shipfox.git",
|
|
@@ -27,7 +27,7 @@
|
|
|
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": "11.0.0",
|
|
31
31
|
"@shipfox/api-integration-spi": "0.2.2",
|
|
32
32
|
"@shipfox/api-integration-github-dto": "9.0.2",
|
|
33
33
|
"@shipfox/config": "1.2.4",
|
|
@@ -142,7 +142,7 @@ describe('GitHub integration routes', () => {
|
|
|
142
142
|
it('returns an install URL with signed workspace state', async () => {
|
|
143
143
|
const app = await createTestApp();
|
|
144
144
|
const workspaceId = crypto.randomUUID();
|
|
145
|
-
authenticatedMemberships = [{workspaceId, role: 'admin'}];
|
|
145
|
+
authenticatedMemberships = [{workspaceId, role: 'admin', workspaceStatus: 'active'}];
|
|
146
146
|
|
|
147
147
|
const res = await app.inject({
|
|
148
148
|
method: 'POST',
|
|
@@ -191,7 +191,7 @@ describe('GitHub integration routes', () => {
|
|
|
191
191
|
expect(requireWorkspaceMembershipMock).toHaveBeenCalledWith({
|
|
192
192
|
workspaceId,
|
|
193
193
|
userId: 'user-1',
|
|
194
|
-
memberships: [{workspaceId, role: 'admin'}],
|
|
194
|
+
memberships: [{workspaceId, role: 'admin', workspaceStatus: 'active'}],
|
|
195
195
|
});
|
|
196
196
|
});
|
|
197
197
|
|
|
@@ -261,7 +261,7 @@ describe('GitHub integration routes', () => {
|
|
|
261
261
|
});
|
|
262
262
|
|
|
263
263
|
async function createInstallState(app: FastifyInstance, workspaceId: string): Promise<string> {
|
|
264
|
-
authenticatedMemberships = [{workspaceId, role: 'admin'}];
|
|
264
|
+
authenticatedMemberships = [{workspaceId, role: 'admin', workspaceStatus: 'active'}];
|
|
265
265
|
const res = await app.inject({
|
|
266
266
|
method: 'POST',
|
|
267
267
|
url: '/integrations/github/install',
|