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
GitHub markdown converts @-references with links to user profiles. Using
the full author name means potentially including a space which breaks this
linking behavior. Instead of the author name (Ex: Mario Tacke), this fix
uses the author login (Ex: mariotacke) to form a proper link in the
release notes and changelog).
This fixes#158
Copy file name to clipboardExpand all lines: test/Gren.spec.js
+13-13Lines changed: 13 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -345,31 +345,31 @@ describe('Gren', () => {
345
345
commit: {
346
346
message: 'First commit',
347
347
author: {
348
-
name: 'alexcanessa'
348
+
login: 'alexcanessa'
349
349
}
350
350
}
351
351
},
352
352
{
353
353
commit: {
354
354
message: 'This is another commit',
355
355
author: {
356
-
name: 'alexcanessa'
356
+
login: 'alexcanessa'
357
357
}
358
358
}
359
359
},
360
360
{
361
361
commit: {
362
362
message: 'Merge branch into master: Something else here to be tested',
363
363
author: {
364
-
name: 'alexcanessa'
364
+
login: 'alexcanessa'
365
365
}
366
366
}
367
367
},
368
368
{
369
369
commit: {
370
370
message: 'This is the last one',
371
371
author: {
372
-
name: 'alexcanessa'
372
+
login: 'alexcanessa'
373
373
}
374
374
}
375
375
}
@@ -387,52 +387,52 @@ describe('Gren', () => {
387
387
it('Should not return the last message',()=>{
388
388
constlastMessage=commitMessages.slice(-1)[0];
389
389
390
-
assert.notInclude(gren._generateCommitsBody(commitMessages),`${lastMessage.commit.message} - ${lastMessage.commit.author.name}`,'Generate the messages');
390
+
assert.notInclude(gren._generateCommitsBody(commitMessages),`${lastMessage.commit.message} - ${lastMessage.commit.author.login}`,'Generate the messages');
0 commit comments