UNPKG

backport

Version:

A CLI tool that automates the process of backporting commits

17 lines 576 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getCommitAuthor = void 0; function getCommitAuthor({ options, commit, }) { if (options.resetAuthor) { return { name: options.authenticatedUsername, email: `<${options.authenticatedUsername}@users.noreply.github.com>`, }; } return { name: options.gitAuthorName ?? commit.author.name, email: options.gitAuthorEmail ?? commit.author.email, }; } exports.getCommitAuthor = getCommitAuthor; //# sourceMappingURL=author.js.map