gitea-tea/cmd/pulls
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
..
approve.go Add commands for reviews (#315) 2020-12-21 23:22:22 +08:00
checkout.go tea pr checkout: dont create local branches (#314) 2021-03-02 21:50:11 +08:00
clean.go replace flag globals, require context for commands (#291) 2020-12-16 01:38:22 +08:00
close.go Implement PR closing and reopening (#304) 2020-12-17 06:47:12 +08:00
create.go tea pr create: make local repo optional (#393) 2021-09-22 23:48:21 +08:00
edit.go Implement PR closing and reopening (#304) 2020-12-17 06:47:12 +08:00
list.go Add more command shorthands (#307) 2020-12-17 00:47:40 +08:00
merge.go Add tea pr merge (#348) 2021-03-18 03:56:05 +08:00
reject.go Add commands for reviews (#315) 2020-12-21 23:22:22 +08:00
reopen.go Implement PR closing and reopening (#304) 2020-12-17 06:47:12 +08:00
review.go Add commands for reviews (#315) 2020-12-21 23:22:22 +08:00