find_repo_owner is a CLI tool to gather all repo owners based on CODEOWNERS files in github.com.
The tool is written in Golang and can make 20 requests concurrently.
You will need:
- Linux Environment (Windows Environment is under development)
- Github Access key (which can be found under setting)
git clone https://github.com/eRaMvn/find_repo_owners.git
Build executable
#!/bin/bash
go build
Or you can grab one of the executables under Releases
Set up environment variable
#!/bin/bash
export GITHUB_TOKEN="qwdsfdsfsdf"
- Gather all owners in the CODEOWNERS file
find_repo_owner -o eRaMvn
The command will generates a csv file with the name results_from_repos.csv
To change the name of the output file:
find_repo_owner -o eRaMvn --of some_other_name
- If you know exactly what you want to look for and just want to know what repo has that owners
find_repo_owner -o eRaMvn -f owners_to_watch.txt
The format of owners_to_watch.txt
will be like this
@user1
@group1
@group2