Drop deprecations (#503)
start v0.15.0 development Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/503 Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com> Reviewed-by: Norwin <noerw@noreply.gitea.io> Co-authored-by: 6543 <6543@obermui.de> Co-committed-by: 6543 <6543@obermui.de>
This commit is contained in:
parent
120aa6234e
commit
0599915e88
2 changed files with 8 additions and 17 deletions
|
@ -34,7 +34,7 @@ steps:
|
||||||
|
|
||||||
- name: testing
|
- name: testing
|
||||||
pull: always
|
pull: always
|
||||||
image: golang:1.14
|
image: golang:1.16
|
||||||
environment:
|
environment:
|
||||||
GOPROXY: "https://goproxy.cn"
|
GOPROXY: "https://goproxy.cn"
|
||||||
GO111MODULE: "on"
|
GO111MODULE: "on"
|
||||||
|
|
|
@ -42,9 +42,6 @@ type Issue struct {
|
||||||
Ref string `json:"ref"`
|
Ref string `json:"ref"`
|
||||||
Labels []*Label `json:"labels"`
|
Labels []*Label `json:"labels"`
|
||||||
Milestone *Milestone `json:"milestone"`
|
Milestone *Milestone `json:"milestone"`
|
||||||
// deprecated
|
|
||||||
// TODO: rm on sdk 0.15.0
|
|
||||||
Assignee *User `json:"assignee"`
|
|
||||||
Assignees []*User `json:"assignees"`
|
Assignees []*User `json:"assignees"`
|
||||||
// Whether the issue is open or closed
|
// Whether the issue is open or closed
|
||||||
State StateType `json:"state"`
|
State StateType `json:"state"`
|
||||||
|
@ -181,9 +178,6 @@ type CreateIssueOption struct {
|
||||||
Title string `json:"title"`
|
Title string `json:"title"`
|
||||||
Body string `json:"body"`
|
Body string `json:"body"`
|
||||||
Ref string `json:"ref"`
|
Ref string `json:"ref"`
|
||||||
// deprecated
|
|
||||||
// TODO: rm on sdk 0.15.0
|
|
||||||
Assignee string `json:"assignee"`
|
|
||||||
Assignees []string `json:"assignees"`
|
Assignees []string `json:"assignees"`
|
||||||
Deadline *time.Time `json:"due_date"`
|
Deadline *time.Time `json:"due_date"`
|
||||||
// milestone id
|
// milestone id
|
||||||
|
@ -225,9 +219,6 @@ type EditIssueOption struct {
|
||||||
Title string `json:"title"`
|
Title string `json:"title"`
|
||||||
Body *string `json:"body"`
|
Body *string `json:"body"`
|
||||||
Ref *string `json:"ref"`
|
Ref *string `json:"ref"`
|
||||||
// deprecated
|
|
||||||
// TODO: rm on sdk 0.15.0
|
|
||||||
Assignee *string `json:"assignee"`
|
|
||||||
Assignees []string `json:"assignees"`
|
Assignees []string `json:"assignees"`
|
||||||
Milestone *int64 `json:"milestone"`
|
Milestone *int64 `json:"milestone"`
|
||||||
State *StateType `json:"state"`
|
State *StateType `json:"state"`
|
||||||
|
|
Loading…
Reference in a new issue