Feature Request: Add `author.login` to `context.commit` for Improved Commit Author Identification
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 42/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- github, javascript
- Lĩnh vực
- release
Hướng nghiên cứu
Bắt đầu bằng cách theo dõi cách plugin semantic-release/github xây dựng context.commit và author object của nó. Kiểm tra các test hiện có liên quan đến commit context, nếu có, sau đó xác minh rằng author.login được expose và có thể được sử dụng trong releaseBodyTemplate example được minh họa mà không làm hỏng các author fields hiện có.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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 https://github.com/semantic-release/github/issues/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.
- Ngôn ngữ chính
- JavaScript
- Star
- 535
- Fork
- 150
- Merge trung bình
- 1 phút
- Pull request đã merge (30 ngày)
- 3
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của semantic-release/github
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
semantic-release/github#1297 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
semantic-release/github#1242 · 1 bình luận · 4 reaction ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
semantic-release/github#1103 · 1 bình luận · 1 reaction ·
-
[@semantic-release/github] step fails with 404 error when trying to access non-existent PR # 1 Đang mởbug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
semantic-release/github#1092 · 6 bình luận ·
-
immutable releases Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
semantic-release/github#1082 · 5 bình luận · 2 reaction ·
Tất cả issue của semantic-release/github
Issue tương tự
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
githubnext/gh-aw-workshop#3692 ·
-
agent/guide documentation hive/hosted-available-lke648397-260827-5n31
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
-
Add: BuyPass TV Đang mởchannels:add check:passed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
S: triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
apache/cloudstack#14222 ·