mirror of
				https://gitea.com/gitea/tea.git
				synced 2025-10-31 01:05:26 +01:00 
			
		
		
		
	Use Print Package (#214)
print issue & URL after issue creation & edit use print package for pull detail Co-authored-by: Norwin Roosen <git@nroo.de> Reviewed-on: https://gitea.com/gitea/tea/pulls/214 Reviewed-by: 6543 <6543@noreply.gitea.io> Reviewed-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
		| @@ -9,6 +9,7 @@ import ( | ||||
|  | ||||
| 	"code.gitea.io/tea/cmd/flags" | ||||
| 	"code.gitea.io/tea/modules/config" | ||||
| 	"code.gitea.io/tea/modules/print" | ||||
| 	"code.gitea.io/tea/modules/utils" | ||||
|  | ||||
| 	"code.gitea.io/sdk/gitea" | ||||
| @@ -40,7 +41,11 @@ func editIssueState(ctx *cli.Context, opts gitea.EditIssueOption) error { | ||||
| 		return err | ||||
| 	} | ||||
|  | ||||
| 	_, _, err = login.Client().EditIssue(owner, repo, index, opts) | ||||
| 	// TODO: print (short)IssueDetails | ||||
| 	return err | ||||
| 	issue, _, err := login.Client().EditIssue(owner, repo, index, opts) | ||||
| 	if err != nil { | ||||
| 		return err | ||||
| 	} | ||||
|  | ||||
| 	print.IssueDetails(issue) | ||||
| 	return nil | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Norwin
					Norwin