Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Commit

Permalink
Update pending_review/pull_request.go
Browse files Browse the repository at this point in the history
Co-authored-by: ericLemanissier <ericLemanissier@users.noreply.github.com>
  • Loading branch information
prince-chrismc and ericLemanissier authored Feb 1, 2023
1 parent 9b76595 commit f12e586
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pending_review/pull_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,10 @@ func processChangedFiles(files []*CommitFile) (*change, error) {
change.Weight = REGULAR
} else if len(files) <= 9 && addition <= 225 && deletions == 0 { // Basic new recipe addition with `test_v1_package`
change.Weight = REGULAR
} else if len(files) > 12 || (addition+deletions) >= 500 {
change.Weight = TOO_MUCH
} else if len(files) <= 12 || (addition+deletions) < 500 {
change.Weight = HEAVY
} else {
change.Weight = TOO_MUCH
}

return change, nil
Expand Down

0 comments on commit f12e586

Please sign in to comment.