-
Notifications
You must be signed in to change notification settings - Fork 2.2k
feat: Implement List Repository Activities endpoint #3651
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Adds support for the /repos/{owner}/{repo}/activity REST API endpoint. This implements the List Repository Activities functionality introduced in GitHub API v2022-11-28, allowing clients to retrieve detailed activity data for repositories. Includes: - New RepositoryActivity struct and related types - ListRepositoryActivitiesOptions for pagination and filtering - Implementation in RepositoriesService with tests - Documentation with examples Ref: google#3649 Signed-off-by: abhishek <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @AbhishekAg.
Please address these items, then we should be ready for a second LGTM+Approval from any other contributor to this repo before merging.
Signed-off-by: abhishek <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3651 +/- ##
=======================================
Coverage 91.25% 91.25%
=======================================
Files 184 184
Lines 16311 16327 +16
=======================================
+ Hits 14884 14900 +16
Misses 1245 1245
Partials 182 182 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @AbhishekAg!
LGTM.
Awaiting second LGTM+Approval from any other contributor to this repo before merging.
@stevehipwell or @alexandear - might one of you have time for a code review? Thank you!
Signed-off-by: abhishek <[email protected]>
@alexandear Please review the PR when you get time. |
Signed-off-by: abhishek <[email protected]>
@gmlewis @alexandear Can you please push these changes to the protected branch? I am not allowed to perform the push. |
Thank you, @alexandear! |
Fixes: #3649.
This PR implements support for the "List repository activities" REST API endpoint introduced in GitHub API v2022-11-28. This functionality allows go-github users to retrieve detailed activity information for repositories.
Implementation Details
API Reference
This implementation follows the GitHub REST API specification documented at:
https://docs.github.com/en/rest/repos/repos?apiVersion=2022-11-28#list-repository-activities
Example Usage
Testing
The implementation includes unit tests that verify: