diff --git a/gitbar_app/controller.rb b/gitbar_app/controller.rb index d52a077..1abcf49 100644 --- a/gitbar_app/controller.rb +++ b/gitbar_app/controller.rb @@ -1,4 +1,6 @@ -require_relative 'models/repository.rb' +# frozen_string_literal: true + +require_relative 'models/repository' # Controller # Service controller to construct `Repository` objects from provided data. diff --git a/gitbar_app/models/pull_request.rb b/gitbar_app/models/pull_request.rb index 173c64d..90e1f82 100644 --- a/gitbar_app/models/pull_request.rb +++ b/gitbar_app/models/pull_request.rb @@ -42,7 +42,7 @@ def can_be_merged? end def set_pr_with(pr_data:) - @title = pr_data.dig('title') + @title = pr_data.dig('title').gsub('|', ' ') @number = pr_data.dig('number') @url = pr_data.dig('url') @status_check_rollup = pr_data.dig('statusCheckRollup', 0, 'targetUrl')