upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2023-12-08 20:15:43 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2023-12-08 20:15:43 +0000
commit6d3c9218d2d3320f5d7fb9b9ede8750e947b70e8 (patch)
tree8b2da4f27c393dec9f01690162cd2705c21d6c26 /src/main.rs
parent82bf53ac3c18e15b75852a48b2e5b432c75a5c7f (diff)
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
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs3
1 files changed, 3 insertions, 0 deletions
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 {
40 Prs(sub_commands::prs::SubCommandArgs), 40 Prs(sub_commands::prs::SubCommandArgs),
41 /// pull latest commits in pr linked to checked out branch 41 /// pull latest commits in pr linked to checked out branch
42 Pull, 42 Pull,
43 /// push commits to current checked out pr branch
44 Push,
43} 45}
44 46
45#[tokio::main] 47#[tokio::main]
@@ -54,5 +56,6 @@ async fn main() -> Result<()> {
54 } 56 }
55 Commands::Prs(args) => futures::executor::block_on(sub_commands::prs::launch(&cli, args)), 57 Commands::Prs(args) => futures::executor::block_on(sub_commands::prs::launch(&cli, args)),
56 Commands::Pull => futures::executor::block_on(sub_commands::pull::launch()), 58 Commands::Pull => futures::executor::block_on(sub_commands::pull::launch()),
59 Commands::Push => futures::executor::block_on(sub_commands::push::launch(&cli)),
57 } 60 }
58} 61}