-
Notifications
You must be signed in to change notification settings - Fork 75
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
add new endpoint - list repository events #811
Conversation
c58ac40
to
883191d
Compare
Hi folks!, I was thinking about merging the PublicRepositoryEvent and the PublicOrganizationEvent as they are almost the same. |
@@ -265,6 +265,25 @@ object Decoders { | |||
) | |||
) | |||
|
|||
implicit val decodePublicRepositoryEvent: Decoder[PublicRepositoryEvent] = |
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.
PublicRepositoryEvent
model looks similar to PublicOrganizationEvent
. Can you please check the API and see if we can reuse the model?
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.
Yes they share the same schema, we can merge both models into the same one
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.
Looks good. Great contribution 💪
New endpoint to list the events of a particular repository with
listPublicRepositoryEvents
using the owner and the repo's name.Github docs:
https://docs.github.com/en/rest/activity/events#list-repository-events