Edit: This list is now maintained in the rust-anthology repo.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syntax on | |
set re=0 | |
set relativenumber | |
set nocompatible | |
set number | |
set shiftwidth=2 | |
set tabstop=2 | |
set expandtab | |
set encoding=utf-8 | |
set nobackup |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function groupByRepo(prs) { | |
const obj = {} | |
prs.forEach(({ repository_url, state }) => { | |
const repo = repository_url.match(/([^\/]+\/[^/]+)$/)[0] | |
obj[repo] = obj[repo] || {open: 0, closed: 0, merged: 0} | |
obj[repo][state] = obj[repo][state] + 1 | |
}) |