gitea-tea/cmd/pulls
Norwin 355fd7aa53 `tea pr checkout`: fetch via ssh if available (#192)
improved logging

try to use local branch before creating pulls/<PR>

useful for checking out your own PRs

reorder imports

refactor pulls checkout

isolated "gitea API to local git cfg" aspect

work around go-git limitation

As we cant manage multiple remote URLs properly, we just set the correct
URL protocol ahead of time.

This logic won't apply for already existing HTTPS remotes, these
should be deleted before using `tea pr checkout`.

use SSH if user has key in gitea

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Norwin Roosen <git@nroo.de>
Reviewed-on: https://gitea.com/gitea/tea/pulls/192
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-11-07 15:00:03 +08:00
..
checkout.go `tea pr checkout`: fetch via ssh if available (#192) 2020-11-07 15:00:03 +08:00
clean.go Refactor: apply new internal structurs (#206) 2020-09-30 05:11:33 +00:00
create.go fix `tea pr create` within same repo (#248) 2020-10-25 10:40:27 +08:00
list.go print times in local timezone (#217) 2020-10-05 12:23:32 +00:00