13d2d23dfc
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: https://gitea.com/gitea/go-sdk/pulls/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>
20 lines
893 B
Markdown
20 lines
893 B
Markdown
# 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.
|
|
|
|
<!-- toc -->
|
|
|
|
- [Changed Struct Fields (#503) (#520)](#changed-struct-fields)
|
|
|
|
<!-- tocstop -->
|
|
|
|
## 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:
|
|
- [#503 Drop deprecations](https://gitea.com/gitea/go-sdk/pulls/503)
|
|
- [#520 Introduce NotifySubjectState](https://gitea.com/gitea/go-sdk/pulls/520)
|