gou_git/
github.rs

1use std::process::Command;
2
3pub struct Github;
4
5impl Github {
6    pub fn create_pr(message: &str, target_branch: &str) {
7        Command::new("gh")
8            .arg("pr")
9            .arg("create")
10            .arg("--title")
11            .arg(message)
12            .arg("--body")
13            .arg("")
14            .arg("--base")
15            .arg(target_branch)
16            .spawn()
17            .expect("Failed to create PR")
18            .wait()
19            .expect("Failed to wait for create PR");
20    }
21}