isProjectLevelEmail checks if the email is a project-level email.
(email, suffix string)
| 562 | |
| 563 | // isProjectLevelEmail checks if the email is a project-level email. |
| 564 | func isProjectLevelEmail(email, suffix string) bool { |
| 565 | // Format: {name}@{project-id}.{suffix} |
| 566 | parts := strings.Split(email, "@") |
| 567 | if len(parts) != 2 { |
| 568 | return false |
| 569 | } |
| 570 | domain := parts[1] |
| 571 | return strings.HasSuffix(domain, fmt.Sprintf(".%s", suffix)) |
| 572 | } |
| 573 | |
| 574 | func FormatReviewConfig(id string) string { |
| 575 | return fmt.Sprintf("%s%s", ReviewConfigPrefix, id) |
no outgoing calls
no test coverage detected