forgejo-sdk/docs/migrate-v0.14-to-v0.15.md
6543 ddc879e297 Add "drop deprecated Assignee hint to Migration Guide (#523)
as title (should have been added in #503)

Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/523
Reviewed-by: techknowlogick <techknowlogick@gitea.io>
Reviewed-by: Norwin <noerw@noreply.gitea.io>
Co-authored-by: 6543 <6543@obermui.de>
Co-committed-by: 6543 <6543@obermui.de>
2021-07-01 18:43:00 +08:00

19 lines
808 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`.
Pulls:
- [#503 Drop deprecations](https://gitea.com/gitea/go-sdk/pulls/503)
- [#520 Introduce NotifySubjectState](https://gitea.com/gitea/go-sdk/pulls/520)