diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2023-12-07 09:57:43 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2023-12-07 09:57:43 +0000 |
| commit | 82bf53ac3c18e15b75852a48b2e5b432c75a5c7f (patch) | |
| tree | 8f7ffb8d3ad11462fe87196ae61ad32446becedc /src/main.rs | |
| parent | f811835ca768d6cbcef24f2873c43b51e63578ce (diff) | |
feat(pull) pull commits for checked out pr branch
- find pr event which matches branch name
- fetch and apply latest commits
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index 805edd7..8c6f0d0 100644 --- a/src/main.rs +++ b/src/main.rs | |||
| @@ -38,6 +38,8 @@ enum Commands { | |||
| 38 | Claim(sub_commands::claim::SubCommandArgs), | 38 | Claim(sub_commands::claim::SubCommandArgs), |
| 39 | /// create and issue prs | 39 | /// create and issue prs |
| 40 | Prs(sub_commands::prs::SubCommandArgs), | 40 | Prs(sub_commands::prs::SubCommandArgs), |
| 41 | /// pull latest commits in pr linked to checked out branch | ||
| 42 | Pull, | ||
| 41 | } | 43 | } |
| 42 | 44 | ||
| 43 | #[tokio::main] | 45 | #[tokio::main] |
| @@ -51,5 +53,6 @@ async fn main() -> Result<()> { | |||
| 51 | futures::executor::block_on(sub_commands::claim::launch(&cli, args)) | 53 | futures::executor::block_on(sub_commands::claim::launch(&cli, args)) |
| 52 | } | 54 | } |
| 53 | Commands::Prs(args) => futures::executor::block_on(sub_commands::prs::launch(&cli, args)), | 55 | Commands::Prs(args) => futures::executor::block_on(sub_commands::prs::launch(&cli, args)), |
| 56 | Commands::Pull => futures::executor::block_on(sub_commands::pull::launch()), | ||
| 54 | } | 57 | } |
| 55 | } | 58 | } |