'enabled' is obsolete so allow project to build in blazar if a .blazar.yaml file exists in the project root dir. The file can be empty, i.e. the only requirement is for the file not to contain 'disabled: true'
@@ -137,7 +137,7 @@ public class GitHubWebhookHandler {
} catch (FileNotFoundException e) {
try {
String config = gitHubHelper.contentsFor(".blazar.yaml", repository, gitInfo);
- return config.contains("enabled: true");
+ return config.contains("enabled: true") || !config.contains("disabled: true");
} catch (FileNotFoundException e1) {
return false;
}
