File: migrate-v0.14-to-v0.15.md

package info (click to toggle)
golang-code-gitea-sdk 0.17.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 760 kB
  • sloc: makefile: 107
file content (20 lines) | stat: -rw-r--r-- 876 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# 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.

<!-- 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)