Skip to content
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

Adds some git methods #67

Merged
merged 3 commits into from Mar 28, 2017
Merged

Adds some git methods #67

merged 3 commits into from Mar 28, 2017

Conversation

fedefernandez
Copy link
Contributor

This PR adds some needed git methods for adding new content to a GitHub repo.

Please @juanpedromoreno, could you review? Thanks

@codecov-io
Copy link

codecov-io commented Mar 27, 2017

Codecov Report

Merging #67 into master will increase coverage by 0.32%.
The diff coverage is 82.75%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #67      +/-   ##
==========================================
+ Coverage    79.1%   79.43%   +0.32%     
==========================================
  Files          27       31       +4     
  Lines         402      457      +55     
  Branches        2        2              
==========================================
+ Hits          318      363      +45     
- Misses         84       94      +10
Impacted Files Coverage Δ
...4s/shared/src/main/scala/github4s/HttpClient.scala 75% <ø> (ø) ⬆️
.../src/main/scala/github4s/free/domain/GitData.scala 0% <0%> (ø)
...s/shared/src/main/scala/github4s/api/GitData.scala 100% <100%> (ø)
...4s/shared/src/main/scala/github4s/GithubAPIs.scala 95% <100%> (+2.14%) ⬆️
...ub4s/shared/src/main/scala/github4s/Encoders.scala 100% <100%> (ø)
...thub4s/shared/src/main/scala/github4s/Github.scala 81.81% <100%> (+1.81%) ⬆️
.../main/scala/github4s/free/algebra/GitDataOps.scala 42.85% <42.85%> (ø)
...cala/github4s/free/interpreters/Interpreters.scala 86.36% <69.23%> (-7.76%) ⬇️
...ub4s/shared/src/main/scala/github4s/Decoders.scala 95.83% <90.9%> (-0.89%) ⬇️
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 111be95...468f6be. Read the comment docs.

Copy link
Member

@juanpedromoreno juanpedromoreno left a comment

Choose a reason for hiding this comment

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

Outstanding job!

I've added some minor comments but changes look great. Thanks!

}
}

it should "return the multiple reference" in {
Copy link
Member

Choose a reason for hiding this comment

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

"return multiple references"?

implicit def decodeListRef(implicit D: Decoder[Ref]): Decoder[NonEmptyList[Ref]] = {

def decodeCursor(partialList: Option[NonEmptyList[Ref]], cursor: HCursor): Decoder.Result[NonEmptyList[Ref]] =
cursor.as[Ref] match {
Copy link
Member

Choose a reason for hiding this comment

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

map?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

}

Decoder.instance { c ⇒
c.as[Ref] match {
Copy link
Member

Choose a reason for hiding this comment

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

bimap?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's not possible because the left function result is encapsulated inside a Left in the bimap and we want to return an Either

  * Refactorizes the Git ops to GitData
  * Adds new tests for Git ops
  * Disables minimum coverage for scalaz and js modules
Copy link
Member

@juanpedromoreno juanpedromoreno left a comment

Choose a reason for hiding this comment

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

LGTM!

@fedefernandez fedefernandez merged commit d00e132 into master Mar 28, 2017
@fedefernandez fedefernandez deleted the ff-adds-some-git-methods branch March 28, 2017 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants