dockerfile-image-update/src/main/java/com/salesforce/dockerfileimageupdate/utils/GitHubUtil.java
/**
     * Check to see if the provided {@code repo} has the {@code branchName}
     *
     * @param repo - repo to check
     * @param branchName - branchName we're looking for in {@code repo}
     * @return {@code repo} has branch with name {@code branchName}
     * @throws IOException - there was some exception that we couldn't overcome
     */
Check to see if the provided  repo has the  branchName
@param repo - repo to check
@param branchName - branchName we're looking for in  repo
@return  repo has branch with name  branchName
@throws IOException - there was some exception that we couldn't overcome
Check to see if the provided repo has the branchName @param repo - repo to check @param branchName - branchName we ' re looking for in repo @return repo has branch with name branchName @throws IOException - there was some exception that we couldn ' t overcome
public boolean repoHasBranch(GHRepository repo, String branchName) throws IOException {
        try {
            GHBranch branch = repo.getBranch(branchName);
            return branch != null;
        } catch (GHFileNotFoundException exception) {
            return false;
        }
    }
public boolean repoHasBranch ( GHRepository repo , String branchName ) throws IOException { try { GHBranch branch = repo . getBranch ( branchName ) ; return branch != null ; } catch ( GHFileNotFoundException exception ) { return false ; } }
Check to see if the provided {@code repo} has the {@code branchName}
 @param repo - repo to check
 @param branchName - branchName we're looking for in {@code repo}
 @return {@code repo} has branch with name {@code branchName}
 @throws IOException - there was some exception that we couldn't overcome
Check to see if the provided { @code repo } has the { @code branchName } @param repo - repo to check @param branchName - branchName we ' re looking for in { @code repo } @return { @code repo } has branch with name { @code branchName } @throws IOException - there was some exception that we couldn ' t overcome