Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Recognize scala-steward as dependency update tool #4130

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions checks/raw/dependency_update_tool.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,25 @@ var checkDependencyFileExists fileparser.DoWhileTrueOnFilename = func(name strin
},
},
})
// https://github.com/scala-steward-org/scala-steward/blob/main/docs/repo-specific-configuration.md
case ".scala-steward.conf",
"scala-steward.conf",
".github/.scala-steward.conf",
".github/scala-steward.conf",
".config/.scala-steward.conf",
".config/scala-steward.conf":
*ptools = append(*ptools, checker.Tool{
Name: "scala-steward",
URL: asPointer("https://github.com/scala-steward-org/scala-steward"),
Desc: asPointer("Works with Maven, Mill, sbt, and Scala CLI."),
Files: []checker.File{
{
Path: name,
Type: finding.FileTypeSource,
Offset: checker.OffsetDefault,
},
},
})
}

// Continue iterating, even if we have found a tool.
Expand Down
36 changes: 36 additions & 0 deletions checks/raw/dependency_update_tool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,42 @@ func Test_checkDependencyFileExists(t *testing.T) {
want: true,
wantErr: false,
},
{
name: ".scala-steward.conf",
path: ".scala-steward.conf",
want: true,
wantErr: false,
},
{
name: "scala-steward.conf",
path: "scala-steward.conf",
want: true,
wantErr: false,
},
{
name: ".github/.scala-steward.conf",
path: ".github/.scala-steward.conf",
want: true,
wantErr: false,
},
{
name: ".github/scala-steward.conf",
path: ".github/scala-steward.conf",
want: true,
wantErr: false,
},
{
name: ".config/.scala-steward.conf",
path: ".config/.scala-steward.conf",
want: true,
wantErr: false,
},
{
name: ".config/scala-steward.conf",
path: ".config/scala-steward.conf",
want: true,
wantErr: false,
},
{
name: ".lift.toml",
path: ".lift.toml",
Expand Down
2 changes: 2 additions & 0 deletions docs/checks/dependencyupdatetool/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* Detection is based on the configuration files listed [here](https://docs.renovatebot.com/configuration-options/)
* [PyUp](https://github.com/pyupio/pyup)
* Detection based on a `.pyup.yml` file
* [scala-steward](https://github.com/scala-steward-org/scala-steward)
* Detection is based on the configuration files listed [here](https://github.com/scala-steward-org/scala-steward/blob/main/docs/repo-specific-configuration.md)

# Add Support

Expand Down
Loading