forked from gitea/go-sdk
6543
fb42ca1c8d
close #515 Reviewed-on: gitea/go-sdk#520 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, through which it should not be difficult to migrate. Just follow this guid and if you still encounter problems, 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.