Skip to content

Commit d44db95

Browse files
committed
fix: the release commit subject should not be sentence case
Instead of "chore: Release v1.2.3" the commit message should be "chore: release v1.2.3" with a lowercase "release".
1 parent f8cf6ec commit d44db95

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/create_github_release/tasks/commit_release.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class CommitRelease < TaskBase
3131
#
3232
def run
3333
print 'Making release commit...'
34-
`git commit -s -m 'chore: Release #{project.next_release_tag}'`
34+
`git commit -s -m 'chore: release #{project.next_release_tag}'`
3535
if $CHILD_STATUS.success?
3636
puts 'OK'
3737
else

spec/create_github_release/tasks/commit_release_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
let(:mocked_commands) do
3030
[
31-
MockedCommand.new("git commit -s -m 'chore: Release #{next_release_tag}'", exitstatus: git_exitstatus)
31+
MockedCommand.new("git commit -s -m 'chore: release #{next_release_tag}'", exitstatus: git_exitstatus)
3232
]
3333
end
3434

0 commit comments

Comments
 (0)