Skip to content

Commit

Permalink
Merge pull request #30 from ubiquibot/main
Browse files Browse the repository at this point in the history
Main
  • Loading branch information
gentlementlegen authored Sep 10, 2024
2 parents 4f085eb + 70de644 commit 5f7918d
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 8 deletions.
57 changes: 57 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Changelog

## [1.0.2](https://github.com/ubiquibot/assistive-pricing/compare/v1.0.1...v1.0.2) (2024-08-20)


### Bug Fixes

* temporarily disable auth ([97c8b36](https://github.com/ubiquibot/assistive-pricing/commit/97c8b364381d7bb1abf09ffe10f7f88a4ad9f4c6))

## [1.0.1](https://github.com/ubiquibot/assistive-pricing/compare/v1.0.0...v1.0.1) (2024-08-20)


### Bug Fixes

* updated manifest.json ([3aa6c14](https://github.com/ubiquibot/assistive-pricing/commit/3aa6c14b3d250b7bb53a2ca4828049cf02318b8d))

## 1.0.0 (2024-07-08)


### Features

* access and label tables ([78d96d9](https://github.com/ubiquibot/assistive-pricing/commit/78d96d9485a79fc8c5d984d6967ecc90d86e3d64))
* action inputs ([abca8f0](https://github.com/ubiquibot/assistive-pricing/commit/abca8f0d5b5fc353fb314f6d12e7a4db179dcd61))
* added release-please.yml workflow ([a494891](https://github.com/ubiquibot/assistive-pricing/commit/a4948917b8a00deaa2fd000ac50ed4052ab7a8bd))
* assistive pricing ([2728e2e](https://github.com/ubiquibot/assistive-pricing/commit/2728e2e102681deb30461e5b86a7648631d03276))
* check signature ([c149116](https://github.com/ubiquibot/assistive-pricing/commit/c149116af230ba3e0f441f7a87b5651ecd10499d))
* database type generation ([e2c0f39](https://github.com/ubiquibot/assistive-pricing/commit/e2c0f395ccc9b70e22a28d2e7b1e6ec906024b0d))
* env is now validated ([ecbf7ab](https://github.com/ubiquibot/assistive-pricing/commit/ecbf7abbed3ccc2c1bc1bc82f5d9c6f08c153036))
* generating supabase types on build ([7978c60](https://github.com/ubiquibot/assistive-pricing/commit/7978c606fc771b2642798ea815adbec30e582939))
* handle comment ([a4beb54](https://github.com/ubiquibot/assistive-pricing/commit/a4beb5422df78b97ac32cd3349774b44f18762f4))
* now runs on cloudflare worker ([94d5bb7](https://github.com/ubiquibot/assistive-pricing/commit/94d5bb710a90442db3642594c92049763464be6a))
* setup action ([0160a2f](https://github.com/ubiquibot/assistive-pricing/commit/0160a2fc0afdde4bf75fc94aab633f9c14b1c472))
* setup node and pnpm ([5d3c1c1](https://github.com/ubiquibot/assistive-pricing/commit/5d3c1c162405358fbb8e0bc7a50fe7ce37669803))
* supabase, typeguards ([63643dd](https://github.com/ubiquibot/assistive-pricing/commit/63643dd73cd67c601cf2720ff9e97203806718c4))
* typebox for settings schema ([32250fe](https://github.com/ubiquibot/assistive-pricing/commit/32250fedce4b0df64b8af33d8e5fe4274afba58d))


### Bug Fixes

* added secrets for Supabase generation ([ba46893](https://github.com/ubiquibot/assistive-pricing/commit/ba46893b28e114813ee576de61d32001cbc60502))
* added secrets for Supabase generation ([32a0d75](https://github.com/ubiquibot/assistive-pricing/commit/32a0d75c9e372fb13c9ab308265eaa398d529cdd))
* change from inputs to env ([63a6eee](https://github.com/ubiquibot/assistive-pricing/commit/63a6eeee3139018369134c10b3af256ea0aa9a71))
* check for membership before getting role ([3ac4014](https://github.com/ubiquibot/assistive-pricing/commit/3ac401451b86f1c993644288cf5e179f43a6e045))
* comment ([3945ae4](https://github.com/ubiquibot/assistive-pricing/commit/3945ae4c13d7c92260ffd5fc54a1c79758f3b4db))
* comment ([5d44e62](https://github.com/ubiquibot/assistive-pricing/commit/5d44e6203ad621745ce526a9ec08db8bcd3cda26))
* cspell ([92bfa6e](https://github.com/ubiquibot/assistive-pricing/commit/92bfa6e1303654e6e37c5b58776ba907413365b4))
* deployment and release are working properly ([d92e4c0](https://github.com/ubiquibot/assistive-pricing/commit/d92e4c04b325bd761c5558e61ebd945088f1da2a))
* eslint and cspell ([130ed5a](https://github.com/ubiquibot/assistive-pricing/commit/130ed5a1eabf2f11a81eca924d97ca140b6a3cf1))
* fixed TTY environment missing ([612c851](https://github.com/ubiquibot/assistive-pricing/commit/612c851b7c51cce07903a6fad0a72bb5053c2a1e))
* label type ([7278e3b](https://github.com/ubiquibot/assistive-pricing/commit/7278e3b14f1393cd0aa1b04b8fbb7a87e7a67b66))
* log instead of throw ([3c6ef5c](https://github.com/ubiquibot/assistive-pricing/commit/3c6ef5c3b338ac8953cbdb33313e9c071fa04e9b))
* permission for public set label ([9687b71](https://github.com/ubiquibot/assistive-pricing/commit/9687b718fd123623c3e825a648f777cb83f1b6a1))
* remove duplicates and ignore label already exists error ([1f2e3ff](https://github.com/ubiquibot/assistive-pricing/commit/1f2e3ff0027cf9b95b3d3c26a2455151452c57ad))
* sample request ([83a3d83](https://github.com/ubiquibot/assistive-pricing/commit/83a3d8385400cfd1cc85c7d3e2eb5d375144c859))
* spacing ([ead0dab](https://github.com/ubiquibot/assistive-pricing/commit/ead0dab367a1a4126bb73027c5a1e4153230577a))
* switch statement ([c429aa2](https://github.com/ubiquibot/assistive-pricing/commit/c429aa2eedaa583e769d8b2cc1196c32bbf768d8))
* tests ([4a9cfc3](https://github.com/ubiquibot/assistive-pricing/commit/4a9cfc3e98f283e54daf3c01d6e016d216eec658))
17 changes: 9 additions & 8 deletions src/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,15 @@ export default {
});
}
const webhookPayload = await request.json();
const signature = webhookPayload.signature;
delete webhookPayload.signature;
if (!(await verifySignature(env.UBIQUIBOT_PUBLIC_KEY, webhookPayload, signature))) {
return new Response(JSON.stringify({ error: `Forbidden: Signature verification failed` }), {
status: 403,
headers: { "content-type": "application/json" },
});
}
// TODO: temporarily disabled, should be added back with the proper key in the configuration.
// const signature = webhookPayload.signature;
// delete webhookPayload.signature;
// if (!(await verifySignature(env.UBIQUIBOT_PUBLIC_KEY, webhookPayload, signature))) {
// return new Response(JSON.stringify({ error: `Forbidden: Signature verification failed` }), {
// status: 403,
// headers: { "content-type": "application/json" },
// });
// }
webhookPayload.settings = Value.Decode(assistivePricingSettingsSchema, Value.Default(assistivePricingSettingsSchema, webhookPayload.settings));
await run(webhookPayload, env);
return new Response(JSON.stringify("OK"), { status: 200, headers: { "content-type": "application/json" } });
Expand Down

0 comments on commit 5f7918d

Please sign in to comment.