-
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
Pull request list #70
Conversation
8c3d5a2
to
e0e2432
Compare
Codecov Report
@@ Coverage Diff @@
## master #70 +/- ##
==========================================
+ Coverage 79.43% 80.04% +0.61%
==========================================
Files 31 34 +3
Lines 457 471 +14
Branches 2 3 +1
==========================================
+ Hits 363 377 +14
Misses 94 94
Continue to review full report at Codecov.
|
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 great!
|
||
class GHPullRequestsSpec extends FlatSpec with Matchers with TestUtils { | ||
|
||
"Repos >> List" should "return a non empty list when valid repo is provided" in { |
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.
--"Repos >> List" should "return a non empty list when valid repo is provided" in {
++"PullRequests >> List" should "return a non empty list when valid repo is provided" in {
??
@@ -29,5 +29,6 @@ object app { | |||
type COGH02[A] = Coproduct[GistOp, COGH01, A] | |||
type COGH03[A] = Coproduct[IssueOp, COGH02, A] | |||
type COGH04[A] = Coproduct[AuthOp, COGH03, A] | |||
type GitHub4s[A] = Coproduct[GitDataOp, COGH04, A] | |||
type COGH05[A] = Coproduct[GitDataOp, COGH04, A] | |||
type GitHub4s[A] = Coproduct[PullRequestOp, COGH05, A] |
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.
We could look into using the trick they use in quasar to build nested coproducts.
That way we could write :
type Github4s[A] = (
PullRequestOp
:\: GitDataOp
:\: AuthOp
:\: IssueOp
:\: GistOp
:\: RepositoryOp
:/: UserOp
)#M[A]
But if we are moving to freestyle once it is released, it is probably not worth it.
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.
Yeah, probably not worthy at this point but it's good to know it for other cases, thanks for sharing!
Fixes #69
Please @juanpedromoreno could you review? Thanks