Skip to content

A simple CLI app that fetches and displays the recent GitHub events for a user - created for roadmap.sh

License

Notifications You must be signed in to change notification settings

Huskeyyy/Github-UserActivity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Github-UserActivity

A simple command-line application that fetches and displays the recent GitHub events for a user. The application makes use of the GitHub API to retrieve user events and display them in a readable format and is a sample project for roadmap.sh

Features

  • Prompts the user for a GitHub username.
  • Fetches recent GitHub events for the specified user.
  • Displays the event type, repo name, and creation date.

Requirements

  • GitHub Personal Access Token (PAT) with the required permissions.

Installation

  1. Clone the repository:

    git clone https://github.com/Huskeyyy/Github-UserActivity.git
    cd github-useractivity
  2. Set up your GitHub Personal Access Token (PAT):

    • Generate a Personal Access Token:

    • Set the token as an environment variable:

      • The token is required for authentication when making requests to the GitHub API. You can set it as an environment variable.

      For Windows (PowerShell):

      $env:GITHUB_TOKEN = "your_token_here"
      

      For Windows (Command Prompt):

      set GITHUB_TOKEN=your_token_here
      

      For macOS/Linux:

      export GITHUB_TOKEN="your_token_here"
      
      • If you want to make the environment variable permanent, you can add the export command to your ~/.bashrc, ~/.bash_profile, or ~/.zshrc file (depending on your shell).
  3. Build and run the project: After setting up the environment variable, run the application using the following command in your terminal:

    dotnet run
    
  4. Enter the GitHub username: The program will prompt you to enter a GitHub username. It will then fetch and display the recent events for that user.

License

This project is licensed under the MIT License - please see the LICENSE file for details.

Contributing

If you would like to contribute to this project, please fork the repository and submit a pull request with your changes.


About

A simple CLI app that fetches and displays the recent GitHub events for a user - created for roadmap.sh

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages