Skip to content

Commit

Permalink
Use empty configuration when not available upstream (#48)
Browse files Browse the repository at this point in the history
If Telefonistka is connected to a repository that does not have a
configuration file it currently fails.

This change will use an empty configuration file for such cases, and
only log the error.
  • Loading branch information
hnnsgstfssn authored Jan 16, 2025
1 parent ace4d1b commit aa82fe0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/pkg/githubapi/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -1294,7 +1294,7 @@ func GetInRepoConfig(ghPrClientDetails GhPrClientDetails, defaultBranch string)
inRepoConfigFileContentString, _, err := GetFileContent(ghPrClientDetails, defaultBranch, "telefonistka.yaml")
if err != nil {
ghPrClientDetails.PrLogger.Errorf("Could not get in-repo configuration: err=%s\n", err)
return nil, err
inRepoConfigFileContentString = ""
}
c, err := cfg.ParseConfigFromYaml(inRepoConfigFileContentString)
if err != nil {
Expand Down

0 comments on commit aa82fe0

Please sign in to comment.