mirror of
				https://gitea.com/gitea/tea.git
				synced 2025-10-31 01:05:26 +01:00 
			
		
		
		
	Add tea comment and show comments of issues/pulls (#313)
				
					
				
			show comments of PR TODO: there needs to be a way to force running non-interactively add `tea comment` to post a comment add --comments flag, prompt only if necessary don't prompt if --comments is provided, or output is piped show comments for issues, add --comments flag tea comment: print resulting comment Merge branch 'master' into issue-172-comments remove debug print statement unrelated, but better than opening another PR for this ;) Merge remote-tracking branch 'upstream/master' into issue-172-comments ret err fix lint Co-authored-by: Norwin Roosen <git@nroo.de> Co-authored-by: 6543 <6543@obermui.de> Reviewed-on: https://gitea.com/gitea/tea/pulls/313 Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com> Reviewed-by: 6543 <6543@obermui.de> Co-Authored-By: Norwin <noerw@noreply.gitea.io> Co-Committed-By: Norwin <noerw@noreply.gitea.io>
This commit is contained in:
		| @@ -5,7 +5,6 @@ | ||||
| package times | ||||
|  | ||||
| import ( | ||||
| 	"fmt" | ||||
| 	"strings" | ||||
| 	"time" | ||||
|  | ||||
| @@ -59,7 +58,6 @@ func RunTimesList(cmd *cli.Context) error { | ||||
| 	var err error | ||||
|  | ||||
| 	user := ctx.Args().First() | ||||
| 	fmt.Println(ctx.Command.ArgsUsage) | ||||
| 	if user == "" { | ||||
| 		// get all tracked times on the repo | ||||
| 		times, _, err = client.GetRepoTrackedTimes(ctx.Owner, ctx.Repo) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Norwin
					Norwin