A simple command line interface (CLI) built with Java to fetch the recent activity of a GitHub user and display it in the terminal.
Java GitHub User Activity is a simple command line interface (CLI) that accept the GitHub username as an argument, fetch the user’s recent activity using the GitHub API, and display it in the terminal. This project is designed to explore and practice working with the command line interface (CLI) and API consumption in Java.
- Java 21.0.6 (LTS)
- Maven 3.9.9
- Gson 2.12.1
- Fetch recent activities of a GitHub user.
- Display a variety of activities including repository creation, commits, branch creation, and starred repositories.
- Simple, clear output for easy tracking of a user's GitHub contributions.
To run this CLI tool, you’ll need:
- Java: Version 21 or higher
- Maven: Version 3.x
How to Build:
-
Clone the repository
git clone https://github.com/krisnaajiep/java-github-user-activity.git
-
Change the current working directory
cd java-github-user-activity -
Build the project
mvn clean package
-
Copy the JAR file from the
target/directorycp target/github-user-activity-1.0-SNAPSHOT-jar-with-dependencies.jar github-activity.jar
-
Run the JAR file
java -jar github-activity.jar
java -jar github-activity.jar <username>Example Output:
Output:
- Pushed a commit to kamranahmedse/reminder
- Pushed a commit to kamranahmedse/reminder
- Pushed a commit to kamranahmedse/reminder
- Pushed a commit to kamranahmedse/reminder
- Pushed 2 commits to kamranahmedse/reminder
- Opened pull request #27 in asim/reminder
- Pushed a commit to kamranahmedse/reminder
- Pushed a commit to kamranahmedse/reminder
- Pushed a commit to kamranahmedse/reminder
- Pushed 6 commits to kamranahmedse/reminder
- Created comment on issue #24 in asim/reminder
- Pushed a commit to kamranahmedse/reminder
- Pushed a commit to kamranahmedse/reminder
- Pushed a commit to kamranahmedse/reminder
- Pushed a commit to kamranahmedse/reminder
- Opened pull request #24 in asim/reminder
- Pushed 4 commits to kamranahmedse/reminder
- Pushed 10 commits to kamranahmedse/reminder
- Opened pull request #21 in asim/reminder
- Pushed a commit to kamranahmedse/reminder
- Pushed a commit to kamranahmedse/reminder
- Pushed a commit to kamranahmedse/reminder
- Pushed a commit to kamranahmedse/reminder
- Pushed a commit to kamranahmedse/reminder
- Pushed a commit to kamranahmedse/reminder
- Pushed a commit to kamranahmedse/reminder
- Pushed a commit to kamranahmedse/reminder
- Pushed 3 commits to kamranahmedse/reminder
- Forked asim/reminder to reminder
- created Review comment by for pull request #8506 in kamranahmedse/developer-roadmap
Project is: complete.
This project was inspired by roadmap.sh.
This project is licensed under the MIT License—see the LICENSE file for details.