Temporarily added back method that is used by module discovery plugins. This method should be moved to BlazarBase
@@ -90,6 +90,10 @@ public class GitHubHelper {
return new CommitInfo(current, previous, newCommits, truncated);
}
+ public Optional<BuildConfig> getCurrentConfigOnBranch(String path, GitInfo gitInfo) throws IOException {
+ return configFor(path, repositoryFor(gitInfo), gitInfo);
+ }
+
public Optional<BuildConfig> configAtSha(String path, GitInfo gitInfo, String sha) throws IOException {
GHContent fileContent = repositoryFor(gitInfo).getFileContent(path, sha);
return Optional.of(mapper.readValue(yamlFactory.createParser(fileContent.getContent()), BuildConfig.class));
