A command-line tool built in Golang to track your GitHub activities, such as commits, issues, pull requests, and more, for a given user.
-
Build the application:
go build -o github-activity
-
Move the executable to
/usr/local/bin/for system-wide access:sudo mv github-activity /usr/local/bin/
For Windows, follow these steps to build and install your Go application:
-
Build the application: Open a command prompt (or PowerShell) in the directory where your Go code is located and run the following command:
go build -o github-activity.exe
This will generate the
github-activity.exeexecutable. -
Move the executable to a directory in your PATH: To make the application accessible system-wide, move it to a directory that's included in your
PATH. You can use a directory likeC:\Program FilesorC:\Users\<your_username>\go\bin, or choose another location.Use the following command to move the
github-activity.exe:move github-activity.exe C:\path\to\desired\directory\
For example:
move github-activity.exe C:\Users\<your_username>\go\bin\
-
Ensure the directory is in your PATH: If the directory where you moved the executable is not already in your
PATH, you can add it manually:- Right-click on
This PCorComputer, and select Properties. - Click Advanced system settings on the left side.
- In the System Properties window, click Environment Variables.
- Under System variables, scroll down and select the
Pathvariable, then click Edit. - Click New and add the path to the directory where
github-activity.exewas moved (e.g.,C:\Users\<your_username>\go\bin\). - Click OK to save the changes.
- Right-click on
After following these steps, you should be able to run github-activity from any command prompt or PowerShell window.
To track a user's GitHub activity, use the following command:
github-activity <username>Example:
github-activity broneroneOutput will show recent events, such as:
- Pushed 3 commits to bronerone/project
- Opened a new issue in bronerone/project
- Starred bronerone/project
- Forked bronerone/project
Feel free to fork the repository, submit issues, or create pull requests. Contributions are welcome!
This project is licensed under the MIT License - see the LICENSE file for details.