From 5f5deb060e665a0e315f2ae8479d8cf59a37a9c6 Mon Sep 17 00:00:00 2001 From: Patrick Roy Date: Mon, 29 Jan 2024 16:35:47 +0000 Subject: [PATCH] Add default dependabot configurations The intention with these is that crates including rust-vmm-ci as a submodule will be able to copy either the monthly or weekly schedule to their repository's .github/dependabot.yml. Sadly, it is not possible to automatically keep these in-sync with upstream, as dependabot does not support symlinking the dependabot.yml file into a submodule. However, we expect updates to be rare enough for this to not be a practical problem. Signed-off-by: Patrick Roy --- dependabot-monthly.yml | 25 +++++++++++++++++++++++++ dependabot-weekly.yml | 27 +++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 dependabot-monthly.yml create mode 100644 dependabot-weekly.yml diff --git a/dependabot-monthly.yml b/dependabot-monthly.yml new file mode 100644 index 0000000..ba49669 --- /dev/null +++ b/dependabot-monthly.yml @@ -0,0 +1,25 @@ +version: 2 +updates: + +# A monthly update of the rust-vmm-ci submodule +- package-ecosystem: gitsubmodule + directory: "/" + schedule: + interval: monthly + open-pull-requests-limit: 1 + +# A monthly update to rust dependencies. These will be grouped, +# e.g. one PR will contains updates for all dependencies. +- package-ecosystem: cargo + directory: "/" + schedule: + interval: monthly + open-pull-requests-limit: 1 + # Make it also update transitive dependencies in Cargo.lock + allow: + - dependency-type: "all" + # Group all available updates into a group called "rust-dependencies" + groups: + rust-dependencies: + patterns: + - "*" diff --git a/dependabot-weekly.yml b/dependabot-weekly.yml new file mode 100644 index 0000000..973292a --- /dev/null +++ b/dependabot-weekly.yml @@ -0,0 +1,27 @@ +version: 2 +updates: + +# A weekly update of the rust-vmm-ci submodule +- package-ecosystem: gitsubmodule + directory: "/" + schedule: + interval: weekly + day: monday + open-pull-requests-limit: 1 + +# A weekly update to rust dependencies. These will be grouped, +# e.g. one PR will contains updates for all dependencies. +- package-ecosystem: cargo + directory: "/" + schedule: + interval: weekly + day: monday + open-pull-requests-limit: 1 + # Make it also update transitive dependencies in Cargo.lock + allow: + - dependency-type: "all" + # Group all available updates into a group called "rust-dependencies" + groups: + rust-dependencies: + patterns: + - "*"