豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Commit 3870174

Browse files
committed
Fix capitalization condition in TitleBuilder#build method
1 parent b2aa0ec commit 3870174

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/lib/dependabot/pull_request_creator/message_builder/title_builder.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def self.multi_ecosystem_base_title(group_name:, update_count:)
5656
sig { returns(String) }
5757
def build
5858
name = base_title.dup
59-
name[0] = T.must(name[0]).capitalize if capitalize?
59+
name[0] = T.must(name[0]).capitalize if !name.empty? && capitalize?
6060
"#{prefix}#{name}"
6161
end
6262

0 commit comments

Comments
 (0)