diff --git a/contributors.json b/contributors.json index 6174022b78..6add5804ed 100644 --- a/contributors.json +++ b/contributors.json @@ -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" }, { diff --git a/scripts/update-contributor-list.ts b/scripts/update-contributor-list.ts index 6c8e9ea1fa..2070575fe4 100644 --- a/scripts/update-contributor-list.ts +++ b/scripts/update-contributor-list.ts @@ -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; }); }