feat(git-changelog): display commit authors inside line with avatars #693
ci.yaml
on: pull_request
Lint
30s
Packages Build Test
1m 0s
Matrix: unittest
Annotations
6 errors
src/vite/helpers.test.ts > parseCommits > should init commit with fields transformed:
packages/vitepress-plugin-git-changelog/src/vite/helpers.test.ts#L562
AssertionError: expected { commits: [ { …(7) } ], …(1) } to deeply equal { commits: [ { …(7) } ], …(1) }
- Expected
+ Received
Object {
"authors": Array [
Object {
"avatarUrl": "https://gravatar.com/avatar/b4c9a289323b21a01c3e940f150eb9b8c542587f1abfd8f0e1cc1ffc5e475514?d=retro",
"name": "First Last",
},
],
"commits": Array [
Object {
"authors": Array [
- "First Last",
+ Object {
+ "avatarUrl": "https://gravatar.com/avatar/b4c9a289323b21a01c3e940f150eb9b8c542587f1abfd8f0e1cc1ffc5e475514?d=retro",
+ "email": "[email protected]",
+ "name": "First Last",
+ },
],
"date_timestamp": 1711368353000,
"hash": "c16db1033fce57f50b261e9944c136a26fcaccc6",
"hash_url": "https://github.com/example-org/example/commit/c16db1033fce57f50b261e9944c136a26fcaccc6",
"message": "release: v1.24.3",
"paths": Array [
"/fack/path/1.md",
"/fack/path/2.md",
],
"repo_url": "https://github.com/example-org/example",
},
],
}
❯ src/vite/helpers.test.ts:562:20
|
src/vite/helpers.test.ts > parseCommits > should transform for commit contains refs:
packages/vitepress-plugin-git-changelog/src/vite/helpers.test.ts#L605
AssertionError: expected { commits: [ { …(11) } ], …(1) } to deeply equal { commits: [ { …(11) } ], …(1) }
- Expected
+ Received
Object {
"authors": Array [
Object {
"avatarUrl": "https://gravatar.com/avatar/b4c9a289323b21a01c3e940f150eb9b8c542587f1abfd8f0e1cc1ffc5e475514?d=retro",
"name": "First Last",
},
],
"commits": Array [
Object {
"authors": Array [
- "First Last",
+ Object {
+ "avatarUrl": "https://gravatar.com/avatar/b4c9a289323b21a01c3e940f150eb9b8c542587f1abfd8f0e1cc1ffc5e475514?d=retro",
+ "email": "[email protected]",
+ "name": "First Last",
+ },
],
"date_timestamp": 1711368353000,
"hash": "c16db1033fce57f50b261e9944c136a26fcaccc6",
"hash_url": "https://github.com/example-org/example/commit/c16db1033fce57f50b261e9944c136a26fcaccc6",
"message": "release: v1.24.3",
"paths": Array [
"/fack/path/1.md",
"/fack/path/2.md",
],
"release_tag_url": "https://github.com/example-org/example/releases/tag/v1.28.0",
"release_tags_url": Array [
"https://github.com/example-org/example/releases/tag/v1.28.0",
],
"repo_url": "https://github.com/example-org/example",
"tag": "v1.28.0",
"tags": Array [
"v1.28.0",
],
},
],
}
❯ src/vite/helpers.test.ts:605:20
|
src/vite/helpers.test.ts > parseCommits > should transform for commit contains co-authors:
packages/vitepress-plugin-git-changelog/src/vite/helpers.test.ts#L651
AssertionError: expected { commits: [ { …(7) } ], …(1) } to deeply equal { commits: [ { …(7) } ], …(1) }
- Expected
+ Received
Object {
"authors": Array [
Object {
"avatarUrl": "https://gravatar.com/avatar/b4c9a289323b21a01c3e940f150eb9b8c542587f1abfd8f0e1cc1ffc5e475514?d=retro",
"name": "First Last",
},
Object {
"avatarUrl": "https://gravatar.com/avatar/b4c9a289323b21a01c3e940f150eb9b8c542587f1abfd8f0e1cc1ffc5e475514?d=retro",
"name": "First Last2",
},
],
"commits": Array [
Object {
"authors": Array [
- "First Last",
- "First Last2",
+ Object {
+ "avatarUrl": "https://gravatar.com/avatar/b4c9a289323b21a01c3e940f150eb9b8c542587f1abfd8f0e1cc1ffc5e475514?d=retro",
+ "email": "[email protected]",
+ "name": "First Last",
+ },
+ Object {
+ "avatarUrl": "https://gravatar.com/avatar/b4c9a289323b21a01c3e940f150eb9b8c542587f1abfd8f0e1cc1ffc5e475514?d=retro",
+ "email": "[email protected]",
+ "name": "First Last2",
+ },
],
"date_timestamp": 1711368353000,
"hash": "c16db1033fce57f50b261e9944c136a26fcaccc6",
"hash_url": "https://github.com/example-org/example/commit/c16db1033fce57f50b261e9944c136a26fcaccc6",
"message": "release: v1.24.3",
"paths": Array [
"/fack/path/1.md",
"/fack/path/2.md",
],
"repo_url": "https://github.com/example-org/example",
},
],
}
❯ src/vite/helpers.test.ts:651:20
|
Unit Tests - 20.x
Process completed with exit code 1.
|
Unit Tests - 22.x
The job was canceled because "_20_x" failed.
|
Unit Tests - 22.x
The operation was canceled.
|