Skip to content

Commit

Permalink
Merge pull request #360 from frezbo/fix/golang-version-matching
Browse files Browse the repository at this point in the history
fix: golang release version match
  • Loading branch information
suzuki-shunsuke authored Feb 4, 2023
2 parents 5938f44 + b6dab07 commit 815eaa4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion default.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@
" +(?:name|'name'|\"name\") *: +golang/go@(go)?(?<currentValue>[^'\" \\n]+)",
" +(?:name|'name'|\"name\") *: +'golang/go@(go)?(?<currentValue>[^'\" \\n]+)'",
" +(?:name|'name'|\"name\") *: +\"golang/go@(go)?(?<currentValue>[^'\" \\n]+)\""
]
],
"versioningTemplate": "regex:^(?<major>\\d+)\\.(?<minor>\\d+)\\.?(?<patch>\\d+)?$"
},
{
"datasourceTemplate": "github-releases",
Expand Down
3 changes: 2 additions & 1 deletion file.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@
" +(?:name|'name'|\"name\") *: +golang/go@(go)?(?<currentValue>[^'\" \\n]+)",
" +(?:name|'name'|\"name\") *: +'golang/go@(go)?(?<currentValue>[^'\" \\n]+)'",
" +(?:name|'name'|\"name\") *: +\"golang/go@(go)?(?<currentValue>[^'\" \\n]+)\""
]
],
"versioningTemplate": "regex:^(?<major>\\d+)\\.(?<minor>\\d+)\\.?(?<patch>\\d+)?$"
},
{
"datasourceTemplate": "github-releases",
Expand Down
3 changes: 2 additions & 1 deletion golang-go.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
" +(?:name|'name'|\"name\") *: +golang/go@(go)?(?<currentValue>[^'\" \\n]+)",
" +(?:name|'name'|\"name\") *: +'golang/go@(go)?(?<currentValue>[^'\" \\n]+)'",
" +(?:name|'name'|\"name\") *: +\"golang/go@(go)?(?<currentValue>[^'\" \\n]+)\""
]
],
"versioningTemplate": "regex:^(?<major>\\d+)\\.(?<minor>\\d+)\\.?(?<patch>\\d+)?$"
}
]
}
1 change: 1 addition & 0 deletions jsonnet/utils.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
golangGo: $.prefixRegexManager("golang/go", "(go)?") + {
extractVersionTemplate: "^go(?<version>.*)$",
datasourceTemplate: "github-tags",
versioningTemplate: "regex:^(?<major>\\d+)\\.(?<minor>\\d+)\\.?(?<patch>\\d+)?$",
},
gopls: $.prefixRegexManager("golang/tools/gopls", "gopls/") + {
packageNameTemplate: "golang/tools",
Expand Down

0 comments on commit 815eaa4

Please sign in to comment.