Drop deprecations #503

Merged
6543 merged 2 commits from 6543/go-sdk:start-0.15.0-dev into master 2021-03-30 16:36:33 +00:00
2 changed files with 8 additions and 17 deletions

View File

@ -34,7 +34,7 @@ steps:
- name: testing
pull: always
image: golang:1.14
image: golang:1.16
environment:
GOPROXY: "https://goproxy.cn"
GO111MODULE: "on"

View File

@ -42,9 +42,6 @@ type Issue struct {
Ref string `json:"ref"`
Labels []*Label `json:"labels"`
Milestone *Milestone `json:"milestone"`
// deprecated
// TODO: rm on sdk 0.15.0
Assignee *User `json:"assignee"`
Assignees []*User `json:"assignees"`
// Whether the issue is open or closed
State StateType `json:"state"`
@ -181,9 +178,6 @@ type CreateIssueOption struct {
Title string `json:"title"`
Body string `json:"body"`
Ref string `json:"ref"`
// deprecated
// TODO: rm on sdk 0.15.0
Assignee string `json:"assignee"`
Assignees []string `json:"assignees"`
Deadline *time.Time `json:"due_date"`
// milestone id
@ -225,9 +219,6 @@ type EditIssueOption struct {
Title string `json:"title"`
Body *string `json:"body"`
Ref *string `json:"ref"`
// deprecated
// TODO: rm on sdk 0.15.0
Assignee *string `json:"assignee"`
Assignees []string `json:"assignees"`
Milestone *int64 `json:"milestone"`
State *StateType `json:"state"`