mirror of
https://github.com/zadam/trilium.git
synced 2026-05-06 17:47:43 +02:00
scripts/update contributor list: optimize
This commit is contained in:
@@ -3,14 +3,14 @@
|
||||
"contributors": [
|
||||
{
|
||||
"name": "eliandoran",
|
||||
"url": "https://github.com/eliandoran",
|
||||
"fullName": "Elian Doran",
|
||||
"url": "https://github.com/eliandoran",
|
||||
"role": "lead-dev"
|
||||
},
|
||||
{
|
||||
"name": "zadam",
|
||||
"url": "https://github.com/zadam",
|
||||
"fullName": "Zadam",
|
||||
"url": "https://github.com/zadam",
|
||||
"role": "original-dev"
|
||||
},
|
||||
{
|
||||
|
||||
@@ -47,16 +47,14 @@ function getList(contributorInfo: any[]) {
|
||||
// Sort by the commit count. Honorific contributors are always first.
|
||||
.sort(contributorOrderer)
|
||||
.map((c) => {
|
||||
let result = {
|
||||
let pinnedInfo = PINNED_CONTRIBUTORS[c.login];
|
||||
|
||||
return {
|
||||
name: c.login,
|
||||
url: c.html_url
|
||||
fullName: pinnedInfo?.fullName,
|
||||
url: c.html_url,
|
||||
role: pinnedInfo?.role
|
||||
} as Contributor;
|
||||
|
||||
if (c.login in PINNED_CONTRIBUTORS) {
|
||||
result = {...result, ...PINNED_CONTRIBUTORS[c.login]};
|
||||
}
|
||||
|
||||
return result;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user