From 9d0ea93aab99c0aa7558dc7fd9e17370be4739c8 Mon Sep 17 00:00:00 2001 From: Brandon Shipley Date: Fri, 23 Jan 2026 21:13:28 -0800 Subject: [PATCH 1/4] use secret webhook url, extra dash in release workflow --- .gitea/workflows/release.yaml | 2 +- .gitea/workflows/status.yaml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 993a4c8..77787fb 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - - uses: actions/checkout@v4 + uses: actions/checkout@v4 - name: Release uses: softprops/action-gh-release@v2 diff --git a/.gitea/workflows/status.yaml b/.gitea/workflows/status.yaml index cb16f9d..c703766 100644 --- a/.gitea/workflows/status.yaml +++ b/.gitea/workflows/status.yaml @@ -15,8 +15,8 @@ jobs: - name: Webhook uses: zzzze/webhook-trigger@master with: - data: "{\"text\":\"cake-addresses build succeeded\"}" - webhook_url: "https://chat.ops.hipowered.dev/hooks/697436db05042b4dd9cce240/hZCMq7jCPqHprKFcWp3v49wsf4MaN6caWdh7F8iXiSyr6Ts9" + data: "{\"text\":\"${{ gitea.repository }} build succeeded 🎉\"}" + webhook_url: ${{ secrets.BUILD_STATUS_NOTIFY_WEBHOOK_URL }} options: "-H \"Content-Type: application/json\"" on-failure: @@ -26,6 +26,6 @@ jobs: - name: Webhook uses: zzzze/webhook-trigger@master with: - data: "{\"text\":\"cake-addresses build failed\"}" - webhook_url: "https://chat.ops.hipowered.dev/hooks/697436db05042b4dd9cce240/hZCMq7jCPqHprKFcWp3v49wsf4MaN6caWdh7F8iXiSyr6Ts9" + data: "{\"text\":\"${{ gitea.repository }} build failed 🔎\"}" + webhook_url: ${{ secrets.BUILD_STATUS_NOTIFY_WEBHOOK_URL }} options: "-H \"Content-Type: application/json\"" From af0a980e37b4616d795a3b82f0412de1e7b31376 Mon Sep 17 00:00:00 2001 From: Brandon Shipley Date: Wed, 11 Feb 2026 19:06:51 -0800 Subject: [PATCH 2/4] dont need bcmath extension --- .gitea/workflows/ci.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 862339b..0c48d65 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -40,7 +40,7 @@ jobs: uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php-version }} - extensions: mbstring, intl, bcmath, sqlite, pdo_${{ matrix.db-type }} + extensions: mbstring, intl, sqlite, pdo_${{ matrix.db-type }} coverage: pcov - name: Get composer cache directory @@ -102,7 +102,7 @@ jobs: uses: shivammathur/setup-php@v2 with: php-version: '8.2' - extensions: mbstring, intl, sqlite, bcmath + extensions: mbstring, intl, sqlite coverage: none - name: Get composer cache directory From b3b410b4c37f8641992d2b2cd43ae2caaa770573 Mon Sep 17 00:00:00 2001 From: Brandon Shipley Date: Wed, 11 Feb 2026 19:25:28 -0800 Subject: [PATCH 3/4] handle beforeMarshal little better --- src/Model/Table/AddressesTable.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Model/Table/AddressesTable.php b/src/Model/Table/AddressesTable.php index 808dae0..4768354 100644 --- a/src/Model/Table/AddressesTable.php +++ b/src/Model/Table/AddressesTable.php @@ -175,11 +175,11 @@ class AddressesTable extends Table { * @return void */ public function beforeMarshal(EventInterface $event, ArrayObject $data, ArrayObject $options): void { - if ($data['state_id'] && !isset($data['state'])) { + if (($data['state_id'] ?? false) && !isset($data['state'])) { $state = $this->States->find()->where(['id' => $data['state_id']])->first(); $data['state'] = $state->name ?? null; } - if ($data['country_id'] && !isset($data['country'])) { + if (($data['country_id'] ?? false) && !isset($data['country'])) { $country = $this->Countries->find()->where(['id' => $data['country_id']])->first(); $data['country'] = $country->name ?? null; } From bd2d69ea53e58fd0f36129c3e7cd9e2ca3ee02c4 Mon Sep 17 00:00:00 2001 From: Brandon Shipley Date: Wed, 11 Feb 2026 19:31:32 -0800 Subject: [PATCH 4/4] bcmath is required after all --- .gitea/workflows/ci.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 0c48d65..862339b 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -40,7 +40,7 @@ jobs: uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php-version }} - extensions: mbstring, intl, sqlite, pdo_${{ matrix.db-type }} + extensions: mbstring, intl, bcmath, sqlite, pdo_${{ matrix.db-type }} coverage: pcov - name: Get composer cache directory @@ -102,7 +102,7 @@ jobs: uses: shivammathur/setup-php@v2 with: php-version: '8.2' - extensions: mbstring, intl, sqlite + extensions: mbstring, intl, sqlite, bcmath coverage: none - name: Get composer cache directory