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 93ece4dd5..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,20 +15,20 @@ 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 ==== 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] ----