1
1
mirror of https://gitea.com/gitea/tea synced 2024-11-22 16:02:01 +01:00
tea/modules
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
..
config Fix adding login without token on private instances (#392) 2021-08-30 23:19:45 +08:00
context Accept more main branch names for login detection (#396) 2021-09-14 14:59:11 +08:00
git Correctly match login by ssh host with port (#391) 2021-09-06 18:52:34 +08:00
interact tea pr create: make local repo optional (#393) 2021-09-22 23:48:21 +08:00
print fix printing issue deadline (#388) 2021-09-06 18:45:24 +08:00
task tea pr create: make local repo optional (#393) 2021-09-22 23:48:21 +08:00
utils Add more issue / pr creation params (#331) 2021-03-08 19:48:03 +08:00
workaround Introduce workaround for missing pull head sha (#340) 2021-03-08 03:45:50 +08:00