1
0
mirror of https://gitea.com/gitea/tea.git synced 2024-11-03 04:27:21 -05:00
tea/cmd
Norwin 7b7c7f57be tea pr create: make local repo optional (#393)
this is a partial fix to #378, making the command available outside of a local repo.

new behaviour:
- when run interactively without local repo context, the head repo prompt is not pre-populated
- when run with flags without local repo context, it will complain unless `--head` is specified

refactor:
- pass TeaContext down to task.CreatePull

Co-authored-by: Norwin <git@nroo.de>
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://gitea.com/gitea/tea/pulls/393
Reviewed-by: Alexey 〒erentyev <axifive@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>
2021-09-22 23:48:21 +08:00
..
flags Implement notification subcommands (#389) 2021-09-06 01:11:17 +08:00
issues Implement notification subcommands (#389) 2021-09-06 01:11:17 +08:00
labels Add missing flags (#369) 2021-06-22 22:23:09 +08:00
login Add more command shorthands (#307) 2020-12-17 00:47:40 +08:00
milestones Implement notification subcommands (#389) 2021-09-06 01:11:17 +08:00
notifications Implement notification subcommands (#389) 2021-09-06 01:11:17 +08:00
organizations Add missing flags (#369) 2021-06-22 22:23:09 +08:00
pulls tea pr create: make local repo optional (#393) 2021-09-22 23:48:21 +08:00
releases Update Vendors (#337) 2021-03-05 18:06:25 +08:00
repos Implement notification subcommands (#389) 2021-09-06 01:11:17 +08:00
times Implement notification subcommands (#389) 2021-09-06 01:11:17 +08:00
autocomplete.go Handle XDG directories with spaces in autocomplete commands (#383) 2021-07-24 00:14:23 +08:00
categories.go Proper help text & new README structure (#311) 2020-12-21 21:37:20 +08:00
comment.go tea comment: handle piped stdin (#322) 2021-03-01 01:47:36 +08:00
issues.go Add tea comment and show comments of issues/pulls (#313) 2020-12-22 00:07:35 +08:00
labels.go Add missing flags to org & labels subcommands (#357) 2021-05-13 02:32:20 +08:00
login.go Proper help text & new README structure (#311) 2020-12-21 21:37:20 +08:00
logout.go Proper help text & new README structure (#311) 2020-12-21 21:37:20 +08:00
milestones.go Add tea issues --fields, allow printing labels (#312) 2020-12-21 23:41:07 +08:00
notifications.go Implement notification subcommands (#389) 2021-09-06 01:11:17 +08:00
open.go Proper help text & new README structure (#311) 2020-12-21 21:37:20 +08:00
organizations.go Add missing flags to org & labels subcommands (#357) 2021-05-13 02:32:20 +08:00
pulls.go Add tea pr merge (#348) 2021-03-18 03:56:05 +08:00
releases.go Proper help text & new README structure (#311) 2020-12-21 21:37:20 +08:00
repos.go Proper help text & new README structure (#311) 2020-12-21 21:37:20 +08:00
times.go Improve tea time (#319) 2020-12-23 12:58:36 +08:00