From 548ab82d80b2d8ec71e0275fd133921df798409c Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 19 Oct 2024 18:33:16 +0000 Subject: [PATCH 01/13] 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 000000000..5db72dd6a --- /dev/null +++ b/renovate.json @@ -0,0 +1,6 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "config:recommended" + ] +} From 15a768ba2d34a143d4f6cabb42f9353b48f63910 Mon Sep 17 00:00:00 2001 From: eternal-flame-AD Date: Tue, 22 Oct 2024 14:44:01 -0500 Subject: [PATCH 02/13] Populate renovate.json Signed-off-by: eternal-flame-AD use custom golang version Signed-off-by: eternal-flame-AD --- renovate.json | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/renovate.json b/renovate.json index 5db72dd6a..11acc6446 100644 --- a/renovate.json +++ b/renovate.json @@ -1,6 +1,34 @@ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", "extends": [ - "config:recommended" + "config:recommended", + ":semanticCommits", + ":semanticCommitTypeAll(chore)" + ], + "labels": [ + "dependencies" + ], + "reviewers": [ + "team:gotify" + ], + "enabledManagers": [ + "gomod", + "dockerfile", + "regex" + ], + "customManagers": [ + { + "customType": "regex", + "fileMatch": [ + "^GO_VERSION$" + ], + "depTypeTemplate": "language", + "matchStrings": [ + "^(?.+)\\n" + ], + "depNameTemplate": "https://github.com/golang/go", + "autoReplaceStringTemplate": "{{{newValue}}}", + "datasourceTemplate": "golang-version" + } ] -} +} \ No newline at end of file From 0737c2cee21f220a92b020c1748d5d0a91fca81e Mon Sep 17 00:00:00 2001 From: eternal-flame-AD Date: Tue, 22 Oct 2024 15:34:21 -0500 Subject: [PATCH 03/13] Use custom. prefix for regex --- renovate.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renovate.json b/renovate.json index 11acc6446..942fc92e7 100644 --- a/renovate.json +++ b/renovate.json @@ -14,7 +14,7 @@ "enabledManagers": [ "gomod", "dockerfile", - "regex" + "custom.regex" ], "customManagers": [ { From 8d25fe215b90590bfba9b24790fd13d52a27dd3f Mon Sep 17 00:00:00 2001 From: eternal-flame-AD Date: Tue, 22 Oct 2024 15:39:08 -0500 Subject: [PATCH 04/13] group updates --- renovate.json | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/renovate.json b/renovate.json index 942fc92e7..681aebab9 100644 --- a/renovate.json +++ b/renovate.json @@ -30,5 +30,39 @@ "autoReplaceStringTemplate": "{{{newValue}}}", "datasourceTemplate": "golang-version" } + ], + "packageRules": [ + { + "matchManagers": [ + "gomod" + ], + "matchUpdateTypes": [ + "minor", + "patch" + ], + "groupName": "Bump Go dependencies", + "groupSlug": "bump-dependencies-go" + }, + { + "matchDepNames": [ + "^https://github.com/golang/go$" + ], + "matchUpdateTypes": [ + "minor", + "patch" + ], + "groupName": "Bump Go version", + "groupSlug": "bump-go-version" + }, + { + "matchDepNames": [ + "^https://github.com/golang/go$" + ], + "matchUpdateTypes": [ + "major" + ], + "groupName": "Go version major bump", + "groupSlug": "bump-go-version-major" + } ] } \ No newline at end of file From fdb494791c1da0761b6448bd68fb3cda5fe187a1 Mon Sep 17 00:00:00 2001 From: eternal-flame-AD Date: Wed, 23 Oct 2024 16:54:13 -0500 Subject: [PATCH 05/13] address suggestions Signed-off-by: eternal-flame-AD --- renovate.json | 26 ++------------------------ 1 file changed, 2 insertions(+), 24 deletions(-) diff --git a/renovate.json b/renovate.json index 681aebab9..33699f8af 100644 --- a/renovate.json +++ b/renovate.json @@ -8,11 +8,10 @@ "labels": [ "dependencies" ], - "reviewers": [ - "team:gotify" - ], + "reviewersFromCodeOwners": true, "enabledManagers": [ "gomod", + "github-actions", "dockerfile", "custom.regex" ], @@ -42,27 +41,6 @@ ], "groupName": "Bump Go dependencies", "groupSlug": "bump-dependencies-go" - }, - { - "matchDepNames": [ - "^https://github.com/golang/go$" - ], - "matchUpdateTypes": [ - "minor", - "patch" - ], - "groupName": "Bump Go version", - "groupSlug": "bump-go-version" - }, - { - "matchDepNames": [ - "^https://github.com/golang/go$" - ], - "matchUpdateTypes": [ - "major" - ], - "groupName": "Go version major bump", - "groupSlug": "bump-go-version-major" } ] } \ No newline at end of file From 920cf557751054471b581f01d17332ab7343a45d Mon Sep 17 00:00:00 2001 From: eternal-flame-AD Date: Tue, 29 Oct 2024 16:42:12 -0500 Subject: [PATCH 06/13] Track go version to gotify/build Signed-off-by: eternal-flame-AD --- renovate.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/renovate.json b/renovate.json index 33699f8af..e16521962 100644 --- a/renovate.json +++ b/renovate.json @@ -25,9 +25,10 @@ "matchStrings": [ "^(?.+)\\n" ], - "depNameTemplate": "https://github.com/golang/go", - "autoReplaceStringTemplate": "{{{newValue}}}", - "datasourceTemplate": "golang-version" + "extractVersionTemplate": "^v(?.+)$", + "depNameTemplate": "https://github.com/gotify/build", + "autoReplaceStringTemplate": "{{{replace '^v(.+)$' '$1' newValue}}}", + "datasourceTemplate": "github-tags" } ], "packageRules": [ From 74b54e2c2302ab036e93d8a4cb57530c83615ca3 Mon Sep 17 00:00:00 2001 From: eternal-flame-AD Date: Tue, 29 Oct 2024 16:53:17 -0500 Subject: [PATCH 07/13] simulate stale GO_VERSION Signed-off-by: eternal-flame-AD --- GO_VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GO_VERSION b/GO_VERSION index 2a0ba77cc..57807d6d0 100644 --- a/GO_VERSION +++ b/GO_VERSION @@ -1 +1 @@ -1.22.4 +1.22.0 From bfac36630ee53eba502f0bc7b0b0239eb6a4eecb Mon Sep 17 00:00:00 2001 From: eternal-flame-AD Date: Tue, 29 Oct 2024 16:54:20 -0500 Subject: [PATCH 08/13] fix depName Signed-off-by: eternal-flame-AD --- renovate.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renovate.json b/renovate.json index e16521962..469913053 100644 --- a/renovate.json +++ b/renovate.json @@ -26,7 +26,7 @@ "^(?.+)\\n" ], "extractVersionTemplate": "^v(?.+)$", - "depNameTemplate": "https://github.com/gotify/build", + "depNameTemplate": "gotify/build", "autoReplaceStringTemplate": "{{{replace '^v(.+)$' '$1' newValue}}}", "datasourceTemplate": "github-tags" } From ea7fe82e96569a3039f3d21cc3ae8b43598bbebf Mon Sep 17 00:00:00 2001 From: eternal-flame-AD Date: Tue, 29 Oct 2024 16:56:25 -0500 Subject: [PATCH 09/13] Revert "simulate stale GO_VERSION" This reverts commit 74b54e2c2302ab036e93d8a4cb57530c83615ca3. --- GO_VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GO_VERSION b/GO_VERSION index 57807d6d0..2a0ba77cc 100644 --- a/GO_VERSION +++ b/GO_VERSION @@ -1 +1 @@ -1.22.0 +1.22.4 From 4a633e3b78e9472384e78e5391e87fdb779f4ca5 Mon Sep 17 00:00:00 2001 From: eternal-flame-AD Date: Tue, 29 Oct 2024 16:57:41 -0500 Subject: [PATCH 10/13] simulate outdated condition Signed-off-by: eternal-flame-AD --- GO_VERSION | 2 +- renovate.json | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/GO_VERSION b/GO_VERSION index 2a0ba77cc..3eefcb9dd 100644 --- a/GO_VERSION +++ b/GO_VERSION @@ -1 +1 @@ -1.22.4 +1.0.0 diff --git a/renovate.json b/renovate.json index 469913053..d8114f1d3 100644 --- a/renovate.json +++ b/renovate.json @@ -15,6 +15,10 @@ "dockerfile", "custom.regex" ], + "baseBranches": [ + "main", + "renovate/configure" + ], "customManagers": [ { "customType": "regex", From 995de7161b5d55a5f9c267ba6ccdbcf18f15b0de Mon Sep 17 00:00:00 2001 From: eternal-flame-AD Date: Tue, 29 Oct 2024 17:00:23 -0500 Subject: [PATCH 11/13] Revert "simulate outdated condition" This reverts commit 4a633e3b78e9472384e78e5391e87fdb779f4ca5. --- GO_VERSION | 2 +- renovate.json | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/GO_VERSION b/GO_VERSION index 3eefcb9dd..2a0ba77cc 100644 --- a/GO_VERSION +++ b/GO_VERSION @@ -1 +1 @@ -1.0.0 +1.22.4 diff --git a/renovate.json b/renovate.json index d8114f1d3..469913053 100644 --- a/renovate.json +++ b/renovate.json @@ -15,10 +15,6 @@ "dockerfile", "custom.regex" ], - "baseBranches": [ - "main", - "renovate/configure" - ], "customManagers": [ { "customType": "regex", From 414096e64b2eb61ec1fd41243609275dc7f86c0b Mon Sep 17 00:00:00 2001 From: eternal-flame-AD Date: Fri, 1 Nov 2024 16:24:47 -0500 Subject: [PATCH 12/13] don't match newline as version Signed-off-by: eternal-flame-AD --- renovate.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renovate.json b/renovate.json index 469913053..cbcf34446 100644 --- a/renovate.json +++ b/renovate.json @@ -23,7 +23,7 @@ ], "depTypeTemplate": "language", "matchStrings": [ - "^(?.+)\\n" + "^(?[0-9.]+)" ], "extractVersionTemplate": "^v(?.+)$", "depNameTemplate": "gotify/build", From 644aeff36d10250fab51ff9788cce0886f0dcec5 Mon Sep 17 00:00:00 2001 From: eternal-flame-AD Date: Fri, 1 Nov 2024 16:30:14 -0500 Subject: [PATCH 13/13] switch to track gotify/build Signed-off-by: eternal-flame-AD --- renovate.json | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/renovate.json b/renovate.json index cbcf34446..e13c2b348 100644 --- a/renovate.json +++ b/renovate.json @@ -25,10 +25,11 @@ "matchStrings": [ "^(?[0-9.]+)" ], - "extractVersionTemplate": "^v(?.+)$", - "depNameTemplate": "gotify/build", - "autoReplaceStringTemplate": "{{{replace '^v(.+)$' '$1' newValue}}}", - "datasourceTemplate": "github-tags" + "extractVersionTemplate": "^(?.+)-linux-amd64$", + "depNameTemplate": "docker.io/gotify/build", + "autoReplaceStringTemplate": "{{{newValue}}}", + "datasourceTemplate": "docker", + "versioningTemplate": "docker" } ], "packageRules": [