light-release
Advanced tools
Comparing version 2.6.2 to 2.7.0
@@ -0,1 +1,11 @@ | ||
## [2.7.0] - February 9, 2025 | ||
### Changes | ||
- Release notes generated for version [2.7.0](.release-notes/2.7.0/release.md) | ||
## [2.7.0] - February 9, 2025 | ||
### Changes | ||
- Release notes generated for version [2.7.0](.release-notes/2.7.0/release.md) | ||
## [2.6.2] - February 7, 2025 | ||
@@ -2,0 +12,0 @@ |
@@ -39,10 +39,11 @@ /** | ||
* Get committer information from the email | ||
* @param {*} email email of the committer | ||
* @param {string} email email of the committer | ||
* @param {string?} author author of the committer | ||
* @returns | ||
*/ | ||
function getCommitterInfo(email) { | ||
function getCommitterInfo(email, author) { | ||
const emailParts = email?.split('@') || ['']; | ||
const username = emailParts[0]; | ||
const username = author || emailParts[0]; | ||
let profileLink = `https://github.com/${username}`; | ||
let profileLink = `https://github.com/${author || username}`; | ||
@@ -49,0 +50,0 @@ if (!username) { |
@@ -60,3 +60,3 @@ const fs = require('fs'); | ||
for (const commit of commits) { | ||
let committer = getCommitterInfo(commit.email); | ||
let committer = getCommitterInfo(commit.email, commit.author); | ||
committer.name = committer.name?.replace(/.*?\+/g, ''); | ||
@@ -63,0 +63,0 @@ committer.image = committer.name ? `https://avatars.githubusercontent.com/${committer.name}` : null; |
{ | ||
"name": "light-release", | ||
"version": "2.6.2", | ||
"version": "2.7.0", | ||
"description": "A lightweight tool to automate your release process, compatible with conventional commit messages. It reads your commit history, determines the release type, and generates release notes without unnecessary dependencies.", | ||
@@ -5,0 +5,0 @@ "bin": { |
@@ -12,4 +12,4 @@ # Light Release | ||
 | ||
 | ||
[](https://www.npmjs.com/package/light-release) | ||
[](https://www.npmjs.com/package/light-release) | ||
 | ||
@@ -16,0 +16,0 @@ |
460904
70
687