6b6fdd91ce
close #271 * [x] add check if user/repo-name is empty * [x] use net/url for links to encode Co-authored-by: Andrew Thornton <art27@cantab.net> Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/273 Reviewed-by: Andrew Thornton <art27@cantab.net> Reviewed-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: 6543 <6543@obermui.de> Co-committed-by: 6543 <6543@obermui.de>
1.5 KiB
1.5 KiB
Migration Guide: v0.13 to v0.14
v0.14.0 introduces a number of breaking changes, throu it should not be hard to migrate.
Just follow this guid and if issues still ocure ask for help on discord or
feel free to create an issue.
- Removed Functions (#467)
- Renamed Functions (#467)
- New Optional Fields (#486)
- Arguemnts are escapted by the SDK iteslve now (#273)
Removed Functions
- for GetUserTrackedTimes and GetRepoTrackedTimes use ListRepoTrackedTimes with specific options set
Pulls:
Renamed Functions
- ListTrackedTimes is now ListIssueTrackedTimes
Pulls:
New Optional Fields
The EditUserOption
struct has gained several new Optional fields.
For example Email type changed from string
to *string
.
The easiest migration path is, to wrap your options with: OptionalString(), OptionalBool() and OptionalInt64()
Pulls:
Escape Function Arguments
String arguments like user
, repo
, tag
, ... are now url/path/query escapted as they need.
If you had issues and did escape arguments by yourselve you have to remove this now.