Welcome to github-user-activity, a fast and efficient utility written in Rust to track GitHub user activity! 🦀
This tool allows you to get a summary of a GitHub user's contributions, repositories, and other activities with ease.
github-user-activity Project Description on Roadmap.sh
- Contribution Count: Fetch the number of contributions the user has made in the past year.
- Public Repositories: Get the list of public repositories owned by the user.
- Followers: Retrieve the number of followers.
- Gists: See the number of public gists by the user.
- Recent Activity: Check out the user’s latest events and activity on GitHub.
Installing github-user-activity is a breeze! First, make sure you have Rust installed. Then, run the following commands:
git clone https://github.com/mohanadft/github-user-activity.git # Clone the Repo
cd github-user-activity # Go inside the package
cargo install --path . # Install the package globallyBefore using the package, you have to provide your own github api key, so you can authenticate when fetching github API. See this page for more info on how to get your API key
After getting your API credential, you just want to export the TOKEN environment variable in order for the program to recognize it.
export TOKEN=[Your API Key]Note: environment variables are temporarily availabe based on the session, so whenever you want to use the program you have to export it once before using, but if you exit your terminal (terminal tab), and opened a new one, you have to export it again.
Simple and straightforward! Just provide a GitHub username as the argument to fetch the user’s activity summary.
ghua [OPTIONS] <USERNAME>
Arguments:
<USERNAME> GitHub username to fetch activity for
Options:
-f, --followers Number of Followers
-p, --public-gists Number of Public Gists
-h, --help Print help information
-V, --version Print version informationWant to add new features, fix bugs, or improve the codebase? PRs are welcome! Check out our CONTRIBUTING.md to get started.