Title: [281936] trunk/Websites/bugs.webkit.org
- Revision
- 281936
- Author
- jbed...@apple.com
- Date
- 2021-09-02 10:32:51 -0700 (Thu, 02 Sep 2021)
Log Message
[contributors.json] Relocation (Part 4)
https://bugs.webkit.org/show_bug.cgi?id=229690
<rdar://problem/82552403>
Reviewed by Aakash Jain.
* committers-autocomplete.js: Use metadata/contributors.json.
(parseCommittersPy): Parse contributors.json as list instead of dictionary.
Modified Paths
Diff
Modified: trunk/Websites/bugs.webkit.org/ChangeLog (281935 => 281936)
--- trunk/Websites/bugs.webkit.org/ChangeLog 2021-09-02 17:25:34 UTC (rev 281935)
+++ trunk/Websites/bugs.webkit.org/ChangeLog 2021-09-02 17:32:51 UTC (rev 281936)
@@ -1,3 +1,14 @@
+2021-09-02 Jonathan Bedard <jbed...@apple.com>
+
+ [contributors.json] Relocation (Part 4)
+ https://bugs.webkit.org/show_bug.cgi?id=229690
+ <rdar://problem/82552403>
+
+ Reviewed by Aakash Jain.
+
+ * committers-autocomplete.js: Use metadata/contributors.json.
+ (parseCommittersPy): Parse contributors.json as list instead of dictionary.
+
2021-04-27 Jonathan Bedard <jbed...@apple.com>
Bugzilla needs to linkify identifiers (Part 2)
Modified: trunk/Websites/bugs.webkit.org/committers-autocomplete.js (281935 => 281936)
--- trunk/Websites/bugs.webkit.org/committers-autocomplete.js 2021-09-02 17:25:34 UTC (rev 281935)
+++ trunk/Websites/bugs.webkit.org/committers-autocomplete.js 2021-09-02 17:32:51 UTC (rev 281936)
@@ -24,7 +24,7 @@
// DAMAGE.
WebKitCommitters = (function() {
- var COMMITTERS_URL = 'https://svn.webkit.org/repository/webkit/trunk/Tools/Scripts/webkitpy/common/config/contributors.json';
+ var COMMITTERS_URL = 'https://svn.webkit.org/repository/webkit/trunk/metadata/contributors.json';
var m_committers;
function statusToType(status) {
@@ -36,19 +36,15 @@
}
function parseCommittersPy(text) {
- var contributors = JSON.parse(text);
-
m_committers = [];
-
- for (var name in contributors) {
- var record = contributors[name];
+ JSON.parse(text).forEach(contributor => {
m_committers.push({
- name: name,
- emails: record.emails,
- irc: record.nicks,
- type: statusToType(record.status),
+ name: contributor.name,
+ emails: contributor.emails,
+ irc: contributor.nicks,
+ type: statusToType(contributor.status),
});
- }
+ })
}
function loadCommitters(callback) {
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes