We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a1101b commit 77f606bCopy full SHA for 77f606b
scripts/releaseChangelog.mjs
@@ -111,7 +111,18 @@ async function main(argv) {
111
return chalk.red("TODO INSERT AUTHOR'S USERNAME");
112
}
113
114
- return commit.author?.login;
+ const authorLogin = commit.author.login;
115
+
116
+ if (authorLogin === 'github-actions[bot]') {
117
+ const authorFromMessage = /\(@(?<author>[a-zA-Z0-9-_]+)\) \(#[\d]+\)/.exec(
118
+ commit.commit.message.split('\n')[0],
119
+ );
120
+ if (authorFromMessage.groups?.author) {
121
+ return authorFromMessage.groups.author;
122
+ }
123
124
125
+ return authorLogin;
126
};
127
128
const authors = Array.from(
0 commit comments