go-sdk/docs/migrate-v0.13-to-v0.14.md
6543 8947cd3b00 Update Structs (#486)
* FileOptions: add Signoff
* Commit: add CommitAffectedFiles
* BranchProtection, CreateBranchProtectionOption, EditBranchProtectionOption: add BlockOnOfficialReviewRequests
* MigrateRepoOption: add MirrorInterval & enable gogs as source option
* EditRepoOption: Add new fields
* Repository: Add new fields & related structs
* PullReview: Add fields
* StopWatch: Add new fields
* EditIssueOption: Add option to delete Deadline
* EditUserOption: lot of options got optional

close #479

Reviewed-on: gitea/go-sdk#486
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
Co-committed-by: 6543 <6543@obermui.de>
2021-02-14 03:24:00 +08:00

1.2 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

  • 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: