File tree Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Original file line number Diff line number Diff line change 49
49
pullRequests.push({
50
50
title: pr.title,
51
51
url: pr.html_url,
52
- labels: pr.labels.map((label) => label.name)
52
+ labels: pr.labels.map((label) => label.name),
53
+ author: pr.user.login
53
54
});
54
55
}
55
56
});
@@ -70,19 +71,19 @@ jobs:
70
71
let content = `# ${{ github.ref_name }}\n`;
71
72
72
73
if (breakingChanges.length > 0) {
73
- content += `## 🚧 Breaking Changes\n\n${breakingChanges.map((pull) => `- ${pull.title} (${pull.url})`).join("\n")}\n\n`;
74
+ content += `## 🚧 Breaking Changes\n\n${breakingChanges.map((pull) => `- ${pull.title} (${pull.url}) by @${pull.author} `).join("\n")}\n\n`;
74
75
}
75
76
76
77
if (enhancements.length > 0) {
77
- content += `## ✨ Enhancements\n\n${enhancements.map((pull) => `- ${pull.title} (${pull.url})`).join("\n")}\n\n`;
78
+ content += `## ✨ Enhancements\n\n${enhancements.map((pull) => `- ${pull.title} (${pull.url}) by @${pull.author} `).join("\n")}\n\n`;
78
79
}
79
80
80
81
if (bugFixes.length > 0) {
81
- content += `## 🐛 Bug Fixes\n\n${bugFixes.map((pull) => `- ${pull.title} (${pull.url})`).join("\n")}\n\n`;
82
+ content += `## 🐛 Bug Fixes\n\n${bugFixes.map((pull) => `- ${pull.title} (${pull.url}) by @${pull.author} `).join("\n")}\n\n`;
82
83
}
83
84
84
85
if (otherChanges.length > 0) {
85
- content += `## 📦 Other Changes\n\n${otherChanges.map((pull) => `- ${pull.title} (${pull.url})`).join("\n")}\n\n`;
86
+ content += `## 📦 Other Changes\n\n${otherChanges.map((pull) => `- ${pull.title} (${pull.url}) by @${pull.author} `).join("\n")}\n\n`;
86
87
}
87
88
88
89
const releaseResponse = await github.rest.repos.getReleaseByTag({
Original file line number Diff line number Diff line change 41
41
pullRequests.push({
42
42
title: pr.title,
43
43
url: pr.html_url,
44
- labels: pr.labels.map((label) => label.name)
44
+ labels: pr.labels.map((label) => label.name),
45
+ author: pr.user.login
45
46
});
46
47
}
47
48
});
@@ -61,19 +62,19 @@ jobs:
61
62
let content = `# ${{ github.ref_name }}\n`;
62
63
63
64
if (breakingChanges.length > 0) {
64
- content += `## 🚧 Breaking Changes\n\n${breakingChanges.map((pull) => `- ${pull.title} (${pull.url})`).join("\n")}\n\n`;
65
+ content += `## 🚧 Breaking Changes\n\n${breakingChanges.map((pull) => `- ${pull.title} (${pull.url}) by @${pull.author} `).join("\n")}\n\n`;
65
66
}
66
67
67
68
if (enhancements.length > 0) {
68
- content += `## ✨ Enhancements\n\n${enhancements.map((pull) => `- ${pull.title} (${pull.url})`).join("\n")}\n\n`;
69
+ content += `## ✨ Enhancements\n\n${enhancements.map((pull) => `- ${pull.title} (${pull.url}) by @${pull.author} `).join("\n")}\n\n`;
69
70
}
70
71
71
72
if (bugFixes.length > 0) {
72
- content += `## 🐛 Bug Fixes\n\n${bugFixes.map((pull) => `- ${pull.title} (${pull.url})`).join("\n")}\n\n`;
73
+ content += `## 🐛 Bug Fixes\n\n${bugFixes.map((pull) => `- ${pull.title} (${pull.url}) by @${pull.author} `).join("\n")}\n\n`;
73
74
}
74
75
75
76
if (otherChanges.length > 0) {
76
- content += `## 📦 Other Changes\n\n${otherChanges.map((pull) => `- ${pull.title} (${pull.url})`).join("\n")}\n\n`;
77
+ content += `## 📦 Other Changes\n\n${otherChanges.map((pull) => `- ${pull.title} (${pull.url}) by @${pull.author} `).join("\n")}\n\n`;
77
78
}
78
79
79
80
await github.rest.repos.createRelease({
You can’t perform that action at this time.
0 commit comments