Brahim HAMDOUNI 
							
						 
					 
					
						
						
							
						
						ffdbdb3d02 
					 
					
						
						
							
							Check negative limit command parameter ( #358 ) ( #359 )  
						
						... 
						
						
						
						fix  #358 
Co-authored-by: Brahim Hamdouni <brahim@hamdouni.com >
Reviewed-on: https://gitea.com/gitea/tea/pulls/359 
Reviewed-by: techknowlogick <techknowlogick@gitea.io >
Reviewed-by: Norwin <noerw@noreply.gitea.io >
Co-authored-by: Brahim HAMDOUNI <hamdouni@noreply.gitea.io >
Co-committed-by: Brahim HAMDOUNI <hamdouni@noreply.gitea.io > 
					
						2021-05-15 22:16:24 +08:00 
						 
				 
			
				
					
						
							
							
								Norwin 
							
						 
					 
					
						
						
							
						
						2319724bb2 
					 
					
						
						
							
							Update Changelog ( #346 )  
						
						... 
						
						
						
						smal nit's missing
Co-authored-by: Norwin Roosen <git@nroo.de >
Co-authored-by: 6543 <6543@obermui.de >
Reviewed-on: https://gitea.com/gitea/tea/pulls/346 
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Reviewed-by: techknowlogick <techknowlogick@gitea.io >
Reviewed-by: 6543 <6543@obermui.de >
Co-authored-by: Norwin <noerw@noreply.gitea.io >
Co-committed-by: Norwin <noerw@noreply.gitea.io > 
						
						
					 
					
						2021-03-12 20:44:41 +08:00 
						 
				 
			
				
					
						
							
							
								Norwin 
							
						 
					 
					
						
						
							
						
						222d0501df 
					 
					
						
						
							
							Detect markdown line width, resolve relative URLs ( #332 )  
						
						... 
						
						
						
						~~this is semi-blocked by https://github.com/charmbracelet/glamour/pull/96 , but behaviour isn't really worse than the previous behaviour (most links work, some are still broken)~~
#### testcase for link resolver
```
tea pr 332
tea checkout 332 && make install && tea pr 332
```
- [rel](./332)
- [abs](/gitea/tea/pulls/332)
- [full](https://gitea.com/gitea/tea/pulls/332 )
Co-authored-by: Norwin Roosen <git@nroo.de >
Co-authored-by: 6543 <6543@obermui.de >
Reviewed-on: https://gitea.com/gitea/tea/pulls/332 
Reviewed-by: 6543 <6543@obermui.de >
Reviewed-by: Andrew Thornton <art27@cantab.net >
Co-authored-by: Norwin <noerw@noreply.gitea.io >
Co-committed-by: Norwin <noerw@noreply.gitea.io > 
						
						
					 
					
						2021-03-12 20:28:46 +08:00 
						 
				 
			
				
					
						
							
							
								Norwin 
							
						 
					 
					
						
						
							
						
						3abc5a5b42 
					 
					
						
						
							
							Allow checking out PRs with deleted head branch ( #341 )  
						
						... 
						
						
						
						..by explicitly fetching `refs/pulls/:idx/head` from the base repo.
Sorry, I mixed this with a split-up of `PullCheckout()`. I can try to separate that, if preferred
Co-authored-by: Norwin Roosen <git@nroo.de >
Co-authored-by: 6543 <6543@obermui.de >
Reviewed-on: https://gitea.com/gitea/tea/pulls/341 
Reviewed-by: 6543 <6543@obermui.de >
Reviewed-by: Andrew Thornton <art27@cantab.net >
Co-authored-by: Norwin <noerw@noreply.gitea.io >
Co-committed-by: Norwin <noerw@noreply.gitea.io > 
						
						
					 
					
						2021-03-12 02:16:02 +08:00 
						 
				 
			
				
					
						
							
							
								Norwin 
							
						 
					 
					
						
						
							
						
						6f738df4a5 
					 
					
						
						
							
							Add more issue / pr creation params ( #331 )  
						
						... 
						
						
						
						adds assignees, labels, deadline, milestone params
- [x] add flags to `tea issue create` (this is BREAKING, `-b` moved to `-d` for consistency with pr create)
- [x] add interactive mode to `tea issue create`
- [x] add flags to `tea pr create`
- [x] add interactive mode to `tea pr create`
fixes  #171 , fixes  #303 
Co-authored-by: Norwin Roosen <git@nroo.de >
Co-authored-by: 6543 <6543@obermui.de >
Reviewed-on: https://gitea.com/gitea/tea/pulls/331 
Reviewed-by: 6543 <6543@obermui.de >
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: Norwin <noerw@noreply.gitea.io >
Co-committed-by: Norwin <noerw@noreply.gitea.io > 
						
						
					 
					
						2021-03-08 19:48:03 +08:00 
						 
				 
			
				
					
						
							
							
								6543 
							
						 
					 
					
						
						
							
						
						d22b314701 
					 
					
						
						
							
							Introduce workaround for missing pull head sha ( #340 )  
						
						... 
						
						
						
						fix  #318 
test with `tea pr 58`
Co-authored-by: Norwin Roosen <git@nroo.de >
Reviewed-on: https://gitea.com/gitea/tea/pulls/340 
Reviewed-by: Norwin <noerw@noreply.gitea.io >
Reviewed-by: Andrew Thornton <art27@cantab.net >
Co-authored-by: 6543 <6543@obermui.de >
Co-committed-by: 6543 <6543@obermui.de > 
					
						2021-03-08 03:45:50 +08:00 
						 
				 
			
				
					
						
							
							
								Norwin 
							
						 
					 
					
						
						
							
						
						d474883e90 
					 
					
						
						
							
							don't push before creating a pull ( #334 )  
						
						... 
						
						
						
						Not sure if this is the best way, but it's the simplest way to fix  #333 .
Everything else is overly complex due to a chicken-egg problem:
Knowing which remote / branch to push involves requires prompting the user,
which requires to have a upstream branch pushed to detect default values.
Co-authored-by: Norwin Roosen <git@nroo.de >
Reviewed-on: https://gitea.com/gitea/tea/pulls/334 
Reviewed-by: 6543 <6543@obermui.de >
Reviewed-by: Andrew Thornton <art27@cantab.net >
Reviewed-by: khmarbaise <khmarbaise@noreply.gitea.io >
Co-authored-by: Norwin <noerw@noreply.gitea.io >
Co-committed-by: Norwin <noerw@noreply.gitea.io > 
						
						
					 
					
						2021-03-05 18:27:09 +08:00 
						 
				 
			
				
					
						
							
							
								Norwin 
							
						 
					 
					
						
						
							
						
						15c4edba1a 
					 
					
						
						
							
							Don't exit if we can't find a local repo with a remote matching to a login ( #336 )  
						
						... 
						
						
						
						This enables to run commands that need minimal context (i.e. `tea n --all`) to run anywhere.
fixes  #329 
Co-authored-by: Norwin Roosen <git@nroo.de >
Reviewed-on: https://gitea.com/gitea/tea/pulls/336 
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 > 
						
						
					 
					
						2021-03-05 16:56:15 +08:00 
						 
				 
			
				
					
						
							
							
								Norwin 
							
						 
					 
					
						
						
							
						
						e96cfdbbe7 
					 
					
						
						
							
							tea pr checkout: dont create local branches (#314 )  
						
						... 
						
						
						
						This avoids creation of local branches, to avoid cluttering the local repo:
- if the commit already exists on the tip of a local branch, check that one out
- otherwise check out the remote tracking branch (`refs/remotes/<remote>/<head>`), and suggest what to do if you want to make changes.
I'm not certain this behaviour is actually better, I suggest leaving this open for a while for people to try out the new behaviour:
```
tea pr checkout 314
make install
```
fixes  #293 
Co-authored-by: Norwin Roosen <git@nroo.de >
Co-authored-by: 6543 <6543@obermui.de >
Reviewed-on: https://gitea.com/gitea/tea/pulls/314 
Reviewed-by: 6543 <6543@obermui.de >
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: Norwin <noerw@noreply.gitea.io >
Co-committed-by: Norwin <noerw@noreply.gitea.io > 
						
						
					 
					
						2021-03-02 21:50:11 +08:00 
						 
				 
			
				
					
						
							
							
								Norwin 
							
						 
					 
					
						
						
							
						
						3c1efd33e2 
					 
					
						
						
							
							InitCommand() robustness ( #327 )  
						
						... 
						
						
						
						fixes  #320 
Co-authored-by: Norwin Roosen <git@nroo.de >
Reviewed-on: https://gitea.com/gitea/tea/pulls/327 
Reviewed-by: Andrew Thornton <art27@cantab.net >
Reviewed-by: 6543 <6543@obermui.de >
Co-authored-by: Norwin <noerw@noreply.gitea.io >
Co-committed-by: Norwin <noerw@noreply.gitea.io > 
					
						2021-03-01 06:29:26 +08:00 
						 
				 
			
				
					
						
							
							
								Norwin 
							
						 
					 
					
						
						
							
						
						9c8321f2e0 
					 
					
						
						
							
							tea comment: handle piped stdin ( #322 )  
						
						... 
						
						
						
						fixes  #321 
Co-authored-by: Norwin Roosen <git@nroo.de >
Reviewed-on: https://gitea.com/gitea/tea/pulls/322 
Reviewed-by: 6543 <6543@obermui.de >
Reviewed-by: Andrew Thornton <art27@cantab.net >
Co-authored-by: Norwin <noerw@noreply.gitea.io >
Co-committed-by: Norwin <noerw@noreply.gitea.io > 
					
						2021-03-01 01:47:36 +08:00 
						 
				 
			
				
					
						
							
							
								Norwin 
							
						 
					 
					
						
						
							
						
						b5c670ebf8 
					 
					
						
						
							
							Improve tea time ( #319 )  
						
						... 
						
						
						
						better docs
add --mine flag
hm, is there a better name? 🤔 
do time filtering serverside
make printed fields dynamic
add --fields to tea times ls
code review
Co-authored-by: Norwin Roosen <git@nroo.de >
Reviewed-on: https://gitea.com/gitea/tea/pulls/319 
Reviewed-by: 6543 <6543@obermui.de >
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-Authored-By: Norwin <noerw@noreply.gitea.io >
Co-Committed-By: Norwin <noerw@noreply.gitea.io > 
						
						
					 
					
						2020-12-23 12:58:36 +08:00 
						 
				 
			
				
					
						
							
							
								Norwin 
							
						 
					 
					
						
						
							
						
						32b7b771cc 
					 
					
						
						
							
							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 > 
						
						
					 
					
						2020-12-22 00:07:35 +08:00 
						 
				 
			
				
					
						
							
							
								Norwin 
							
						 
					 
					
						
						
							
						
						9efee7bf99 
					 
					
						
						
							
							Add tea issues --fields, allow printing labels ( #312 )  
						
						... 
						
						
						
						generalize list printing with dynamic fields
refactor print.IssuesList to use tableFromItems()
preparatory refactor
print.IssuesList: allow printing labels
move formatters to formatters.go
expose more printable fields on issue
add generic flags.FieldsFlag
add fields flag to tea issues, tea ms issues
validate provided fields
add strict username, or formatted user fields
change default fields
tea issues -> replace updated with labels
tea ms issues -> replace author with labels, reorder
Validate provided fields
Co-authored-by: Norwin Roosen <git@nroo.de >
Co-authored-by: 6543 <6543@obermui.de >
Reviewed-on: https://gitea.com/gitea/tea/pulls/312 
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 > 
						
						
					 
					
						2020-12-21 23:41:07 +08:00 
						 
				 
			
				
					
						
							
							
								Norwin 
							
						 
					 
					
						
						
							
						
						8bb5c15745 
					 
					
						
						
							
							Add commands for reviews ( #315 )  
						
						... 
						
						
						
						add interactive `tea pr review`
it's amazingly simple
vendor gitea.com/noerw/unidiff-comments
add `tea pr lgtm|reject` shorthands
vendor slimmed down diff parser
review diff: default to true
if users want a shortcut, they can use lgtm or reject subcmds
`tea pr approve`: accept optional comment
Co-authored-by: Norwin Roosen <git@nroo.de >
Reviewed-on: https://gitea.com/gitea/tea/pulls/315 
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 > 
						
						
					 
					
						2020-12-21 23:22:22 +08:00 
						 
				 
			
				
					
						
							
							
								Martin Reboredo 
							
						 
					 
					
						
						
							
						
						43e9943757 
					 
					
						
						
							
							Add interactive mode for tea milestone create ( #310 )  
						
						... 
						
						
						
						Implement interactive milestone creation
Return fmt.Errorf when title is empty
Incorporate deadline functionality
Use dateparse and cleanup CreateMilestone task
Signed-off-by: Martin Reboredo <yakoyoku@gmail.com >
Co-authored-by: Martin Reboredo <yakoyoku@gmail.com >
Reviewed-on: https://gitea.com/gitea/tea/pulls/310 
Reviewed-by: Norwin <noerw@noreply.gitea.io >
Reviewed-by: 6543 <6543@obermui.de >
Co-Authored-By: Martin Reboredo <yakoyakoyokuyoku@noreply.gitea.io >
Co-Committed-By: Martin Reboredo <yakoyakoyokuyoku@noreply.gitea.io > 
						
						
					 
					
						2020-12-18 02:50:07 +08:00 
						 
				 
			
				
					
						
							
							
								Norwin 
							
						 
					 
					
						
						
							
						
						8b588f5313 
					 
					
						
						
							
							make PR workflow helpers more robust ( #300 )  
						
						... 
						
						
						
						improve handling of remote deleted branches
split git.TeaDeleteBranch
only delete remote branch if we have permission
add missing err check
Co-authored-by: Norwin Roosen <git@nroo.de >
Reviewed-on: https://gitea.com/gitea/tea/pulls/300 
Reviewed-by: 6543 <6543@obermui.de >
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-Authored-By: Norwin <noerw@noreply.gitea.io >
Co-Committed-By: Norwin <noerw@noreply.gitea.io > 
						
						
					 
					
						2020-12-17 22:00:16 +08:00 
						 
				 
			
				
					
						
							
							
								Norwin 
							
						 
					 
					
						
						
							
						
						83b73ce78e 
					 
					
						
						
							
							Show PR CI status ( #306 )  
						
						... 
						
						
						
						fix layout of pr reviews
show PR CI status
put conflict info in status list
remove line
show merged state
deduplicate reviews by user
Co-authored-by: Norwin Roosen <git@nroo.de >
Reviewed-on: https://gitea.com/gitea/tea/pulls/306 
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 > 
						
						
					 
					
						2020-12-17 01:16:50 +08:00 
						 
				 
			
				
					
						
							
							
								Norwin 
							
						 
					 
					
						
						
							
						
						a948fd7e10 
					 
					
						
						
							
							Refactor error handling ( #308 )  
						
						... 
						
						
						
						use fmt instead of log
log.Fatal -> return err
set non-zero exit code on error
print to default err log
cleanup
fix vet
Co-authored-by: Norwin Roosen <git@nroo.de >
Co-authored-by: 6543 <6543@obermui.de >
Reviewed-on: https://gitea.com/gitea/tea/pulls/308 
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 > 
						
						
					 
					
						2020-12-17 00:18:10 +08:00 
						 
				 
			
				
					
						
							
							
								Norwin 
							
						 
					 
					
						
						
							
						
						dc67630b64 
					 
					
						
						
							
							replace flag globals, require context for commands ( #291 )  
						
						... 
						
						
						
						introduce TeaContext
clean up InitCommand
move GetListOptions to TeaContext
ensure context for each command
so we fail early with a good error message instead of "Error: 404" etc
make linter happy
Merge branch 'master' into refactor-global-flags
move TeaContext & InitCommand to modules/context
Merge branch 'master' into refactor-global-flags
CI.restart()
Merge branch 'master' into refactor-global-flags
Merge branch 'master' into refactor-global-flags
Co-authored-by: Norwin Roosen <git@nroo.de >
Co-authored-by: 6543 <6543@obermui.de >
Reviewed-on: https://gitea.com/gitea/tea/pulls/291 
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Reviewed-by: khmarbaise <khmarbaise@noreply.gitea.io >
Reviewed-by: 6543 <6543@obermui.de >
Co-Authored-By: Norwin <noerw@noreply.gitea.io >
Co-Committed-By: Norwin <noerw@noreply.gitea.io > 
						
						
					 
					
						2020-12-16 01:38:22 +08:00 
						 
				 
			
				
					
						
							
							
								Martin Reboredo 
							
						 
					 
					
						
						
							
						
						b9f5ba0702 
					 
					
						
						
							
							Add interactive mode for tea issue create ( #302 )  
						
						... 
						
						
						
						Implement interactive issue creation
Comment PromptRepoSlug
Move PromptRepoSlug to the right place
Hide promptRepoSlug
Signed-off-by: Martin Reboredo <yakoyoku@gmail.com >
Co-authored-by: Martin Reboredo <yakoyoku@gmail.com >
Reviewed-on: https://gitea.com/gitea/tea/pulls/302 
Reviewed-by: Norwin <noerw@noreply.gitea.io >
Reviewed-by: khmarbaise <khmarbaise@noreply.gitea.io >
Reviewed-by: 6543 <6543@obermui.de >
Co-Authored-By: Martin Reboredo <yakoyakoyokuyoku@noreply.gitea.io >
Co-Committed-By: Martin Reboredo <yakoyakoyokuyoku@noreply.gitea.io > 
						
						
					 
					
						2020-12-15 04:05:31 +08:00 
						 
				 
			
				
					
						
							
							
								6543 
							
						 
					 
					
						
						
							
						
						c063329e9a 
					 
					
						
						
							
							[Refactor] unexport config.Config var & move login tasks to task module ( #288 )  
						
						... 
						
						
						
						Unexport generateToken()
move CreateLogin into task
Create func config.SetDefaultLogin()
Unexport loadConfig() & saveConfig
unexport config var
make SetDefaultLogin() case insensitive
update func descriptions
move FindSSHKey to task module
Reviewed-on: https://gitea.com/gitea/tea/pulls/288 
Reviewed-by: Norwin <noerw@noreply.gitea.io >
Reviewed-by: Andrew Thornton <art27@cantab.net >
Co-Authored-By: 6543 <6543@obermui.de >
Co-Committed-By: 6543 <6543@obermui.de > 
						
						
					 
					
						2020-12-12 21:28:37 +08:00 
						 
				 
			
				
					
						
							
							
								Norwin 
							
						 
					 
					
						
						
							
						
						0f38da068c 
					 
					
						
						
							
							Improve ssh handling ( #277 )  
						
						... 
						
						
						
						checkout: use configured protocol for PR checkout
instead of defaulting to ssh if that is enabled
this might fix  #262 
login add: try to find a matching ssh key & store it in config
possibly expensive operation should be done once
pr checkout: don't fetch ssh keys
As a result, we don't try to pull via ssh, if no privkey was configured.
This increases chances of a using ssh only on a working ssh setup.
fix import order
remove debug print statement
improve ssh-key value docs
rm named return & fix pwCallback nil check
Co-authored-by: Norwin Roosen <git@nroo.de >
Co-authored-by: 6543 <6543@obermui.de >
Reviewed-on: https://gitea.com/gitea/tea/pulls/277 
Reviewed-by: khmarbaise <khmarbaise@noreply.gitea.io >
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 > 
						
						
					 
					
						2020-12-11 21:42:41 +08:00 
						 
				 
			
				
					
						
							
							
								Norwin 
							
						 
					 
					
						
						
							
						
						7e191eb18b 
					 
					
						
						
							
							fix InitCommand() ( #285 )  
						
						... 
						
						
						
						split modules/config
login_tasks.go should probably be modules/task/login.go,
but i didn't do that, as it still depends on the global
`Config` variable from the config module, see
https://gitea.com/gitea/tea/issues/158 
rework InitCommand()
- make it error tolerant if $PWD is not a git repo (#200 )
- don't force default login when repo flag is set (#191 )
remove InitCommandLoginOnly()
Merge branch 'master' into issue-200-initcommand
improve docs
Merge branch 'master' into issue-200-initcommand
move config func and config task func to right place
Co-authored-by: Norwin Roosen <git@nroo.de >
Co-authored-by: 6543 <6543@obermui.de >
Reviewed-on: https://gitea.com/gitea/tea/pulls/285 
Reviewed-by: 6543 <6543@obermui.de >
Reviewed-by: khmarbaise <khmarbaise@noreply.gitea.io >
Co-Authored-By: Norwin <noerw@noreply.gitea.io >
Co-Committed-By: Norwin <noerw@noreply.gitea.io > 
						
						
					 
					
						2020-12-11 17:07:29 +08:00 
						 
				 
			
				
					
						
							
							
								Norwin 
							
						 
					 
					
						
						
							
						
						a91168fd36 
					 
					
						
						
							
							Improved list output ( #281 )  
						
						... 
						
						
						
						remove unused debug var
move outputList into a struct
so we can add additional functionality for all list output
rename list output to table.go
make table sortable
sort milestones
sort milestones descending
remove unnecessary if
Co-authored-by: Norwin Roosen <git@nroo.de >
Reviewed-on: https://gitea.com/gitea/tea/pulls/281 
Reviewed-by: khmarbaise <khmarbaise@noreply.gitea.io >
Reviewed-by: 6543 <6543@obermui.de >
Co-Authored-By: Norwin <noerw@noreply.gitea.io >
Co-Committed-By: Norwin <noerw@noreply.gitea.io > 
						
						
					 
					
						2020-12-10 06:04:36 +08:00 
						 
				 
			
				
					
						
							
							
								Norwin 
							
						 
					 
					
						
						
							
						
						adb2382aa5 
					 
					
						
						
							
							Add interactive mode for tea pr create ( #279 )  
						
						... 
						
						
						
						refactor pull create into task & interact module
avoid creation of invalid PRs
refactor task.CreatePull
to make functionality reusable in interact module
implement interactive.CreatePull
Co-authored-by: Norwin Roosen <git@nroo.de >
Reviewed-on: https://gitea.com/gitea/tea/pulls/279 
Reviewed-by: 6543 <6543@obermui.de >
Reviewed-by: techknowlogick <techknowlogick@gitea.io >
Co-Authored-By: Norwin <noerw@noreply.gitea.io >
Co-Committed-By: Norwin <noerw@noreply.gitea.io > 
						
						
					 
					
						2020-12-09 05:41:50 +08:00 
						 
				 
			
				
					
						
							
							
								6543 
							
						 
					 
					
						
						
							
						
						c98441b13c 
					 
					
						
						
							
							Remove Interact Dependency Of Task Module ( #280 )  
						
						... 
						
						
						
						remove interact dependency in task module
accept nil callback
format code
Reviewed-on: https://gitea.com/gitea/tea/pulls/280 
Reviewed-by: Norwin <noerw@noreply.gitea.io >
Reviewed-by: Andrew Thornton <art27@cantab.net >
Co-Authored-By: 6543 <6543@obermui.de >
Co-Committed-By: 6543 <6543@obermui.de > 
						
						
					 
					
						2020-12-08 19:25:21 +08:00 
						 
				 
			
				
					
						
							
							
								6543 
							
						 
					 
					
						
						
							
						
						5cb3e1ded5 
					 
					
						
						
							
							Refactor: Move list print functions into print package ( #273 )  
						
						... 
						
						
						
						MV list issues -> print.IssuesList
MV list labels -> print.LabelsList & task.LabelsExport
MV list logins -> print.LoginsList
MV list miles -> print.MilestonesList
MV list pulls -> print.PullsList
MV list releases -> print.ReleasesList
MV list issues&pulls of mile -> print.IssuesPullsList
MV list notification threads -> print.NotificationsList
Unexport print.outputList
Unexport print.outputMarkdown
remove comd/flags dependency in print module
Reviewed-on: https://gitea.com/gitea/tea/pulls/273 
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Reviewed-by: Andrew Thornton <art27@cantab.net >
Co-Authored-By: 6543 <6543@obermui.de >
Co-Committed-By: 6543 <6543@obermui.de > 
						
						
					 
					
						2020-12-08 18:28:54 +08:00 
						 
				 
			
				
					
						
							
							
								6543 
							
						 
					 
					
						
						
							
						
						2b11f408fd 
					 
					
						
						
							
							Pull DetailView: Show more pull informations ( #271 )  
						
						... 
						
						
						
						Pull Detailview: add head/base-branch, reviews, mergable info
print info if reviews can not be loaded
No Conflicts
Reviewed-on: https://gitea.com/gitea/tea/pulls/271 
Reviewed-by: Norwin <noerw@noreply.gitea.io >
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-Authored-By: 6543 <6543@obermui.de >
Co-Committed-By: 6543 <6543@obermui.de > 
						
						
					 
					
						2020-12-08 12:06:05 +08:00 
						 
				 
			
				
					
						
							
							
								Norwin 
							
						 
					 
					
						
						
							
						
						d0e05e8be2 
					 
					
						
						
							
							move git auth prompts to interact module ( #276 )  
						
						... 
						
						
						
						move password prompt to interact module
closes  #231 
allow up to 3 ssh key password attempts
rename param
Co-authored-by: Norwin Roosen <git@nroo.de >
Reviewed-on: https://gitea.com/gitea/tea/pulls/276 
Reviewed-by: 6543 <6543@obermui.de >
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-Authored-By: Norwin <noerw@noreply.gitea.io >
Co-Committed-By: Norwin <noerw@noreply.gitea.io > 
						
						
					 
					
						2020-12-08 09:21:05 +08:00 
						 
				 
			
				
					
						
							
							
								Norwin 
							
						 
					 
					
						
						
							
						
						9a3b54b9a3 
					 
					
						
						
							
							use token auth for https remotes ( #275 )  
						
						... 
						
						
						
						use token for https auth instead of user name
also handle http urls
Co-authored-by: Norwin Roosen <git@nroo.de >
Reviewed-on: https://gitea.com/gitea/tea/pulls/275 
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 > 
						
						
					 
					
						2020-12-07 22:14:56 +08:00 
						 
				 
			
				
					
						
							
							
								khmarbaise 
							
						 
					 
					
						
						
							
						
						7d486c2ec6 
					 
					
						
						
							
							tea organizations list command ( #264 )  
						
						... 
						
						
						
						Introduce tea organizations list command (#263 )
Fix  #263 
Add missing pagination options missing as suggest by reviewers. (#263 )
Signed-off-by: Karl Heinz Marbaise <kama@soebes.de >
Co-authored-by: Karl Heinz Marbaise <kama@soebes.de >
Reviewed-on: https://gitea.com/gitea/tea/pulls/264 
Reviewed-by: Norwin <noerw@noreply.gitea.io >
Reviewed-by: 6543 <6543@obermui.de >
Co-Authored-By: khmarbaise <khmarbaise@noreply.gitea.io >
Co-Committed-By: khmarbaise <khmarbaise@noreply.gitea.io > 
						
						
					 
					
						2020-12-07 06:02:50 +08:00 
						 
				 
			
				
					
						
							
							
								6543 
							
						 
					 
					
						
						
							
						
						0cea700dd8 
					 
					
						
						
							
							[Refactor] move pull checkout & clean code into task module ( #249 )  
						
						... 
						
						
						
						Merge branch 'master' into refactor_checkout2task
move pull clean code into task module
fix lint
format code
unify PullCheckout() and gitConfigForPR()
move pull checkout code into task module
Co-authored-by: 6543 <6543@noreply.gitea.io >
Reviewed-on: https://gitea.com/gitea/tea/pulls/249 
Reviewed-by: Norwin <noerw@noreply.gitea.io >
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-Authored-By: 6543 <6543@obermui.de >
Co-Committed-By: 6543 <6543@obermui.de > 
						
						
					 
					
						2020-11-10 14:51:48 +08:00 
						 
				 
			
				
					
						
							
							
								Norwin 
							
						 
					 
					
						
						
							
						
						6ea331ce3b 
					 
					
						
						
							
							improve formatting of tea repos ( #223 )  
						
						... 
						
						
						
						make fmt
code review
use OutputMarkdown
use FormatTime()
improved repo printing
- ReposList() now allows selection of fields
- RepoDetail() uses glamour and provides more details
Co-authored-by: Norwin Roosen <git@nroo.de >
Reviewed-on: https://gitea.com/gitea/tea/pulls/223 
Reviewed-by: 6543 <6543@noreply.gitea.io >
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-Authored-By: Norwin <noerw@noreply.gitea.io >
Co-Committed-By: Norwin <noerw@noreply.gitea.io > 
						
						
					 
					
						2020-10-10 01:17:31 +00:00 
						 
				 
			
				
					
						
							
							
								crapStone 
							
						 
					 
					
						
						
							
						
						c4e2db32b5 
					 
					
						
						
							
							rewrote config file path search ( #219 )  
						
						... 
						
						
						
						added comment to clarify coding choices
added package xdg to vendor folder
rewrote config file path search
Co-authored-by: crapStone <crapstone01@gmail.com >
Reviewed-on: https://gitea.com/gitea/tea/pulls/219 
Reviewed-by: 6543 <6543@noreply.gitea.io >
Reviewed-by: Norwin <noerw@noreply.gitea.io > 
						
						
					 
					
						2020-10-06 13:06:47 +00:00 
						 
				 
			
				
					
						
							
							
								Norwin 
							
						 
					 
					
						
						
							
						
						cbd1bccbf9 
					 
					
						
						
							
							Add tea repos search, improve repo listing ( #215 )  
						
						... 
						
						
						
						Merge branch 'master' into add-repo-search-improve-listing-closes-#210
Merge branch 'master' into add-repo-search-improve-listing-closes-#210
fixup! repos list: client side filtering for repo type
fix --private flag
repos list: client side filtering for repo type
repos list: listing of starred repos
repos search: rename --mode to --type
repo search: prioritize own user
UX tradeoff between usefulness & response speed
fix -O owner flag filter
rework repo list, add repo search
repo search is mostly the old behaviour of repo list
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: Norwin Roosen <git@nroo.de >
Reviewed-on: https://gitea.com/gitea/tea/pulls/215 
Reviewed-by: 6543 <6543@noreply.gitea.io >
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com > 
						
						
					 
					
						2020-10-06 08:05:22 +00:00 
						 
				 
			
				
					
						
							
							
								Norwin 
							
						 
					 
					
						
						
							
						
						03ec6d0eee 
					 
					
						
						
							
							print times in local timezone ( #217 )  
						
						... 
						
						
						
						dont resolve location ahead of time
fixup! use local timezone for all printed times
fixup! use local timezone for all printed times
use local timezone for all printed times
Co-authored-by: Norwin Roosen <git@nroo.de >
Reviewed-on: https://gitea.com/gitea/tea/pulls/217 
Reviewed-by: techknowlogick <techknowlogick@gitea.io >
Reviewed-by: 6543 <6543@noreply.gitea.io > 
						
						
					 
					
						2020-10-05 12:23:32 +00:00 
						 
				 
			
				
					
						
							
							
								Norwin 
							
						 
					 
					
						
						
							
						
						30c3aa4f5b 
					 
					
						
						
							
							Handle Invalid Markdown ( #218 )  
						
						... 
						
						
						
						markdown: use builtin dark/light theme detection
handle invalid markdown
Co-authored-by: Norwin Roosen <git@nroo.de >
Reviewed-on: https://gitea.com/gitea/tea/pulls/218 
Reviewed-by: 6543 <6543@noreply.gitea.io >
Reviewed-by: techknowlogick <techknowlogick@gitea.io > 
						
						
					 
					
						2020-10-05 02:23:57 +00:00 
						 
				 
			
				
					
						
							
							
								6543 
							
						 
					 
					
						
						
							
						
						7ac3ffcc1b 
					 
					
						
						
							
							Use Survey For Interactions With User ( #186 )  
						
						... 
						
						
						
						fixes
Use Survey For Interactions With User
Add Vendor "github.com/AlecAivazis/survey/v2"
Co-authored-by: Norwin Roosen <git@nroo.de >
Co-authored-by: 6543 <6543@obermui.de >
Reviewed-on: https://gitea.com/gitea/tea/pulls/186 
Reviewed-by: techknowlogick <techknowlogick@gitea.io >
Reviewed-by: Norwin <noerw@noreply.gitea.io > 
						
						
					 
					
						2020-10-03 02:54:09 +00:00 
						 
				 
			
				
					
						
							
							
								6543 
							
						 
					 
					
						
						
							
						
						e23f56e81c 
					 
					
						
						
							
							Add Detail View for Login ( #212 )  
						
						... 
						
						
						
						Impruve & Refactor AddLogin
Impruve login comands
Remove unused Package + Vars
Co-authored-by: 6543 <6543@obermui.de >
Reviewed-on: https://gitea.com/gitea/tea/pulls/212 
Reviewed-by: Norwin <noerw@noreply.gitea.io >
Reviewed-by: Andrew Thornton <art27@cantab.net > 
						
						
					 
					
						2020-10-02 15:57:48 +00:00 
						 
				 
			
				
					
						
							
							
								6543 
							
						 
					 
					
						
						
							
						
						f5dbd44ebe 
					 
					
						
						
							
							Improve tea logout ( #213 )  
						
						... 
						
						
						
						fix message
fix lint
Impruve logout
Co-authored-by: techknowlogick <techknowlogick@gitea.io >
Co-authored-by: 6543 <6543@obermui.de >
Reviewed-on: https://gitea.com/gitea/tea/pulls/213 
Reviewed-by: Norwin <noerw@noreply.gitea.io >
Reviewed-by: techknowlogick <techknowlogick@gitea.io > 
						
						
					 
					
						2020-10-02 15:45:55 +00:00 
						 
				 
			
				
					
						
							
							
								Norwin 
							
						 
					 
					
						
						
							
						
						de5a00e807 
					 
					
						
						
							
							Refactor addLoginMain() ( #201 )  
						
						... 
						
						
						
						simplify NormalizeURL
drop noisy log line
must have been introduced recently?
dont use PascalCase for default login names
...for readability.
🔥  opinionated commit
create GenerateLoginName()
fixes
fixup! Merge branch 'master' into refactor-loginMain
move GetOwnerAndRepo() to modules/utils/parse.go
Merge branch 'master' into refactor-loginMain
make linter happy
refactor addLoginMain()
Co-authored-by: Norwin Roosen <git@nroo.de >
Reviewed-on: https://gitea.com/gitea/tea/pulls/201 
Reviewed-by: 6543 <6543@noreply.gitea.io >
Reviewed-by: Andrew Thornton <art27@cantab.net > 
						
						
					 
					
						2020-09-30 19:44:22 +00:00 
						 
				 
			
				
					
						
							
							
								6543 
							
						 
					 
					
						
						
							
						
						f445ac7521 
					 
					
						
						
							
							Refactor: apply new internal structurs ( #206 )  
						
						... 
						
						
						
						fix lint
fix lint
Move print TrackedTimesList to print package
Move AbsPathWithExpansion to utils/path.go
rename module intern to config
Move Subcomands into it's own Packages
Split times subcomands into own sourcefiles
Split repos subcomands into own sourcefiles
Split releases subcomands into own sourcefiles
Split pulls subcomands into own sourcefiles
Split milestones subcomands into own sourcefiles
Split login subcomands into own sourcefiles
Split labels subcomands into own sourcefiles
split issues subcomands into own sourcefiles
mv
Move Interactive Login Creation to interact package
Move Add Login function to intern/login.go
apply from review
lint: add description to exported func
smal nits
Move DetailViews stdout print func to print package
Refactor:
* Move Config & Login routines into intern package
* rename global var in cmd
* Move help func to utils
Co-authored-by: 6543 <6543@obermui.de >
Reviewed-on: https://gitea.com/gitea/tea/pulls/206 
Reviewed-by: Norwin <noerw@noreply.gitea.io >
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com > 
						
						
					 
					
						2020-09-30 05:11:33 +00:00 
						 
				 
			
				
					
						
							
							
								Norwin 
							
						 
					 
					
						
						
							
						
						887495f38f 
					 
					
						
						
							
							Fix Pulls Create ( #202 )  
						
						... 
						
						
						
						small refactor
fix TrimLeft bug, improve logging
Co-authored-by: Norwin Roosen <git@nroo.de >
Reviewed-on: https://gitea.com/gitea/tea/pulls/202 
Reviewed-by: 6543 <6543@noreply.gitea.io >
Reviewed-by: techknowlogick <techknowlogick@gitea.io > 
						
						
					 
					
						2020-09-26 18:43:57 +00:00 
						 
				 
			
				
					
						
							
							
								Norwin 
							
						 
					 
					
						
						
							
						
						159bf03d49 
					 
					
						
						
							
							tea pulls create: detect head branch repo owner ( #193 )  
						
						... 
						
						
						
						dont print on already pushed branch
more consisten error handling
detect repo owner for default head branch
Co-authored-by: Norwin Roosen <git@nroo.de >
Reviewed-on: https://gitea.com/gitea/tea/pulls/193 
Reviewed-by: 6543 <6543@noreply.gitea.io >
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com > 
						
						
					 
					
						2020-09-24 10:44:03 +00:00 
						 
				 
			
				
					
						
							
							
								6543 
							
						 
					 
					
						
						
							
						
						2e701ee8a2 
					 
					
						
						
							
							Add Repo Create subcomand & enhancements ( #173 )  
						
						... 
						
						
						
						repos ls: use owner filter and remove org&user one
better desc
refactor
rm local filter, let us fix upstream
split user org
add archive and private filters
use SearchRepos
migrate to sdk v0.13.0
print URL
add CmdRepoCreate,
Add RepoDetails
ListRepos: better desc, add aliases, add note for sdk-release
Co-authored-by: 6543 <6543@obermui.de >
Reviewed-on: https://gitea.com/gitea/tea/pulls/173 
Reviewed-by: Andrew Thornton <art27@cantab.net >
Reviewed-by: Norwin <noerw@noreply.gitea.io > 
						
						
					 
					
						2020-09-23 19:49:59 +00:00 
						 
				 
			
				
					
						
							
							
								6543 
							
						 
					 
					
						
						
							
						
						3c1bcdb1e2 
					 
					
						
						
							
							More Options To Specify Repo ( #178 )  
						
						... 
						
						
						
						use active user as owner by default
Fix  #163  Part1
Co-authored-by: 6543 <6543@obermui.de >
Reviewed-on: https://gitea.com/gitea/tea/pulls/178 
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Reviewed-by: mrsdizzie <info@mrsdizzie.com > 
						
						
					 
					
						2020-09-16 13:47:52 +00:00 
						 
				 
			
				
					
						
							
							
								6543 
							
						 
					 
					
						
						
							
						
						2135af0304 
					 
					
						
						
							
							Fix Login Detection By Repo Param ( #151 )  
						
						... 
						
						
						
						Fix login detection by Repo param
Co-authored-by: 6543 <6543@obermui.de >
Reviewed-on: https://gitea.com/gitea/tea/pulls/151 
Reviewed-by: lafriks <lafriks@noreply.gitea.io >
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com > 
						
						
					 
					
						2020-07-17 16:36:48 +00:00 
						 
				 
			
				
					
						
							
							
								6543 
							
						 
					 
					
						
						
							
						
						f1801f39a6 
					 
					
						
						
							
							Add subcomand 'pulls create' ( #144 )  
						
						... 
						
						
						
						wordings
print pull URL
change title required mesage
inform User on push error
fix body
🚀 
finish
impruve
fix help menue of pull create
refactor
Add pull-request command
Co-authored-by: 6543 <6543@obermui.de >
Co-authored-by: Sandro Santilli <strk@kbt.io >
Reviewed-on: https://gitea.com/gitea/tea/pulls/144 
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Reviewed-by: lafriks <lafriks@noreply.gitea.io > 
						
						
					 
					
						2020-07-16 15:00:51 +00:00 
						 
				 
			
				
					
						
							
							
								6543 
							
						 
					 
					
						
						
							
						
						6cff3b1cc7 
					 
					
						
						
							
							migrate src-d/go-git -> go-git/go-git ( #128 )  
						
						... 
						
						
						
						Merge branch 'master' into vendor-migrate-go-git
Merge branch 'master' into vendor-migrate-go-git
migrate src-d/go-git -> go-git/go-git
Co-authored-by: 6543 <6543@obermui.de >
Reviewed-on: https://gitea.com/gitea/tea/pulls/128 
Reviewed-by: techknowlogick <techknowlogick@gitea.io >
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com > 
						
						
					 
					
						2020-04-30 02:02:15 +00:00