Skip to content

Commit 8894366

Browse files
otherguyjanniks
authored andcommitted
Automatic uppercasing of issue number (#15)
* Automatic uppercasing of issue number * Update scripts/prepare-commit-msg Co-Authored-By: otherguy <alex@basecamp.tirol>
1 parent 9903747 commit 8894366

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/prepare-commit-msg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ if !issue_number
6262
end
6363

6464
# combine to new message
65-
new_commit_message = "[#{issue_number}] #{original_commit_message.gsub(/(\s[[:punct:]])+$/, '')}"
65+
new_commit_message = "[#{issue_number.upcase}] #{original_commit_message.gsub(/(\s[[:punct:]])+$/, '')}"
6666

6767
# write new commit messge to file
6868
File.open(commit_file, 'w') do |f|

0 commit comments

Comments
 (0)