backport
Version:
A CLI tool that automates the process of backporting commits
13 lines • 429 B
JavaScript
export 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,
};
}
//# sourceMappingURL=author.js.map