Skip to content

Commit

Permalink
fix: detect github node project wrong (#588)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhujian7 authored and caicloud-bot committed Oct 12, 2018
1 parent c272496 commit 9d4c592
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/scm/provider/github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ func (g *Github) GetTemplateType(repo string) (string, error) {
return api.GradleRepoType, nil
}
if language == api.JavaScriptRepoType && strings.Contains(*d.Name, "package.json") {
return api.MavenRepoType, nil
return api.NodeRepoType, nil
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/worker/junit/report.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func findAllJUnitXmlFiles(root string) []string {
if _, err := os.Stat(root); os.IsNotExist(err) {
return nil
}
log.Error("--- root:", root)

var files []string
filepath.Walk(root, func(path string, f os.FileInfo, _ error) error {
if !f.IsDir() {
Expand Down

0 comments on commit 9d4c592

Please sign in to comment.