一封電郵通知一個依賴套件 PR,會讓團隊逐漸忽略所有通知
One email per dependency PR teaches your team to ignore all of them
依賴套件更新若每個 PR 都發一封電郵,團隊可能因通知格式相同而逐漸不再閲讀,連已遭利用漏洞的修復通知也可能被忽略。文章建議合併例行的 minor 和 patch 更新、讓安全修復即時且獨立通知,並以每週摘要列出已合併、待處理和失敗項目。Versyka 本月改為每批修復發一封電郵和一則 Slack 訊息,列出所有 PR。
Posted on Nov 24 AI-assisted
Stop sending 1 email per Dependabot PR. Your team quit reading. Not because they're careless. Because the inbox taught them that every one of these emails looks the same.
A routine patch bump and a fix for an actively exploited vulnerability arrive with the same sender, the same subject format and the same layout. After the thirtieth, both get archived.
The fix isn't fewer updates. It's fewer notices.
Keep updating often. Change what reaches a person.
1. Group the routine ones
Dependabot can put minor and patch updates into one pull request:
# .github/dependabot.yml
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
groups:
minor-and-patch:
update-types: ["minor", "patch"]
One PR a week instead of fifteen.
2. Keep security fixes separate and immediate
They're the reason you have a bot at all. They should arrive on their own, right away, and look different from the routine ones.
3. Put everything else in one summary
A weekly digest: what merged, what's waiting, what failed. Read in two minutes, on Monday.
The test
Ask your team: "When did you last open a dependency email?" If nobody remembers, the notices aren't working, however many there are.
What we changed in Versyka this month
- One email and one Slack message per batch of fixes, listing every pull request, instead of one each.
- Version bumps that auto-merge send nothing; they're listed in the weekly summary.
- If you prefer, one Slack message per pull request is still a setting.
How many bot emails did you archive without reading this week?
來源:DEV Community · dev.to