From 4c0e5650381fecb3921454ed1a625019d681b40f Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 17 Oct 2022 19:15:05 +0000 Subject: [PATCH] chore(deps): add renovate.json Signed-off-by: Chris Evich --- .github/renovate.json5 | 70 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 .github/renovate.json5 diff --git a/.github/renovate.json5 b/.github/renovate.json5 new file mode 100644 index 00000000..704e7d22 --- /dev/null +++ b/.github/renovate.json5 @@ -0,0 +1,70 @@ +/* + Renovate is a service similar to GitHub Dependabot, but with + (fantastically) more configuration options. So many options + in fact, if you're new I recommend glossing over this cheat-sheet + prior to the official documentation: + + https://www.augmentedmind.de/2021/07/25/renovate-bot-cheat-sheet + + Configuration Update/Change Procedure: + 1. Make changes + 2. Manually validate changes (from repo-root): + + podman run -it \ + -v ./.github/renovate.json5:/usr/src/app/renovate.json5:z \ + docker.io/renovate/renovate:latest \ + renovate-config-validator + 3. Commit. + + Configuration Reference: + https://docs.renovatebot.com/configuration-options/ + + Monitoring Dashboard: + https://app.renovatebot.com/dashboard#github/containers + + Note: The Renovate bot will create/manage it's business on + branches named 'renovate/*'. Otherwise, and by + default, the only the copy of this file that matters + is the one on the `main` branch. No other branches + will be monitored or touched in any way. +*/ + +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + + /************************************************* + ****** Global/general configuration options ***** + *************************************************/ + + // Re-use predefined sets of configuration options to DRY + "extends": [ + // https://github.com/containers/automation/blob/main/renovate/defaults.json5 + "github>containers/automation//renovate/defaults.json5" + ], + + /************************************************* + *** Repository-specific configuration options *** + *************************************************/ + + // Don't leave dep. update. PRs "hanging", assign them to people. + "assignees": ["containers/image-maintainers"], // same for skopeo + + /************************************************* + ***** Golang-specific configuration options ***** + *************************************************/ + + "golang": { + // N/B: LAST MATCHING RULE WINS + // https://docs.renovatebot.com/configuration-options/#packagerules + "packageRules": [ + // Package version retraction (https://go.dev/ref/mod#go-mod-file-retract) + // is broken in Renovate + // ref: https://github.com/renovatebot/renovate/issues/13012 + { + "matchPackageNames": ["github.com/containers/common"], + // Both v1.0.0 and v1.0.1 should be ignored. + "allowedVersions": "!/v((1.0.0)|(1.0.1))$/" + }, + ], + }, +}