Fix GetCombinedStatus() (#470) #472

Merged
lunny merged 1 commits from 6543/go-sdk:backport_470-GetCombinedStatus into release/v0.13 2020-12-17 13:49:52 +00:00

1 Commits

Author SHA1 Message Date
Norwin
65de8747f7
Fix GetCombinedStatus() (#470)
All checks were successful
continuous-integration/drone/pr Build is passing
fix broken GetCombinedStatus

weirdly enough, gitea API responds to .../status properly, if ref has a status.
but if there is no status, an empty response is returned.
../statuses handles both correctly.. 🙃

fix ListStatuses

rename sha to ref and use jsonHeader on GetCombinedStatus

Add Tests

enable tests for GetCombinedStatus()

next fix

final fix

Co-authored-by: Norwin Roosen <git@nroo.de>
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: #470
Reviewed-by: 6543 <6543@obermui.de>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-Authored-By: Norwin <noerw@noreply.gitea.io>
Co-Committed-By: Norwin <noerw@noreply.gitea.io>
2020-12-17 11:40:34 +01:00