-
-
Save dibyom/83651e34488aa3acaf38be4e1ba80e45 to your computer and use it in GitHub Desktop.
This file contains 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
#!/usr/bin/env bash | |
# For each member in the Tekton org, filter those that have 15+ reviews overall | |
set -e | |
review_url() { | |
local person $1 | |
echo "https://github.com/search?q=-author%3A$member+repo%3Atektoncd%2Fpipeline+reviewed-by%3A$member+type%3Apr" | |
} | |
num_reviews() { | |
local person=$1 | |
gh search prs --limit 40 --json number,title --repo tektoncd/pipeline --reviewed-by $person -- -author:$person |jq 'length' | |
} | |
# all_members=$(curl -s https://raw.githubusercontent.com/tektoncd/community/main/org/org.yaml|yq '.orgs.tektoncd.members'|cut -d ' ' -f2 | |
#) | |
# | |
all_members=$(cat all_members.txt) | |
for member in $all_members; do | |
nr=$(num_reviews $member) | |
if [ "$nr" -ge "10" ]; then | |
ru=$(review_url $member) | |
echo $member,$nr,$ru | |
fi | |
sleep 2 # RateLimit for search API | |
done | |
This file contains 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
abayer | 40 | https://github.com/search?q=-author%3Aabayer+repo%3Atektoncd%2Fpipeline+reviewed-by%3Aabayer+type%3Apr | |
---|---|---|---|
ImJasonH | 40 | https://github.com/search?q=-author%3AImJasonH+repo%3Atektoncd%2Fpipeline+reviewed-by%3AImJasonH+type%3Apr | |
JeromeJu | 27 | https://github.com/search?q=-author%3AJeromeJu+repo%3Atektoncd%2Fpipeline+reviewed-by%3AJeromeJu+type%3Apr | |
Yongxuanzhang | 21 | https://github.com/search?q=-author%3AYongxuanzhang+repo%3Atektoncd%2Fpipeline+reviewed-by%3AYongxuanzhang+type%3Apr | |
chmouel | 29 | https://github.com/search?q=-author%3Achmouel+repo%3Atektoncd%2Fpipeline+reviewed-by%3Achmouel+type%3Apr | |
chuangw6 | 16 | https://github.com/search?q=-author%3Achuangw6+repo%3Atektoncd%2Fpipeline+reviewed-by%3Achuangw6+type%3Apr | |
danielhelfand | 21 | https://github.com/search?q=-author%3Adanielhelfand+repo%3Atektoncd%2Fpipeline+reviewed-by%3Adanielhelfand+type%3Apr | |
dlorenc | 40 | https://github.com/search?q=-author%3Adlorenc+repo%3Atektoncd%2Fpipeline+reviewed-by%3Adlorenc+type%3Apr | |
jerop | 40 | https://github.com/search?q=-author%3Ajerop+repo%3Atektoncd%2Fpipeline+reviewed-by%3Ajerop+type%3Apr | |
jlpettersson | 23 | https://github.com/search?q=-author%3Ajlpettersson+repo%3Atektoncd%2Fpipeline+reviewed-by%3Ajlpettersson+type%3Apr | |
lbernick | 40 | https://github.com/search?q=-author%3Albernick+repo%3Atektoncd%2Fpipeline+reviewed-by%3Albernick+type%3Apr | |
mattmoor | 37 | https://github.com/search?q=-author%3Amattmoor+repo%3Atektoncd%2Fpipeline+reviewed-by%3Amattmoor+type%3Apr | |
nader-ziada | 40 | https://github.com/search?q=-author%3Anader-ziada+repo%3Atektoncd%2Fpipeline+reviewed-by%3Anader-ziada+type%3Apr | |
pritidesai | 40 | https://github.com/search?q=-author%3Apritidesai+repo%3Atektoncd%2Fpipeline+reviewed-by%3Apritidesai+type%3Apr | |
shashwathi | 40 | https://github.com/search?q=-author%3Ashashwathi+repo%3Atektoncd%2Fpipeline+reviewed-by%3Ashashwathi+type%3Apr | |
wlynch | 40 | https://github.com/search?q=-author%3Awlynch+repo%3Atektoncd%2Fpipeline+reviewed-by%3Awlynch+type%3Apr | |
xinruzhang | 19 | https://github.com/search?q=-author%3Axinruzhang+repo%3Atektoncd%2Fpipeline+reviewed-by%3Axinruzhang+type%3Apr | |
ywluogg | 31 | https://github.com/search?q=-author%3Aywluogg+repo%3Atektoncd%2Fpipeline+reviewed-by%3Aywluogg+type%3Apr |
This file contains 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
JeromeJu | 27 | https://github.com/search?q=-author%3AJeromeJu+repo%3Atektoncd%2Fpipeline+reviewed-by%3AJeromeJu+type%3Apr | |
---|---|---|---|
Yongxuanzhang | 21 | https://github.com/search?q=-author%3AYongxuanzhang+repo%3Atektoncd%2Fpipeline+reviewed-by%3AYongxuanzhang+type%3Apr | |
chmouel | 29 | https://github.com/search?q=-author%3Achmouel+repo%3Atektoncd%2Fpipeline+reviewed-by%3Achmouel+type%3Apr | |
chuangw6 | 16 | https://github.com/search?q=-author%3Achuangw6+repo%3Atektoncd%2Fpipeline+reviewed-by%3Achuangw6+type%3Apr | |
danielhelfand | 21 | https://github.com/search?q=-author%3Adanielhelfand+repo%3Atektoncd%2Fpipeline+reviewed-by%3Adanielhelfand+type%3Apr | |
jlpettersson | 23 | https://github.com/search?q=-author%3Ajlpettersson+repo%3Atektoncd%2Fpipeline+reviewed-by%3Ajlpettersson+type%3Apr | |
mattmoor | 37 | https://github.com/search?q=-author%3Amattmoor+repo%3Atektoncd%2Fpipeline+reviewed-by%3Amattmoor+type%3Apr | |
nader-ziada | 40 | https://github.com/search?q=-author%3Anader-ziada+repo%3Atektoncd%2Fpipeline+reviewed-by%3Anader-ziada+type%3Apr | |
shashwathi | 40 | https://github.com/search?q=-author%3Ashashwathi+repo%3Atektoncd%2Fpipeline+reviewed-by%3Ashashwathi+type%3Apr | |
wlynch | 40 | https://github.com/search?q=-author%3Awlynch+repo%3Atektoncd%2Fpipeline+reviewed-by%3Awlynch+type%3Apr | |
xinruzhang | 19 | https://github.com/search?q=-author%3Axinruzhang+repo%3Atektoncd%2Fpipeline+reviewed-by%3Axinruzhang+type%3Apr | |
ywluogg | 31 | https://github.com/search?q=-author%3Aywluogg+repo%3Atektoncd%2Fpipeline+reviewed-by%3Aywluogg+type%3Apr |
This file contains 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
JeromeJu | 27 | https://github.com/search?q=-author%3AJeromeJu+repo%3Atektoncd%2Fpipeline+reviewed-by%3AJeromeJu+type%3Apr | |
---|---|---|---|
Yongxuanzhang | 21 | https://github.com/search?q=-author%3AYongxuanzhang+repo%3Atektoncd%2Fpipeline+reviewed-by%3AYongxuanzhang+type%3Apr | |
chuangw6 | 16 | https://github.com/search?q=-author%3Achuangw6+repo%3Atektoncd%2Fpipeline+reviewed-by%3Achuangw6+type%3Apr | |
wlynch | 32 | https://github.com/search?q=-author%3Awlynch+repo%3Atektoncd%2Fpipeline+reviewed-by%3Awlynch+type%3Apr | |
xinruzhang | 19 | https://github.com/search?q=-author%3Axinruzhang+repo%3Atektoncd%2Fpipeline+reviewed-by%3Axinruzhang+type%3Apr | |
ywluogg | 31 | https://github.com/search?q=-author%3Aywluogg+repo%3Atektoncd%2Fpipeline+reviewed-by%3Aywluogg+type%3Apr |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment