Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

[#56065] Disable metrics for existing method to avoid refactoring for small bugfix

Judith Roth7fd348b75c47
diff --git a/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/merge_request_hook.rb b/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/merge_request_hook.rb
index 01619824ba2..32609923460 100644
--- a/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/merge_request_hook.rb
+++ b/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/merge_request_hook.rb
@@ -34,7 +34,7 @@ module OpenProject::GitlabIntegration
class MergeRequestHook
include OpenProject::GitlabIntegration::NotificationHandler::Helper
- def process(payload_params)
+ def process(payload_params) # rubocop:disable Metrics/AbcSize, Metrics/PerceivedComplexity
update_status_on_new_mr = false # true if you only reference one merge by work_package, else false.
update_status_on_merged = false # true if you only reference one merge by work_package, else false.
wp_status_id_on_new_mr = 7 # the id of the status.