From 439b43abfb680d5515248388e64654a01aa640e9 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Sun, 13 Aug 2023 15:31:09 +0200 Subject: [PATCH 1/2] feat(tool): Generate dependabot config Signed-off-by: jld3103 --- tool/generate-dependabot.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 tool/generate-dependabot.sh diff --git a/tool/generate-dependabot.sh b/tool/generate-dependabot.sh new file mode 100755 index 00000000..26932cb4 --- /dev/null +++ b/tool/generate-dependabot.sh @@ -0,0 +1,27 @@ +#!/bin/bash +set -euxo pipefail +cd "$(dirname "$0")/.." + +output="version: 2 +updates:" + +function add_update() { + package_ecosystem="$1" + path="$2" + + output+=" + - package-ecosystem: \"$package_ecosystem\" + directory: \"$path\" + schedule: + interval: \"daily\" + labels: + - \"dependencies\"" +} + +add_update github-actions / +add_update gradle /packages/app/android +for path in $(melos list --relative --parsable); do + add_update pub "/$path" +done + +echo "$output" > .github/dependabot.yml From 01e8b2746139d20479e5df678a7f887d0c271441 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Sun, 13 Aug 2023 15:31:32 +0200 Subject: [PATCH 2/2] fix(tool): Fix dependabot config Signed-off-by: jld3103 --- .github/dependabot.yml | 64 ++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 62 insertions(+), 2 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 3f88c646..42d2ab18 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -7,13 +7,73 @@ updates: labels: - "dependencies" - package-ecosystem: "gradle" - directory: "/" + directory: "/packages/app/android" schedule: interval: "daily" labels: - "dependencies" - package-ecosystem: "pub" - directory: "/" + directory: "/packages/app" + schedule: + interval: "daily" + labels: + - "dependencies" + - package-ecosystem: "pub" + directory: "/packages/dynamite/dynamite" + schedule: + interval: "daily" + labels: + - "dependencies" + - package-ecosystem: "pub" + directory: "/packages/dynamite/dynamite_runtime" + schedule: + interval: "daily" + labels: + - "dependencies" + - package-ecosystem: "pub" + directory: "/packages/file_icons" + schedule: + interval: "daily" + labels: + - "dependencies" + - package-ecosystem: "pub" + directory: "/packages/neon/neon" + schedule: + interval: "daily" + labels: + - "dependencies" + - package-ecosystem: "pub" + directory: "/packages/neon/neon_files" + schedule: + interval: "daily" + labels: + - "dependencies" + - package-ecosystem: "pub" + directory: "/packages/neon/neon_news" + schedule: + interval: "daily" + labels: + - "dependencies" + - package-ecosystem: "pub" + directory: "/packages/neon/neon_notes" + schedule: + interval: "daily" + labels: + - "dependencies" + - package-ecosystem: "pub" + directory: "/packages/neon/neon_notifications" + schedule: + interval: "daily" + labels: + - "dependencies" + - package-ecosystem: "pub" + directory: "/packages/nextcloud" + schedule: + interval: "daily" + labels: + - "dependencies" + - package-ecosystem: "pub" + directory: "/packages/sort_box" schedule: interval: "daily" labels: