Skip to content

Conversation

setchy
Copy link
Member

@setchy setchy commented Apr 22, 2024

Refactored most uses of apiRequestAuth into a new api/client. Add explicit types where missing. Fixed semantics around Release vs ReleaseComment.

I've named each function to be close-to that documented in https://docs.github.com/en/rest/, and included a link to the public docs where available.

@setchy setchy marked this pull request as ready for review April 22, 2024 13:35
@setchy setchy added the refactor Refactoring of existing feature label Apr 22, 2024
@setchy setchy added this to the Release 5.5.0 milestone Apr 22, 2024
Copy link
Member

@afonsojramos afonsojramos left a comment

Choose a reason for hiding this comment

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

Damn, this is one high quality pr ❤️‍🔥 Love it 💥

@setchy setchy changed the title refactor: extra api calls into client with types refactor: extract api calls into client with types Apr 23, 2024
Copy link
Collaborator

@bmulholland bmulholland left a comment

Choose a reason for hiding this comment

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

Agreed, this is beautiful, nice work!

@setchy
Copy link
Member Author

setchy commented Apr 23, 2024

Thanks gents 🙇

@setchy setchy merged commit 28f06bd into main Apr 23, 2024
@setchy setchy deleted the refactor/api-client branch April 23, 2024 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Refactoring of existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants