Skip to content

Commit 344a94f

Browse files
committed
dbeaver/dbeaver-devops#1622 another msg trimmer
1 parent c2c2c84 commit 344a94f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

commit-msg-matcher/dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31213,7 +31213,7 @@ async function main() {
3121331213
});
3121431214
const lastCommit = listCommits.slice(0);
3121531215
console.log(lastCommit[0].commit.message);
31216-
const lastCommitMessage = lastCommit[0].commit.message;
31216+
const lastCommitMessage = lastCommit[0].commit.message.trim();
3121731217

3121831218
if (!lastCommitMessage) {
3121931219
core.setFailed('Empty commit message.');

commit-msg-matcher/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ async function main() {
120120
});
121121
const lastCommit = listCommits.slice(0);
122122
console.log(lastCommit[0].commit.message);
123-
const lastCommitMessage = lastCommit[0].commit.message;
123+
const lastCommitMessage = lastCommit[0].commit.message.trim();
124124

125125
if (!lastCommitMessage) {
126126
core.setFailed('Empty commit message.');

0 commit comments

Comments
 (0)