(raw string)
| 2740 | } |
| 2741 | |
| 2742 | func parseOptionalReviewStatus(raw string) (taskpkg.RunReviewStatus, error) { |
| 2743 | trimmed := strings.TrimSpace(raw) |
| 2744 | if trimmed == "" { |
| 2745 | return "", nil |
| 2746 | } |
| 2747 | status := taskpkg.RunReviewStatus(trimmed).Normalize() |
| 2748 | if err := status.Validate("review_status"); err != nil { |
| 2749 | return "", fmt.Errorf("cli: %w", err) |
| 2750 | } |
| 2751 | return status, nil |
| 2752 | } |
| 2753 | |
| 2754 | func parseRequiredReviewOutcome(raw string) (taskpkg.RunReviewOutcome, error) { |
| 2755 | outcome := taskpkg.RunReviewOutcome(strings.TrimSpace(raw)).Normalize() |
no test coverage detected