From 43b376e4d0e3949a7dadfb7c78c4632fae23f55a Mon Sep 17 00:00:00 2001
From: Kagami Sascha Rosylight <saschanaz@outlook.com>
Date: Sat, 12 Aug 2023 13:11:20 +0200
Subject: [PATCH] fix(dependabot): do not list each workspace item

---
 .github/dependabot.yml | 27 +++++++--------------------
 1 file changed, 7 insertions(+), 20 deletions(-)

diff --git a/.github/dependabot.yml b/.github/dependabot.yml
index 510a0719ec..27bbeb8b4e 100644
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -10,28 +10,15 @@ updates:
   schedule:
     interval: daily
   open-pull-requests-limit: 100
+
+# Add only the root, not each workspace item
+# https://github.com/dependabot/dependabot-core/issues/4993#issuecomment-1289133027
 - package-ecosystem: npm
   directory: "/"
   schedule:
     interval: daily
   open-pull-requests-limit: 100
-- package-ecosystem: npm
-  directory: "/packages/backend"
-  schedule:
-    interval: daily
-  open-pull-requests-limit: 100
-- package-ecosystem: npm
-  directory: "/packages/frontend"
-  schedule:
-    interval: daily
-  open-pull-requests-limit: 100
-- package-ecosystem: npm
-  directory: "/packages/sw"
-  schedule:
-    interval: daily
-  open-pull-requests-limit: 100
-- package-ecosystem: npm
-  directory: "/packages/misskey-js"
-  schedule:
-    interval: daily
-  open-pull-requests-limit: 100
+  groups:
+    swc:
+      patterns:
+        - "@swc/*"