Skip to content

Commit

Permalink
added bucket and uploadKey to the Zapier webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
mirai2k committed Oct 22, 2024
1 parent abd3934 commit 1109601
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/backend/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 2 additions & 0 deletions apps/backend/src/publishHandler.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 2 additions & 0 deletions apps/backend/src/publishHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1109601

Please sign in to comment.