mirror of
				https://gitea.com/gitea/tea.git
				synced 2025-10-31 09:15:26 +01:00 
			
		
		
		
	Use latest go-sdk and bump golang to 1.18 (#485)
Reviewed-on: https://gitea.com/gitea/tea/pulls/485 Reviewed-by: KN4CK3R <kn4ck3r@noreply.gitea.io> Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: 6543 <6543@obermui.de> Co-committed-by: 6543 <6543@obermui.de>
This commit is contained in:
		| @@ -107,10 +107,10 @@ func markNotificationAs(cmd *context.TeaContext, filterStates []string, targetSt | ||||
| 		opts := gitea.MarkNotificationOptions{Status: states, ToStatus: targetState} | ||||
|  | ||||
| 		if allRepos { | ||||
| 			_, err = client.ReadNotifications(opts) | ||||
| 			_, _, err = client.ReadNotifications(opts) | ||||
| 		} else { | ||||
| 			cmd.Ensure(context.CtxRequirement{RemoteRepo: true}) | ||||
| 			_, err = client.ReadRepoNotifications(cmd.Owner, cmd.Repo, opts) | ||||
| 			_, _, err = client.ReadRepoNotifications(cmd.Owner, cmd.Repo, opts) | ||||
| 		} | ||||
|  | ||||
| 		// TODO: print all affected notification subject URLs | ||||
| @@ -121,7 +121,7 @@ func markNotificationAs(cmd *context.TeaContext, filterStates []string, targetSt | ||||
| 		if err != nil { | ||||
| 			return err | ||||
| 		} | ||||
| 		_, err = client.ReadNotification(id, targetState) | ||||
| 		_, _, err = client.ReadNotification(id, targetState) | ||||
| 		if err != nil { | ||||
| 			return err | ||||
| 		} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 6543
					6543