Skip to content

A simple CLI tool to fetch and display the recent activity of a GitHub user using the GitHub API. Perfect for practicing API interactions, JSON handling, and command-line interface development.

License

Notifications You must be signed in to change notification settings

chrystalio/github-user-activity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub User Activity CLI

The GitHub User Activity CLI is an intuitive command-line tool crafted to fetch and elegantly display a GitHub user's recent activity. This tool transforms the conventional output into a visually engaging experience with colorized text and stylized ASCII art headers, making it not only more user-friendly but also visually appealing.

This project is inspired by GitHub User Activity, an idea from roadmap.sh Backend Projects lists. Roadmap.sh is a community-driven platform that offers curated learning paths and project ideas to help developers master various technology roles. This CLI tool brings the concept to life by fetching and displaying a GitHub user's recent activity in a visually engaging and user-friendly manner.

Whether you're a developer seeking to monitor your own project updates or a team lead needing to oversee your team's GitHub activities, this CLI tool offers a streamlined and enriched viewing experience, promoting greater productivity and insight into development workflows.

Features

  • Fetches and displays user activity from GitHub using their username.
  • Colorizes output for enhanced readability.
  • Displays ASCII art headers for a visually engaging experience.

Prerequisites

Ensure you have Node.js installed on your machine. You can download it from Node.js official website.

Setup

  1. Clone the Repository
    git clone https://github.com/chrystalio/github-user-activity
    cd github-user-activity
  2. Install Dependencies
    npm install
  3. Running the Tool Execute the script by running:
    npm run start

Follow the prompts to enter a GitHub username and choose an event type to filter by. The tool will then fetch and display the user's recent activity.

Usage Example

Here's an example of the tool in action:

Enter GitHub Username: chrystalio
Fetching activity for chrystalio...
Select the event type to filter by:
1. PushEvent
2. PullRequestEvent
3. CreateEvent
4. WatchEvent
5. DeleteEvent
6. IssueCommentEvent
7. All
Enter the number corresponding to the event type: 1

Activity Summary:
- Pushed 9 commits in chrystalio/github-user-activity
- Deleted 2 events in chrystalio/github-user-activity
- Opened 4 pull requests in chrystalio/github-user-activity
- Commented on 2 issues in chrystalio/github-user-activity
- Created 4 events in chrystalio/github-user-activity
- Starred in chrystalio/github-user-activity
- Pushed 1 commit in chrystalio/KapanLibur
- Starred in sqlmapproject/sqlmap
- Starred in hacksider/Deep-Live-Cam
- Pushed 1 commit in chrystalio/chrystalio
- Starred in Anamcoollzz/laravel-11-template
- Starred in kevintherm/image-roaster
- Pushed 2 commits in chrystalio/BudgetBuddy

The tool will then display the activity for the specified user, filtered by the selected event type, with the output styled with color and ASCII art.

Contributing

Contributions to enhance the GitHub User Activity CLI are welcome. Please ensure to update tests as appropriate.

Acknowledgments

This project is made possible with the help of the following libraries and resources:

  • chalk - For adding color to the command line output, enhancing readability and user experience.
  • figlet - Used to generate ASCII art from text, making the CLI output visually appealing.
  • Node.js - The runtime environment that powers the backend of this CLI tool.
  • roadmap.sh - Inspired by project ideas from this community-driven platform, which offers learning paths and guides in various tech domains.

Special thanks to all the developers and contributors of these tools for making them available and maintaining them, enabling us to build more efficient and appealing software solutions.

About

A simple CLI tool to fetch and display the recent activity of a GitHub user using the GitHub API. Perfect for practicing API interactions, JSON handling, and command-line interface development.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published