Skip to content

trochnet/GitHubUserActivity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GithubUserActivity

GithubUserActivity is a .NET 8.0 console application that fetches and displays recent GitHub events for a specified user.

This project is part of the https://roadmap.sh/projects/github-user-activity initiative.

Features

  • Fetches GitHub user events using the GitHub API.
  • Displays event details such as event type, repository name, actor, and creation date.

Prerequisites

  • .NET 8.0 SDK installed on your machine.
  • A GitHub username to fetch events for.

Getting Started

  1. Clone the repository:

    git clone https://github.com/trochnet/GithubUserActivity.git
    cd GithubUserActivity
  2. Build the project:

    dotnet build
  3. Run the application:

    dotnet run -- <GitHubUsername>

    Replace <GitHubUsername> with the username of the GitHub user whose events you want to fetch.

Project Structure

  • GitHubUserActivityApp/Program.cs: Entry point of the application.
  • GitHubUserActivityApp/Models/: Contains data models for deserializing GitHub API responses:
    • Actor.cs: Represents the actor involved in the event.
    • Author.cs: Represents the author of a commit.
    • Commit.cs: Represents a commit in a push event.
    • GitHubEvent.cs: Represents a GitHub event.
    • Payload.cs: Represents the payload of an event.
    • Repo.cs: Represents the repository associated with the event.
  • README.md: Documentation for the project.

Example Usage

dotnet run -- kamranahmedse

Output:

2025-04-01T12:34:56Z - PushEvent - kamranahmedse/Hello-World - kamranahmedse
2025-04-01T11:22:33Z - CreateEvent - kamranahmedse/Hello-World - kamranahmedse

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

Use GitHub API to fetch user activity and display it in the terminal.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages