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.
- Fetches GitHub user events using the GitHub API.
- Displays event details such as event type, repository name, actor, and creation date.
- .NET 8.0 SDK installed on your machine.
- A GitHub username to fetch events for.
-
Clone the repository:
git clone https://github.com/trochnet/GithubUserActivity.git cd GithubUserActivity
-
Build the project:
dotnet build
-
Run the application:
dotnet run -- <GitHubUsername>
Replace
<GitHubUsername>
with the username of the GitHub user whose events you want to fetch.
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.
dotnet run -- kamranahmedse
Output:
2025-04-01T12:34:56Z - PushEvent - kamranahmedse/Hello-World - kamranahmedse
2025-04-01T11:22:33Z - CreateEvent - kamranahmedse/Hello-World - kamranahmedse
This project is licensed under the MIT License. See the LICENSE file for details.