From e30416ea33ac5d4abe550b5fbdddac08f24a793d Mon Sep 17 00:00:00 2001 From: paul lahana Date: Sun, 12 Apr 2026 18:44:52 +0200 Subject: [PATCH 1/2] Remove breaking pipes from pr titles --- gitbar_app/models/pull_request.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') From f2dc390381ab40abd7a981ec79962147a9f7cb84 Mon Sep 17 00:00:00 2001 From: paul lahana Date: Sun, 12 Apr 2026 18:44:59 +0200 Subject: [PATCH 2/2] Rubocop. --- gitbar_app/controller.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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.