go-sdk/docs/migrate-v0.14-to-v0.15.md
6543 13d2d23dfc Update Structs (#524)
Update gitea structs to [365c4e9316bbcc8bdf9cf68ef237bf18ae8db315](365c4e9316) state.

use:
`git log --name-only --pretty=oneline --full-index v1.14.0..HEAD | grep -vE '^[0-9a-f]{40} ' | sort | uniq | grep ^modules/structs`
and
`git diff --full-index v1.13.0..HEAD -- modules/structs`
if you like to check yourselve

Reviewed-on: gitea/go-sdk#524
Reviewed-by: Norwin <noerw@noreply.gitea.io>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: 6543 <6543@obermui.de>
Co-committed-by: 6543 <6543@obermui.de>
2021-07-01 23:10:21 +08:00

893 B

Migration Guide: v0.14 to v0.15

v0.15.0 introduces a number of api 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.

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: