Skip to content

Commit 9c21510

Browse files
committed
update renovate pattern
1 parent c0cdcaf commit 9c21510

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

pkg/makefile/consts.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const (
1616
"customType": "regex",
1717
"description": "Update toolbox _VERSION variables in Makefile",
1818
"fileMatch": [
19-
"Makefile"
19+
"^Makefile$"
2020
],
2121
"matchStrings": [
2222
"# renovate: packageName=(?<packageName>.+?)\\s+.+?_VERSION \\?= (?<currentValue>.+?)\\s"

pkg/makefile/make_test.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,13 @@ var _ = Describe("Make", func() {
7878
Ω(out.String() + "\n").Should(Equal(readFile(testDataDir, "Makefile.tools.go.expected")))
7979
})
8080
})
81+
Context("PrintRenovateConfig", func() {
82+
It("should generate a correct output", func() {
83+
out := &bytes.Buffer{}
84+
PrintRenovateConfig(out)
85+
Ω(out.String()).Should(Equal(renovateConfig))
86+
})
87+
})
8188
})
8289

8390
func readFile(path ...string) string {

renovate.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"customType": "regex",
77
"description": "Update toolbox _VERSION variables in Makefile",
88
"fileMatch": [
9-
"Makefile"
9+
"^Makefile$"
1010
],
1111
"matchStrings": [
1212
"# renovate: packageName=(?<packageName>.+?)\\s+.+?_VERSION \\?= (?<currentValue>.+?)\\s"

0 commit comments

Comments
 (0)