-
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
Refactor Algebras #130
Refactor Algebras #130
Conversation
minor doc fixed
minor notification fixes minor doc fixes minor style reformat
Docs ready to add repo doc minor fixes
refactor commit
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.
LGTM, except for a few things in the doc 👍
docs/src/main/tut/repo.md
Outdated
Github4s supports the [Repository API](https://developer.github.com/v3/repos/). As a result, | ||
with github4s, you can: | ||
|
||
- [Get repository](#get-repository) |
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.
Get a repository
, no?
docs/src/main/tut/repo.md
Outdated
} | ||
``` | ||
|
||
The `result` on the right is the created [List[Commit]][commit-scala]. |
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.
created -> corresponding
docs/src/main/tut/repo.md
Outdated
|
||
As a result, if you'd like to see a feature supported, feel free to create an issue and/or a pull request! | ||
|
||
[repository-scala]: https://github.com/47deg/github4s/blob/master/github4s/`SHA`red/src/main/scala/github4s/free/domain/Repository.scala |
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.
the following links are missing / reference nothing:
- status-scala -> repository-scala
- commit-scala -> repository-scala
- user-scala
- release-scala -> repository-scala
- content-scala -> repository-scala
@@ -135,7 +135,7 @@ class Repos[C, M[_]]( | |||
) | |||
|
|||
/** | |||
* Fetch contributors list for the the specified repository, | |||
* Fetch contributors listStatus for the the specified repository, |
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.
I don't think this is necessary
@@ -175,7 +175,7 @@ class Repos[C, M[_]]( | |||
* @param targetCommitish specifies the commitish value that determines where the Git tag is created from. | |||
* Can be any branch or commit SHA. Unused if the Git tag already exists. | |||
* Default: the repository's default branch (usually `master`). | |||
* @param draft `true` to create a draft (unpublished) release, `false` to create a published one. | |||
* @param draft `true` to createStatus a draft (unpublished) release, `false` to createStatus a published 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.
same
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.
replace all is not a good idea! 😄
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.
it was a problem with refactor rename in intellij, I'm sorry
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 no problem :D
Codecov Report
@@ Coverage Diff @@
## master #130 +/- ##
========================================
- Coverage 88.1% 88% -0.11%
========================================
Files 38 36 -2
Lines 555 550 -5
Branches 2 2
========================================
- Hits 489 484 -5
Misses 66 66
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.
Left some minor comments, outstanding work!
Once addressed, LGTM!
@@ -211,15 +225,15 @@ class Interpreters[M[_], C]( | |||
/** | |||
* Lifts Notification Ops to an effect capturing Monad such as Task via natural transformations |
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.
Notification
-> Activity
|
||
"Notification." should "call to httpClient.put with the right parameters" in { | ||
"Activity.SetThreadSubscription" should "call to httpClient.put with the right parameters" 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.
Activity.setThreadSub
|
||
"Notifications.SetThreadSubscription" should "call to NotificationOps with the right parameters" in { | ||
"Activities.SetThreadSubscription" should "call to ActivityOps with the right parameters" 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.
Activities.setThreadSub
@@ -87,4 +87,56 @@ class ReposSpec extends BaseSpec { | |||
) | |||
} | |||
|
|||
"Repos.get" should "call httpClient.get with the right parameters" 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.getStatus
Fixes #129 Refactor status and notification algebras and their docs.
Create repository documentation