(repo, prRef string)
| 257 | } |
| 258 | |
| 259 | func getPRDiff(repo, prRef string) ([]byte, error) { |
| 260 | cmd := exec.Command("gh", "pr", "diff", prRef, "--repo", repo) |
| 261 | output, err := cmd.Output() |
| 262 | if err != nil { |
| 263 | return nil, fmt.Errorf("gh pr diff: %w", err) |
| 264 | } |
| 265 | return output, nil |
| 266 | } |
| 267 | |
| 268 | func parsePRRef(input string) (string, string, int, error) { |
| 269 | candidate := strings.TrimSpace(strings.TrimSuffix(input, "/")) |