Skip to content

Commit

Permalink
🐛 Fix Dependabot check to accept .yaml file extension
Browse files Browse the repository at this point in the history
  • Loading branch information
behnazh-w committed Feb 3, 2022
1 parent 5e1fd52 commit 30b489a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion checks/raw/dependency_update_tool.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func checkDependencyFileExists(name string, data fileparser.FileCbData) (bool, e
}

switch strings.ToLower(name) {
case ".github/dependabot.yml":
case ".github/dependabot.yml", ".github/dependabot.yaml":
*ptools = append(*ptools, checker.Tool{
Name: "Dependabot",
URL: "https://github.com/dependabot",
Expand Down
8 changes: 8 additions & 0 deletions checks/raw/dependency_update_tool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,14 @@ func TestDependencyUpdateTool(t *testing.T) {
".github/dependabot.yml",
},
},
{
name: "dependency update tool",
wantErr: false,
want: 1,
files: []string{
".github/dependabot.yaml",
},
},
{
name: "foo bar",
wantErr: false,
Expand Down

0 comments on commit 30b489a

Please sign in to comment.