Skip to content

Instantly share code, notes, and snippets.

@nckturner
Last active May 3, 2022 06:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nckturner/cddd64bc1a56eaec836c07a24f7fecf4 to your computer and use it in GitHub Desktop.
Save nckturner/cddd64bc1a56eaec836c07a24f7fecf4 to your computer and use it in GitHub Desktop.
Unique Approver Reviewer Count for Sig Report 2022
aws-iam-authenticator:
approvers:
- nckturner
- micahhausler
- wongma7
- jaypipes
- jyotimahapatra
reviewers:
- nckturner
- micahhausler
- justinsb
- wongma7
- jaypipes
- jyotimahapatra
cloud-provider-aws:
approvers:
- justinsb
- nckturner
- M00nF1sh
- andrewsykim
- wongma7
- jaypipes
reviewers:
- justinsb
- nckturner
- M00nF1sh
- andrewsykim
- wongma7
- jaypipes
cloud-provider-gcp:
approvers:
- cheftako
- saad-ali
- jingxu97
- bowei
- freehan
- mrhohn
- mikedanese
- calebamiles
reviewers:
- jpbetz
- jprzychodzen
cloud-provider-azure:
approvers:
- andyzhangx
- feiskyer
- nilo19
- MartinForReal
- lzhecheng
reviewers:
- andyzhangx
- feiskyer
- nilo19
- MartinForReal
- lzhecheng
cloud-provider-vsphere:
approvers:
- cheftako
- andrewsykim
- baludontu
- divyenpatel
- dougm
- dvonthenen
- frapposelli
- imkin
- sandeeppissay
- maplain
- lubronzhan
- nicolehanjing
- HanFa
- XudongLiuHarold
reviewers:
- andrewsykim
- baludontu
- divyenpatel
- dougm
- dvonthenen
- frapposelli
- imkin
- sandeeppissay
- maplain
- lubronzhan
- nicolehanjing
- HanFa
- XudongLiuHarold
cloud-provider-openstack:
approvers:
- chrigl
- lingxiankong
- ramineni
- zetaab
- jichenjc
reviewers:
- chrigl
- Fedosin
- jichenjc
- lingxiankong
- ramineni
- zetaab
cloud-provider-gcp:
approvers:
- cheftako
- saad-ali
- jingxu97
- bowei
- freehan
- mrhohn
- mikedanese
- calebamiles
reviewers:
- jpbetz
- jprzychodzen
cloud-provider-alibaba-cloud:
approvers:
- aoxn
- cheyang
- xlgao-zju
- gujingit
cloud-provider-huaweicloud:
approvers:
- kevin-wangzefeng
- RainbowMango
reviewers:
- kevin-wangzefeng
- RainbowMango
cloud-provider-baiducloud:
approvers:
- tizhou86
- ZP-AlwaysWin
- hello2mao
reviewers:
- tizhou86
- ZP-AlwaysWin
- hello2mao
#!/usr/bin/env python3
import yaml
reviewers_set = {}
approvers_set = {}
with open("approvers-reviewers.txt", "r+") as f:
y = yaml.load(f, Loader=yaml.FullLoader)
for item in y:
repo = y.get(item)
if repo:
approvers = repo.get('approvers')
reviewers = repo.get('reviewers')
if approvers:
for approver in approvers:
approvers_set[approver] = 1
if reviewers:
for reviewer in reviewers:
reviewers_set[reviewer] = 1
print(f"Number of unique approvers: {len(approvers_set)}")
print(f"Number of unique reviewers: {len(reviewers_set)}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment