You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/ConventionalCommitReleaseNotes.ts
+22-9
Original file line number
Diff line number
Diff line change
@@ -39,13 +39,15 @@ export default class ConventionalCommitReleaseNotes {
39
39
* @param [options.toVersion] To version.
40
40
* @param [options.versionHeader] "true" to show version header.
41
41
* @param [options.author] "githubUsername" or "nameAndEmail".
42
+
* @param [options.authorUsername] Use this username for author when "author" is not specified or if it was not possible to retrieve the Github username based on email.
42
43
* @returns Release notes.
43
44
*/
44
45
publicstaticasyncgetReleaseNotes(options?: {
45
46
fromVersion?: string;
46
47
toVersion?: string;
47
48
versionHeader?: boolean;
48
49
author?: 'githubUsername'|'nameAndEmail';
50
+
authorUsername?: string;
49
51
}): Promise<string>{
50
52
constreleases=awaitthis.getReleases(options);
51
53
letoutput='';
@@ -61,18 +63,28 @@ export default class ConventionalCommitReleaseNotes {
0 commit comments