From f4a5f9c4120acd1ca8f53fb22371e9c3a2650516 Mon Sep 17 00:00:00 2001 From: "braden@vals.ai" Date: Thu, 30 Apr 2026 18:42:22 +0000 Subject: [PATCH] chore: add slack notification for lockfile update PRs Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- .github/workflows/update-lockfile.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/update-lockfile.yaml b/.github/workflows/update-lockfile.yaml index ab9fc0f..3b7924b 100644 --- a/.github/workflows/update-lockfile.yaml +++ b/.github/workflows/update-lockfile.yaml @@ -5,6 +5,8 @@ on: secrets: GH_PAT: required: true + SLACK_WEBHOOK_URL: + required: false jobs: update: @@ -23,6 +25,7 @@ jobs: run: uv lock --upgrade-package create-benchmark-service - uses: peter-evans/create-pull-request@v8 + id: cpr with: token: ${{ secrets.GH_PAT }} commit-message: 'chore: update create-benchmark-service lockfile' @@ -32,3 +35,12 @@ jobs: Tests, lint, and typecheck must pass before merge. branch: chore/update-cbs-lockfile delete-branch: true + + - name: Notify Slack + if: steps.cpr.outputs.pull-request-url && secrets.SLACK_WEBHOOK_URL + run: | + curl -sf -X POST "$SLACK_WEBHOOK_URL" \ + -H 'Content-Type: application/json' \ + -d "{\"text\":\"📦 Lockfile update PR (${{ github.repository }}): ${{ steps.cpr.outputs.pull-request-url }}\"}" + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}