feat: adding linter for commits
This commit is contained in:
14
node_modules/@commitlint/read/lib/read.js
generated
vendored
Normal file
14
node_modules/@commitlint/read/lib/read.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const get_history_commits_1 = require("./get-history-commits");
|
||||
const get_edit_commit_1 = require("./get-edit-commit");
|
||||
// Get commit messages
|
||||
async function getCommitMessages(settings) {
|
||||
const { cwd, from, to, edit } = settings;
|
||||
if (edit) {
|
||||
return (0, get_edit_commit_1.getEditCommit)(cwd, edit);
|
||||
}
|
||||
return (0, get_history_commits_1.getHistoryCommits)({ from, to }, { cwd });
|
||||
}
|
||||
exports.default = getCommitMessages;
|
||||
//# sourceMappingURL=read.js.map
|
||||
Reference in New Issue
Block a user