-
Notifications
You must be signed in to change notification settings - Fork 145
Description
Currently, the context.commit object in the semantic-release/github plugin includes the author object with the following properties:
author.name: The name of the commit author.author.email: The email of the commit author.author.short: The date of the commit.
While these details are useful, adding the author.login property would be beneficial. The author.login would provide the GitHub/GitLab username of the commit author, allowing for easier association of commits with users in the open-source community.
Use Case:
One practical application of the author.login property is in generating release notes. For example, a releaseBodyTemplate could utilize the author.login to include a more personalized and identifiable reference to contributors as requested in #805. Here’s a sample config value demo'ing usage...
const releaseBodyTemplate = `
## Contributors
<% _.forEach(commits, function(commit) { %>
<img src="https://github.com/<%- commit.author.login %>.png" alt="<%- commit.author.login %>" width="50">
<% }) %>
`;This addition would enhance the visibility of contributors in release notes and improve the overall attribution process.
Request:
Please consider adding the author.login property to the author object within the context.commit. This enhancement will facilitate better integration with user identities on GitHub/GitLab and improve the generation of release notes and other related tasks.