Skip to content

Commit

Permalink
✨ dependency-update-tool: detect GitLab Renovate config files (#3823)
Browse files Browse the repository at this point in the history
also organize the list in order of appearance on website.
this makes it easier to compare.

Signed-off-by: Spencer Schrock <sschrock@google.com>
  • Loading branch information
spencerschrock committed Jan 29, 2024
1 parent 3b94825 commit 301208c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
13 changes: 10 additions & 3 deletions checks/raw/dependency_update_tool.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,16 @@ var checkDependencyFileExists fileparser.DoWhileTrueOnFilename = func(name strin
},
})

// https://docs.renovatebot.com/configuration-options/
case ".github/renovate.json", ".github/renovate.json5", ".renovaterc.json", "renovate.json",
"renovate.json5", ".renovaterc":
// https://docs.renovatebot.com/configuration-options/
case "renovate.json",
"renovate.json5",
".github/renovate.json",
".github/renovate.json5",
".gitlab/renovate.json",
".gitlab/renovate.json5",
".renovaterc",
".renovaterc.json",
".renovaterc.json5":
*ptools = append(*ptools, checker.Tool{
Name: "RenovateBot",
URL: asPointer("https://github.com/renovatebot/renovate"),
Expand Down
12 changes: 12 additions & 0 deletions checks/raw/dependency_update_tool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,18 @@ func Test_checkDependencyFileExists(t *testing.T) {
want: true,
wantErr: false,
},
{
name: ".gitlab/renovate.json",
path: ".gitlab/renovate.json",
want: true,
wantErr: false,
},
{
name: ".gitlab/renovate.json5",
path: ".gitlab/renovate.json5",
want: true,
wantErr: false,
},
{
name: ".renovaterc.json",
path: ".renovaterc.json",
Expand Down

0 comments on commit 301208c

Please sign in to comment.