diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-07 09:10:01 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-07 09:10:01 +0300 |
commit | 28b137b0948e74805040b0c069ea09ff91f06143 (patch) | |
tree | 4b7d5fa3c25271af7f1e918f339b2c37780a09d8 /app/services/git | |
parent | f06d16d23c7ea5650ab7ddff3aa75c501dc71067 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/services/git')
-rw-r--r-- | app/services/git/branch_hooks_service.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/services/git/branch_hooks_service.rb b/app/services/git/branch_hooks_service.rb index aa471d3a69f..7de56c037ed 100644 --- a/app/services/git/branch_hooks_service.rb +++ b/app/services/git/branch_hooks_service.rb @@ -81,6 +81,8 @@ module Git branch_update_hooks if updating_branch? branch_change_hooks if creating_branch? || updating_branch? branch_remove_hooks if removing_branch? + + track_process_commit_limit_overflow end def branch_create_hooks @@ -123,6 +125,12 @@ module Git end end + def track_process_commit_limit_overflow + return if threshold_commits.count <= PROCESS_COMMIT_LIMIT + + Gitlab::Metrics.add_event(:process_commit_limit_overflow) + end + # Schedules processing of commit messages def enqueue_process_commit_messages referencing_commits = limited_commits.select(&:matches_cross_reference_regex?) |