Changeset 281936 in webkit


Ignore:
Timestamp:
Sep 2, 2021, 10:32:51 AM (4 years ago)
Author:
Jonathan Bedard
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.

Location:
trunk/Websites/bugs.webkit.org
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Websites/bugs.webkit.org/ChangeLog

    r276640 r281936  
     12021-09-02  Jonathan Bedard  <jbedard@apple.com>
     2
     3        [contributors.json] Relocation (Part 4)
     4        https://bugs.webkit.org/show_bug.cgi?id=229690
     5        <rdar://problem/82552403>
     6
     7        Reviewed by Aakash Jain.
     8
     9        * committers-autocomplete.js: Use metadata/contributors.json.
     10        (parseCommittersPy): Parse contributors.json as list instead of dictionary.
     11
    1122021-04-27  Jonathan Bedard  <jbedard@apple.com>
    213
  • trunk/Websites/bugs.webkit.org/committers-autocomplete.js

    r210931 r281936  
    2525
    2626WebKitCommitters = (function() {
    27     var COMMITTERS_URL = 'https://svn.webkit.org/repository/webkit/trunk/Tools/Scripts/webkitpy/common/config/contributors.json';
     27    var COMMITTERS_URL = 'https://svn.webkit.org/repository/webkit/trunk/metadata/contributors.json';
    2828    var m_committers;
    2929
     
    3737
    3838    function parseCommittersPy(text) {
    39         var contributors = JSON.parse(text);
    40 
    4139        m_committers = [];
    42 
    43         for (var name in contributors) {
    44             var record = contributors[name];
     40        JSON.parse(text).forEach(contributor => {
    4541            m_committers.push({
    46                 name: name,
    47                 emails: record.emails,
    48                 irc: record.nicks,
    49                 type: statusToType(record.status),
     42                name: contributor.name,
     43                emails: contributor.emails,
     44                irc: contributor.nicks,
     45                type: statusToType(contributor.status),
    5046            });
    51         }
     47        })
    5248    }
    5349
Note: See TracChangeset for help on using the changeset viewer.