(response: &str, fallback: &str)
| 4993 | } |
| 4994 | |
| 4995 | fn github_summary_title(response: &str, fallback: &str) -> String { |
| 4996 | let first = response |
| 4997 | .lines() |
| 4998 | .map(str::trim) |
| 4999 | .find(|line| !line.is_empty()) |
| 5000 | .unwrap_or(fallback) |
| 5001 | .trim(); |
| 5002 | if first.is_empty() { |
| 5003 | return fallback.to_string(); |
| 5004 | } |
| 5005 | truncate_text(first, 72) |
| 5006 | } |
| 5007 | |
| 5008 | fn github_create_pr( |
| 5009 | owner: &str, |
no test coverage detected