Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore(ci): notify when dependency changes (#458)

qsliu6c0f5e36b714
diff --git a/.github/workflows/notify-dependency-changes.yml b/.github/workflows/notify-dependency-changes.yml
new file mode 100644
index 0000000000..9309c00b4e
--- /dev/null
+++ b/.github/workflows/notify-dependency-changes.yml
@@ -0,0 +1,19 @@
+name: Change dependency needs admin approval
+
+on:
+ pull_request:
+ paths:
+ - "frontend/package.json"
+ - "go.mod"
+
+jobs:
+ request-dependency-reviewers:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - env:
+ PR_NUMBER: ${{ github.event.pull_request.number }}
+ REVIEWERS: ${{ secrets.DEPENDENCY_REVIEWERS }}
+ run: |
+ echo ${{ secrets.GITHUB_TOKEN }} | gh auth login --with-token
+ gh pr edit $PR_NUMBER --add-reviewer $REVIEWERS