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

Status API #83

Merged
merged 11 commits into from
Apr 17, 2017
Merged

Status API #83

merged 11 commits into from
Apr 17, 2017

Conversation

BenFradet
Copy link
Contributor

No description provided.

Copy link
Contributor Author

@BenFradet BenFradet left a comment

Choose a reason for hiding this comment

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

Review welcome 👍

.execFuture(headerUserAgent)

testFutureIsLeft(response)
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't know how you want to deal with integration tests for the status API.

Copy link
Contributor

Choose a reason for hiding this comment

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

We've tested it locally, we know it fails with fork but it should work once it's merged

description: Option[String],
fork: Boolean,
urls: Map[String, String]
)
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 doesn't really fit into the existing Repository case class so I chose to create a new one, input welcome.

Copy link
Contributor

Choose a reason for hiding this comment

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

it makes sense to me to have a different model. I'm wondering if we could just add the fields url and html_url instead of the urls map. In this way, we could avoid the custom decoder.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think we can get rid of the custom decoder since we have all those urls to deal with.

Copy link
Contributor

Choose a reason for hiding this comment

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

I see, it's ok then

@juanpedromoreno
Copy link
Member

Thanks @BenFradet, great contribution :) we'll review it these upcoming days.

Copy link
Contributor

@fedefernandez fedefernandez left a comment

Choose a reason for hiding this comment

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

This is great, thank you so much for your contribution. I've requested a minor change.

description: Option[String],
fork: Boolean,
urls: Map[String, String]
)
Copy link
Contributor

Choose a reason for hiding this comment

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

it makes sense to me to have a different model. I'm wondering if we could just add the fields url and html_url instead of the urls map. In this way, we could avoid the custom decoder.

.createStatus(
"BenFradet",
"sparkml-als",
"ae6eb4ae126f29d96249a2393c633c8d91a4adf4",
Copy link
Contributor

Choose a reason for hiding this comment

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

Please, change the first three params with validRepoOwner, validRepoName, and validCommitSha. We've tested it locally with the Travis token so it should pass once we merged the PR

val response = Github(accessToken).statuses
.createStatus(
"BenFradet",
"sparkml-als",
Copy link
Contributor

Choose a reason for hiding this comment

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

Please, change the first two params with validRepoOwner, and validRepoName.

.execFuture(headerUserAgent)

testFutureIsLeft(response)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

We've tested it locally, we know it fails with fork but it should work once it's merged

.createStatus(
"BenFradet",
"sparkml-als",
"ae6eb4ae126f29d96249a2393c633c8d91a4adf4",
Copy link
Contributor

Choose a reason for hiding this comment

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

Please, change the first three params with validRepoOwner, validRepoName, and validCommitSha.

val response = Github(accessToken).statuses
.createStatus(
"BenFradet",
"sparkml-als",
Copy link
Contributor

Choose a reason for hiding this comment

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

Please, change the first two params with validRepoOwner, and validRepoName.

@@ -543,7 +543,7 @@ trait FakeResponses {
|}
""".stripMargin

val unauthorizedReponse =
val unauthorizedResponse =
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@BenFradet
Copy link
Contributor Author

Changed the integration tests, thanks for the review 👍

@fedefernandez fedefernandez merged commit d9fa4ff into 47degrees:master Apr 17, 2017
@BenFradet
Copy link
Contributor Author

Thanks a lot, looking forward to the next release 👍

@BenFradet BenFradet deleted the status-api branch April 17, 2017 13:00
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.

3 participants