File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed
lib/dependabot/pull_request_creator/message_builder
spec/dependabot/pull_request_creator/message_builder Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ def prefix
7777 def capitalize?
7878 return T . must ( prefixer ) . capitalize_first_word? if prefixer
7979
80- false
80+ true
8181 end
8282
8383 # Builds prefix from explicit commit_message_options only.
Original file line number Diff line number Diff line change 2424 described_class . new ( base_title : "bump lodash from 4.0.0 to 5.0.0" )
2525 end
2626
27- it "returns the base title unchanged " do
28- expect ( builder . build ) . to eq ( "bump lodash from 4.0.0 to 5.0.0" )
27+ it "capitalizes the first letter by default " do
28+ expect ( builder . build ) . to eq ( "Bump lodash from 4.0.0 to 5.0.0" )
2929 end
3030 end
3131
5252 end
5353
5454 it "applies the prefix" do
55- expect ( builder . build ) . to eq ( "[ci]: bump lodash from 4.0.0 to 5.0.0" )
55+ expect ( builder . build ) . to eq ( "[ci]: Bump lodash from 4.0.0 to 5.0.0" )
5656 end
5757 end
5858
7979 end
8080
8181 it "does not double-space" do
82- expect ( builder . build ) . to eq ( "[ci] bump lodash from 4.0.0 to 5.0.0" )
82+ expect ( builder . build ) . to eq ( "[ci] Bump lodash from 4.0.0 to 5.0.0" )
8383 end
8484 end
8585
116116 end
117117
118118 it "includes scope in the prefix" do
119- expect ( builder . build ) . to eq ( "chore(deps): bump lodash from 4.0.0 to 5.0.0" )
119+ expect ( builder . build ) . to eq ( "chore(deps): Bump lodash from 4.0.0 to 5.0.0" )
120120 end
121121 end
122122
153153 end
154154
155155 it "uses the development prefix" do
156- expect ( builder . build ) . to eq ( "chore: bump eslint from 7.0.0 to 8.0.0" )
156+ expect ( builder . build ) . to eq ( "chore: Bump eslint from 7.0.0 to 8.0.0" )
157157 end
158158 end
159159
198198 ]
199199 end
200200
201- it "returns the base title without prefix" do
202- expect ( builder . build ) . to eq ( "bump lodash from 4.0.0 to 5.0.0" )
201+ it "capitalizes the base title without prefix" do
202+ expect ( builder . build ) . to eq ( "Bump lodash from 4.0.0 to 5.0.0" )
203203 end
204204 end
205205 end
You can’t perform that action at this time.
0 commit comments