A CLI tool that fetches and displays a GitHub user's recent public activity using the GitHub Events API.
- Go 1.21 or later
Clone the repository and build the binary:
git clone https://github.com/sakaicodes/github-activity.git
cd github-activity
go build./github-activity [--filter <event-type>] <github-username>| Argument | Description |
|---|---|
<github-username> |
Required. The GitHub username to fetch activity for. |
--filter <event-type> |
Optional. Filter results by a specific event type. |
| Event Type | Description |
|---|---|
PushEvent |
Commits pushed to a repository |
PullRequestEvent |
Pull request opened, closed, or merged |
IssuesEvent |
Issue opened or closed |
WatchEvent |
Repository starred |
ForkEvent |
Repository forked |
CreateEvent |
Branch or tag created |
DeleteEvent |
Branch or tag deleted |
Fetch all recent activity for a user:
./github-activity sakaicodesFetch only push events for a user:
./github-activity --filter PushEvent sakaicodesFetch only pull request events:
./github-activity --filter PullRequestEvent sakaicodesgo run . <github-username>
go run . --filter PushEvent <github-username>CLI for interacting with GitHub activity written in Golang