From 11096017626863a6e68be20bc180c86ef373a563 Mon Sep 17 00:00:00 2001 From: mirai2k Date: Tue, 22 Oct 2024 22:28:35 +0300 Subject: [PATCH] added bucket and uploadKey to the Zapier webhook --- apps/backend/package.json | 2 +- apps/backend/src/publishHandler.test.ts | 2 ++ apps/backend/src/publishHandler.ts | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/backend/package.json b/apps/backend/package.json index 8438067e8..9fcc38cea 100644 --- a/apps/backend/package.json +++ b/apps/backend/package.json @@ -1,6 +1,6 @@ { "name": "@codemod-com/backend", - "version": "0.0.161", + "version": "0.0.162", "scripts": { "build": "tsc && node esbuild.config.js", "start": "node build/index.js", diff --git a/apps/backend/src/publishHandler.test.ts b/apps/backend/src/publishHandler.test.ts index b8ab5ed41..c1ac44f7d 100644 --- a/apps/backend/src/publishHandler.test.ts +++ b/apps/backend/src/publishHandler.test.ts @@ -204,6 +204,8 @@ describe("/publish route", async () => { ), engine: codemodRcContents.engine, publishedAt: MOCK_TIMESTAMP, + bucket: "codemod-test", + uploadKey: `codemod-registry/${hashDigest}/${codemodRcContents.version}/codemod.tar.gz`, }, author: { username: GET_USER_RETURN.user.username, diff --git a/apps/backend/src/publishHandler.ts b/apps/backend/src/publishHandler.ts index 9c0dfcbce..76bad9fde 100644 --- a/apps/backend/src/publishHandler.ts +++ b/apps/backend/src/publishHandler.ts @@ -413,6 +413,8 @@ export const publishHandler: RouteHandler<{ to: codemodRc.applicability?.to?.map((tuple) => tuple.join(" ")), engine: codemodRc.engine, publishedAt: createdAtTimestamp, + bucket, + uploadKey, }, author: { username,