-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Neko Ayaka <[email protected]>
- Loading branch information
1 parent
a407735
commit 1595676
Showing
26 changed files
with
589 additions
and
283 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"name": "@nolebase/integrations", | ||
"type": "module", | ||
"version": "2.0.0-rc14", | ||
"packageManager": "[email protected].0", | ||
"packageManager": "[email protected].2", | ||
"description": "A collection of diverse documentation engineering tools.", | ||
"author": { | ||
"name": "Nólëbase", | ||
|
@@ -36,9 +36,9 @@ | |
"test:run": "vitest run" | ||
}, | ||
"devDependencies": { | ||
"@antfu/eslint-config": "^2.17.0", | ||
"@antfu/eslint-config": "^2.18.1", | ||
"@antfu/ni": "^0.21.12", | ||
"@types/node": "^20.12.11", | ||
"@types/node": "^20.12.12", | ||
"@unocss/cli": "^0.59.4", | ||
"@unocss/eslint-config": "^0.58.9", | ||
"@unocss/eslint-plugin": "^0.58.9", | ||
|
@@ -49,14 +49,14 @@ | |
"concurrently": "^8.2.2", | ||
"eslint": "^8.57.0", | ||
"less": "^4.2.0", | ||
"rimraf": "^5.0.6", | ||
"rimraf": "^5.0.7", | ||
"typescript": "^5.4.5", | ||
"unbuild": "^2.0.0", | ||
"unocss": "^0.57.7", | ||
"unplugin-vue-macros": "^2.9.2", | ||
"vite": "^5.2.11", | ||
"vite-plugin-inspect": "^0.8.4", | ||
"vitepress": "^1.1.4", | ||
"vitepress": "^1.2.2", | ||
"vitest": "^1.6.0", | ||
"vue": "3.4.26", | ||
"vue-tsc": "^1.8.27" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
import { describe, expect, it } from 'vitest' | ||
import type { Contributor } from '../../types' | ||
import type { Commit, Contributor } from '../../types' | ||
import { | ||
extractAuthorsWithMultiple, | ||
findMapAuthorByEmail, | ||
findMapAuthorByName, | ||
findMapAuthorLink, | ||
|
@@ -286,3 +287,28 @@ describe('mapCommitAuthors', () => { | |
}) | ||
}) | ||
}) | ||
|
||
describe('extractAuthorsWithMultiple', () => { | ||
it('should match multiple authors', async () => { | ||
const multipleAuthors = ` | ||
Co-authored-by: Standard <[email protected]> | ||
Co-authored-by: Spaced LastSpaced <[email protected]> ` | ||
|
||
const authors = {} | ||
await extractAuthorsWithMultiple([], authors, { body: multipleAuthors } as Commit) | ||
expect(authors).toEqual({ | ||
'Standard': { | ||
name: 'Standard', | ||
commitsCount: 1, | ||
avatarUrl: 'https://gravatar.com/avatar/1f39f2ec8cfad7452e421075f63b5c70fbee98736bd91b52d20161f8148ce38d?d=retro', | ||
url: undefined, | ||
}, | ||
'Spaced LastSpaced': { | ||
name: 'Spaced LastSpaced', | ||
commitsCount: 1, | ||
avatarUrl: 'https://gravatar.com/avatar/d2bb5cf8baea77e9c60741c9815f13128ea1928b8a5342362af99d1f6fa69e07?d=retro', | ||
url: undefined, | ||
}, | ||
}) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.