go-sdk/docs/migrate-v0.14-to-v0.15.md
Norwin 3ff2c60a86 GetPullRequestDiff: add PullRequestDiffOptions param (#542)
this is for the upstream change in https://github.com/go-gitea/gitea/pull/17158

Co-authored-by: Norwin <git@nroo.de>
Reviewed-on: gitea/go-sdk#542
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: 6543 <6543@obermui.de>
Co-authored-by: Norwin <noerw@noreply.gitea.io>
Co-committed-by: Norwin <noerw@noreply.gitea.io>
2022-01-14 01:30:39 +08:00

876 B

Migration Guide: v0.14 to v0.15

v0.15.0 introduces a number of API changes, which should be simple to migrate. Just follow this guide and if you still encounter problems, ask for help on Discord or feel free to create an issue.

Changed Struct Fields

  • The State field at NotificationSubject changed from StateType to NotifySubjectState, it also contains "open", "closed" and add "merged".
  • In Issue, CreateIssueOption and EditIssueOption structs, Assignee got removed. Use Assignees.
  • Type field at CreateHookOption now use HookType instead of pure string.

Pulls: