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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
address rubocop comments
Markus Kahl9e65bca60995
diff --git a/modules/github_integration/app/components/deploy_targets/row_component.rb b/modules/github_integration/app/components/deploy_targets/row_component.rbindex b17462f0947..7d06e9dc506 100644--- a/modules/github_integration/app/components/deploy_targets/row_component.rb+++ b/modules/github_integration/app/components/deploy_targets/row_component.rb@@ -29,7 +29,7 @@#++module DeployTargets- class RowComponent < ::RowComponent+ class RowComponent < ::RowComponent # rubocop:disable OpenProject/AddPreviewForViewComponentproperty :host, :typedef deploy_targetdiff --git a/modules/github_integration/app/components/deploy_targets/table_component.rb b/modules/github_integration/app/components/deploy_targets/table_component.rbindex a1f49cad49b..2cd46d501f2 100644--- a/modules/github_integration/app/components/deploy_targets/table_component.rb+++ b/modules/github_integration/app/components/deploy_targets/table_component.rb@@ -29,7 +29,7 @@#++module DeployTargets- class TableComponent < ::TableComponent+ class TableComponent < ::TableComponent # rubocop:disable OpenProject/AddPreviewForViewComponentcolumns :host, :type, :created_atoptions :current_userdiff --git a/modules/github_integration/app/controllers/deploy_targets_controller.rb b/modules/github_integration/app/controllers/deploy_targets_controller.rbindex 32599b70260..ed64c7d88fb 100644--- a/modules/github_integration/app/controllers/deploy_targets_controller.rb+++ b/modules/github_integration/app/controllers/deploy_targets_controller.rb@@ -48,11 +48,11 @@ class DeployTargetsController < ApplicationController@deploy_target = DeployTarget.create **argsif @deploy_target.persisted?- flash[:success] = "Deploy target created"+ flash[:success] = I18n.t(:notice_deploy_target_created)redirect_to deploy_targets_pathelse- render 'new'+ render "new"endend@@ -61,7 +61,7 @@ class DeployTargetsController < ApplicationControllerdeploy_target.destroy!- flash[:success] = "Deploy target deleted"+ flash[:success] = I18n.t(:notice_deploy_target_destroyed)redirect_to deploy_targets_pathenddiff --git a/modules/github_integration/spec/factories/deploy_target_factory.rb b/modules/github_integration/spec/factories/deploy_target_factory.rbindex a40895a43ad..42fcf21bd5e 100644--- a/modules/github_integration/spec/factories/deploy_target_factory.rb+++ b/modules/github_integration/spec/factories/deploy_target_factory.rb@@ -32,6 +32,6 @@ FactoryBot.define dosequence(:host) { |n| "https://qa-#{n}.openproject-edge.com" }- api_key { '4p1k3y' }+ api_key { "4p1k3y" }endenddiff --git a/modules/github_integration/spec/requests/extended_root_resource_spec.rb b/modules/github_integration/spec/requests/extended_root_resource_spec.rbindex d380dfde3b9..03422d4e26e 100644--- a/modules/github_integration/spec/requests/extended_root_resource_spec.rb+++ b/modules/github_integration/spec/requests/extended_root_resource_spec.rb@@ -59,7 +59,7 @@ RSpec.describe "API v3 Root resource with the github integration extension", witendit "responds with 200" do- expect(response.status).to eq(200)+ expect(response.status).to eq(200) # rubocop:disable RSpecRails/HaveHttpStatusendit "does not include the core SHA in the res" do@@ -79,11 +79,11 @@ RSpec.describe "API v3 Root resource with the github integration extension", witendit "responds with 200" do- expect(response.status).to eq(200)+ expect(response.status).to eq(200) # rubocop:disable RSpecRails/HaveHttpStatusendit "does includes the core SHA in the response" do- expect(subject).to be_json_eql(core_sha.to_json ).at_path("coreSha")+ expect(subject).to be_json_eql(core_sha.to_json).at_path("coreSha")endendend