From cc13a08b3a599a8c2ea4a4c4c12c0d5a83207863 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 24 Sep 2024 14:50:36 +0000 Subject: [PATCH 1/5] Add renovate.json --- renovate.json | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 renovate.json diff --git a/renovate.json b/renovate.json new file mode 100644 index 00000000..5db72dd6 --- /dev/null +++ b/renovate.json @@ -0,0 +1,6 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "config:recommended" + ] +} From 9033e9a25ab1f10a254e236a75c1962f6759cfd7 Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Tue, 24 Sep 2024 07:57:37 -0700 Subject: [PATCH 2/5] chore: Update renovate config --- .github/renovate.json | 133 ++++++++++++++++++++++++++++++++++++++++++ renovate.json | 6 -- 2 files changed, 133 insertions(+), 6 deletions(-) create mode 100644 .github/renovate.json delete mode 100644 renovate.json diff --git a/.github/renovate.json b/.github/renovate.json new file mode 100644 index 00000000..3384b620 --- /dev/null +++ b/.github/renovate.json @@ -0,0 +1,133 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "dependencyDashboard": true, + "extends": [ + "config:best-practices", + "group:githubArtifactActions", + ":separatePatchReleases" + ], + "ignoreDeps": [ + "tektronix/python-package-ci-cd" + ], + "packageRules": [ + { + "additionalBranchPrefix": "{{#if (equals manager 'github-actions')}}gh-actions{{else}}{{categories}}{{/if}}-deps/", + "description": "Set the branch prefix and minimum release age for all updates", + "matchPackageNames": [ + "*" + ], + "minimumReleaseAge": "5 days" + }, + { + "addLabels": [ + "docker", + "dependencies" + ], + "commitMessageSuffix": " in all dependant actions", + "description": "Add docker and dependencies labels to Docker dependency updates", + "matchManagers": [ + "dockerfile" + ], + "semanticCommitScope": "docker-deps" + }, + { + "addLabels": [ + "gh-actions", + "dependencies" + ], + "description": "Add gh-actions and dependencies labels to GitHub Action dependency updates", + "matchManagers": [ + "github-actions" + ], + "semanticCommitScope": "gh-actions-deps" + }, + { + "addLabels": [ + "python", + "dependencies" + ], + "description": "Add python and dependencies labels to Python dependency updates", + "matchManagers": [ + "poetry", + "pip_requirements" + ], + "semanticCommitScope": "python-deps" + }, + { + "commitMessageSuffix": " in all dependant reusable workflows", + "description": "Add commit suffix for reusable workflows", + "matchFileNames": [ + "/_reusable-.*\\.ya?ml/" + ], + "matchManagers": [ + "github-actions" + ] + }, + { + "commitMessageSuffix": "{{#unless isGroup}} in dev workflows{{/unless}}", + "description": "Group together all dev workflow dependency updates", + "groupName": "dev workflow dependencies", + "matchFileNames": [ + "!/_reusable-.*\\.ya?ml/" + ], + "matchManagers": [ + "github-actions" + ] + }, + { + "additionalBranchPrefix": "automerge/", + "automerge": true, + "description": "Automatically merge all patch and digest updates", + "matchUpdateTypes": [ + "digest", + "patch" + ] + }, + { + "additionalBranchPrefix": "automerge/", + "automerge": true, + "description": "Allow automatically merging minor updates of certain packages", + "matchPackageNames": [ + "certifi", + "trove-classifiers", + "idna" + ], + "matchUpdateTypes": [ + "minor" + ] + }, + { + "description": "Group together all pydantic dependencies", + "groupName": "pydantic dependencies", + "matchPackageNames": [ + "/^pydantic/" + ] + }, + { + "additionalBranchPrefix": "{{#if (equals manager 'github-actions')}}gh-actions{{else}}{{categories}}{{/if}}-deps/", + "automerge": false, + "description": "Group together all python-semantic-release dependencies", + "groupName": "python-semantic-release dependencies", + "matchPackageNames": [ + "/^python-semantic-release/" + ] + }, + { + "commitMessageSuffix": "{{#if (equals parentDir '')}} for {{#each depTypes}}{{replace '-' '/' this}}{{#unless @last}} and {{/unless}}{{/each}}{{else}} in all dependant actions {{/if}}", + "description": "Add commit suffix for the dependency group (or parent directory)", + "matchFileNames": [ + "pyproject.toml", + "**/requirements.txt" + ], + "matchManagers": [ + "poetry", + "pip_requirements" + ], + "matchPackageNames": [ + "*" + ] + } + ], + "platformCommit": "enabled", + "prHourlyLimit": 5 +} diff --git a/renovate.json b/renovate.json deleted file mode 100644 index 5db72dd6..00000000 --- a/renovate.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "extends": [ - "config:recommended" - ] -} From 940f47af1d5df0b308bef1af347eafea21983e7d Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Tue, 24 Sep 2024 07:59:49 -0700 Subject: [PATCH 3/5] chore: Add pre-commit labels for dependency updates --- .github/renovate.json | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/renovate.json b/.github/renovate.json index 3384b620..5ee0bfdd 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -4,7 +4,8 @@ "extends": [ "config:best-practices", "group:githubArtifactActions", - ":separatePatchReleases" + ":separatePatchReleases", + ":enablePreCommit" ], "ignoreDeps": [ "tektronix/python-package-ci-cd" @@ -53,6 +54,17 @@ ], "semanticCommitScope": "python-deps" }, + { + "addLabels": [ + "pre-commit", + "dependencies" + ], + "description": "Add pre-commit and dependencies labels to pre-commit dependency updates", + "matchManagers": [ + "pre-commit" + ], + "semanticCommitScope": "pre-commit-deps" + }, { "commitMessageSuffix": " in all dependant reusable workflows", "description": "Add commit suffix for reusable workflows", From d0f6ec4cf4803b09480717eec611d43c60e3f0c4 Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Tue, 24 Sep 2024 08:04:42 -0700 Subject: [PATCH 4/5] chore: Update renovate config --- .github/renovate.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/renovate.json b/.github/renovate.json index 5ee0bfdd..4a103572 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -102,7 +102,8 @@ "matchPackageNames": [ "certifi", "trove-classifiers", - "idna" + "idna", + "renovatebot/pre-commit-hooks" ], "matchUpdateTypes": [ "minor" From 380d9f7a389a388d7a123ed51024ef83d3696848 Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Tue, 24 Sep 2024 08:08:06 -0700 Subject: [PATCH 5/5] chore: Enable automerge for all pre-commit dependencies --- .github/renovate.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/renovate.json b/.github/renovate.json index 4a103572..acbe4c74 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -59,6 +59,8 @@ "pre-commit", "dependencies" ], + "additionalBranchPrefix": "automerge/", + "automerge": true, "description": "Add pre-commit and dependencies labels to pre-commit dependency updates", "matchManagers": [ "pre-commit" @@ -102,8 +104,7 @@ "matchPackageNames": [ "certifi", "trove-classifiers", - "idna", - "renovatebot/pre-commit-hooks" + "idna" ], "matchUpdateTypes": [ "minor"