(pr: &GithubPrRuntimeInfo)
| 4982 | } |
| 4983 | |
| 4984 | fn github_push_to_fork(pr: &GithubPrRuntimeInfo) -> anyhow::Result<()> { |
| 4985 | let remote_name = "fork"; |
| 4986 | let remote_url = format!("https://github.com/{}.git", pr.head_repo_full_name); |
| 4987 | if git_run(&["remote", "get-url", remote_name]).is_ok() { |
| 4988 | git_run(&["remote", "set-url", remote_name, &remote_url])?; |
| 4989 | } else { |
| 4990 | git_run(&["remote", "add", remote_name, &remote_url])?; |
| 4991 | } |
| 4992 | git_run(&["push", remote_name, &format!("HEAD:{}", pr.head_ref)]) |
| 4993 | } |
| 4994 | |
| 4995 | fn github_summary_title(response: &str, fallback: &str) -> String { |
| 4996 | let first = response |
no test coverage detected