From 25f8db99e3f19d62a91cba1a014eb5f12c2651c6 Mon Sep 17 00:00:00 2001 From: Olblak Date: Thu, 13 Mar 2025 15:44:28 +0100 Subject: [PATCH 1/2] fix(autodiscovery: golang parameter table) Signed-off-by: Olblak --- content/en/docs/plugins/autodiscovery/golang.adoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/en/docs/plugins/autodiscovery/golang.adoc b/content/en/docs/plugins/autodiscovery/golang.adoc index 93ece4dd5..aa8af2eef 100644 --- a/content/en/docs/plugins/autodiscovery/golang.adoc +++ b/content/en/docs/plugins/autodiscovery/golang.adoc @@ -21,14 +21,14 @@ It handles golang version update and golang module version update. === Manifests ==== Parameters -{{< autodiscoveryparameters "golang/gomod" >}} +{{< autodiscoveryparameters "golang" >}} ==== Example ===== Golang update only In the following example, we want to automate minor version update of Golang, such as from "1.19" to "1.20" -If Updatecli detects a change, then it opens a new pullrequest with the propose version update. +If Updatecli detects a change, then it opens a new pull request with the propose version update. [source,yaml] ---- @@ -39,7 +39,7 @@ If Updatecli detects a change, then it opens a new pullrequest with the propose ===== Semantic version patch update only In this example, Updatecli is looking for all version that can have a patch version update. -If at least one version needs to be updated, then it opens a single pullrequest with all the version bump. +If at least one version needs to be updated, then it opens a single pull request with all the version bump. [source,yaml] ---- From 32cf64fb0bdf9a9c56d93830bd4664daabcefc1f Mon Sep 17 00:00:00 2001 From: Olblak Date: Thu, 13 Mar 2025 15:50:59 +0100 Subject: [PATCH 2/2] chore: rename golang/gomod to golang autodiscovery plugin --- .../plugins/autodiscovery/golang/updatecli.d/goonly.yaml | 2 +- .../plugins/autodiscovery/golang/updatecli.d/patchonly.yaml | 2 +- content/en/docs/plugins/autodiscovery/golang.adoc | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/assets/code_example/docs/plugins/autodiscovery/golang/updatecli.d/goonly.yaml b/assets/code_example/docs/plugins/autodiscovery/golang/updatecli.d/goonly.yaml index 1eeed6b1d..1cdcc0172 100644 --- a/assets/code_example/docs/plugins/autodiscovery/golang/updatecli.d/goonly.yaml +++ b/assets/code_example/docs/plugins/autodiscovery/golang/updatecli.d/goonly.yaml @@ -21,7 +21,7 @@ autodiscovery: scmid: default actionid: default crawlers: - golang/gomod: + golang: versionfilter: kind: semver pattern: minor diff --git a/assets/code_example/docs/plugins/autodiscovery/golang/updatecli.d/patchonly.yaml b/assets/code_example/docs/plugins/autodiscovery/golang/updatecli.d/patchonly.yaml index 7246754cf..c65d4166b 100644 --- a/assets/code_example/docs/plugins/autodiscovery/golang/updatecli.d/patchonly.yaml +++ b/assets/code_example/docs/plugins/autodiscovery/golang/updatecli.d/patchonly.yaml @@ -26,7 +26,7 @@ autodiscovery: actionid: default groupby: all crawlers: - golang/gomod: + golang: versionfilter: kind: semver pattern: patch diff --git a/content/en/docs/plugins/autodiscovery/golang.adoc b/content/en/docs/plugins/autodiscovery/golang.adoc index aa8af2eef..ae70f818a 100644 --- a/content/en/docs/plugins/autodiscovery/golang.adoc +++ b/content/en/docs/plugins/autodiscovery/golang.adoc @@ -1,7 +1,7 @@ --- -title: "Golang go.mod" +title: "Golang " description: "Discover Golang go.mod update" -lead: "kind: golang/gomod" +lead: "kind: golang" draft: false images: [] menu: @@ -15,7 +15,7 @@ plugins: == Description -The `golang/gomod` Autodiscovery plugin allows to automatically search and update go.mod files. +The `golang` autodiscovery plugin allows to automatically search and update go.mod files. It handles golang version update and golang module version update. === Manifests