LoginSignup
8
5

More than 5 years have passed since last update.

コードレビューの担当者の配分を可視化するスクリプト

Last updated at Posted at 2016-02-18

コードレビューがつまっている人から助けるためにバッとチェックしたい。

実行するとこうなる

スクリーンショット 2016-02-18 2.27.19 PM.png

コード

var icons = jQuery('.js-issue-row')
                .toArray()
                .map(issue => issue.querySelector('img'))
                .filter(img => img !== null)
                .sort((a, b) => a.alt.localeCompare(b.alt))
                .reduce((container, user) => { 
                    container.appendChild(user.cloneNode());
                    return container;
                  }, 
                  document.createElement('div'));

document.querySelector('.repository-content')
  .insertBefore(icons, document.querySelector('.issues-listing'));
8
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
5