Skip to content

Conversation

Sadiqabello
Copy link

No description provided.

Sadiqabello and others added 2 commits November 16, 2022 22:55
Update author
This commit introduces a new command-line tool written in C that fetches and displays a user's recent public activity from GitHub.

Key features:
- Accepts a GitHub username as a command-line argument.
- Fetches public events for the specified user using the GitHub API (`/users/{username}/events/public`).
- Uses `libcurl` for making HTTP requests.
- Uses `jansson` for parsing the JSON response from the API.
- Displays event details including event type, repository name, and creation timestamp.
- Includes error handling for missing arguments, API request failures, and JSON parsing errors.

Build and Usage:
- A `build.sh` script is provided for easy compilation: `./build.sh`
- Run the tool: `./github_activity <username>`

Testing:
- A `test.sh` script provides basic automated checks for argument handling.
- `README.md` has been updated with detailed manual test cases covering various scenarios, including valid/invalid usernames and network errors.
Copy link
Author

@Sadiqabello Sadiqabello left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reviewed

Copy link
Author

@Sadiqabello Sadiqabello left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reviewed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant