(s string, line string)
| 18 | } |
| 19 | |
| 20 | func parseLinesChanged(s string, line string) (int, error) { |
| 21 | changed, err := strconv.Atoi(s) |
| 22 | if err != nil { |
| 23 | return 0, fmt.Errorf("could not parse %s as int on line \"%s\": %w", |
| 24 | s, |
| 25 | line, |
| 26 | err, |
| 27 | ) |
| 28 | } |
| 29 | |
| 30 | return changed, nil |
| 31 | } |
| 32 | |
| 33 | func allowCommit(commit Commit, now time.Time) bool { |
| 34 | if commit.AuthorName == "" && commit.AuthorEmail == "" { |