mirror of
				https://gitea.com/gitea/tea.git
				synced 2025-10-31 09:15:26 +01:00 
			
		
		
		
	Update SDK to v0.13.0 (#179)
check err Notifications: Add Pinned Filter migrate & adapt update sdk to v0.13.0 Co-authored-by: 6543 <6543@obermui.de> Reviewed-on: https://gitea.com/gitea/tea/pulls/179 Reviewed-by: techknowlogick <techknowlogick@gitea.io> Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
		| @@ -59,7 +59,7 @@ func runIssueDetail(ctx *cli.Context, index string) error { | ||||
| 	if err != nil { | ||||
| 		return err | ||||
| 	} | ||||
| 	issue, err := login.Client().GetIssue(owner, repo, idx) | ||||
| 	issue, _, err := login.Client().GetIssue(owner, repo, idx) | ||||
| 	if err != nil { | ||||
| 		return err | ||||
| 	} | ||||
| @@ -86,7 +86,7 @@ func runIssuesList(ctx *cli.Context) error { | ||||
| 		state = gitea.StateClosed | ||||
| 	} | ||||
|  | ||||
| 	issues, err := login.Client().ListRepoIssues(owner, repo, gitea.ListIssueOption{ | ||||
| 	issues, _, err := login.Client().ListRepoIssues(owner, repo, gitea.ListIssueOption{ | ||||
| 		State: state, | ||||
| 		Type:  gitea.IssueTypeIssue, | ||||
| 	}) | ||||
| @@ -154,7 +154,7 @@ var CmdIssuesCreate = cli.Command{ | ||||
| func runIssuesCreate(ctx *cli.Context) error { | ||||
| 	login, owner, repo := initCommand() | ||||
|  | ||||
| 	_, err := login.Client().CreateIssue(owner, repo, gitea.CreateIssueOption{ | ||||
| 	_, _, err := login.Client().CreateIssue(owner, repo, gitea.CreateIssueOption{ | ||||
| 		Title: ctx.String("title"), | ||||
| 		Body:  ctx.String("body"), | ||||
| 		// TODO: | ||||
| @@ -212,6 +212,6 @@ func editIssueState(ctx *cli.Context, opts gitea.EditIssueOption) error { | ||||
| 		return err | ||||
| 	} | ||||
|  | ||||
| 	_, err = login.Client().EditIssue(owner, repo, index, opts) | ||||
| 	_, _, err = login.Client().EditIssue(owner, repo, index, opts) | ||||
| 	return err | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 6543
					6543