• Johan Brandhorst's avatar
    Update BranchesService Methods to Conform to v4 API (#157) · 5cbbc607
    Johan Brandhorst authored
    * CI: always test on the latest bugfix Go releases (#154)
    
    * Remove unnecessary fmt.Sprintf call (#153)
    
    * Fix typo in user 404 error (#155)
    
    * Update BranchesService Methods.
    
    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.
    
    * Restore API doc links
    5cbbc607
branches.go 6.98 KB