• Johan Brandhorst's avatar
    Update BranchesService Methods. (#156) · b79e5bf6
    Johan Brandhorst authored
    This change breaks backwards compatibility.
    
    The BranchesService methods were almost all inconsistent with other Services and not supplying all available options. Also updated all documentation links.
    
    The Branch struct now includes all properties exported by the v3 API.
    ListBranches takes a new ListBranchesOptions struct for pagination.
    Added the ability to configure the branch protection in line with API documentation.
    Added a new DeleteMergedBranches which is part of the branches page.
    b79e5bf6
branches.go 7.35 KB