-
Notifications
You must be signed in to change notification settings - Fork 194
Implement Actions API. #459
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
src/GitHub/Data/Actions.hs
Outdated
} | ||
deriving (Show, Data, Typeable, Eq, Ord, Generic) | ||
|
||
data PaginatedWithTotalCount a (tag :: Symbol) = PaginatedWithTotalCount |
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.
What are these? Is artifacts pagination different then for everything else?
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, please check my comment above. At least I didn't find existing implementation for this pagination style.
Hi @andreasabel , I got back to this issue and hope to implement full support for |
Hi @K0Te, good to have you back on track!
I'll do my best. I am not really an expert on this package.
I suppose you are referring to this code: github/src/GitHub/Data/Request.hs Lines 155 to 164 in 01c1154
github/src/GitHub/Data/Request.hs Lines 174 to 181 in 01c1154
To keep API breakage at bay, I'd add it to |
I resolved the conflicts with |
Hi @andreasabel , This PR is finally ready for review! 🚀
|
@andreasabel reminding about this PR ^_^ |
Conflicts: .gitignore src/GitHub/Data/Options.hs
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.
Thanks for the PR! and sorry for the delayed review.
I had some stylistic requests but fixed them myself.
What remains is to document the WithTotalCount
type.
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.
Addressed the last bits.
Good to go!
Published at https://hackage.haskell.org/package/github-0.29 Big thanks, @K0Te ! |
Closes #458
Hi @phadej ,
I've implemented just ~5% of Actions API at the moment. I have many questions and need your guidance before proceeding further:
I see three ways of handling this:
Endpoints
instead ofData
: