From 6d3c9218d2d3320f5d7fb9b9ede8750e947b70e8 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Fri, 8 Dec 2023 20:15:43 +0000 Subject: feat(push) push commits to existing pr - find pr with a branch-name that matches checked out branch - check branch isnt behind latest patch on pr - push new commits a patches associated with pr --- src/main.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 8c6f0d0..996b697 100644 --- a/src/main.rs +++ b/src/main.rs @@ -40,6 +40,8 @@ enum Commands { Prs(sub_commands::prs::SubCommandArgs), /// pull latest commits in pr linked to checked out branch Pull, + /// push commits to current checked out pr branch + Push, } #[tokio::main] @@ -54,5 +56,6 @@ async fn main() -> Result<()> { } Commands::Prs(args) => futures::executor::block_on(sub_commands::prs::launch(&cli, args)), Commands::Pull => futures::executor::block_on(sub_commands::pull::launch()), + Commands::Push => futures::executor::block_on(sub_commands::push::launch(&cli)), } } -- cgit v1.2.3