Skip to content

Conversation

@Geolim4
Copy link
Contributor

@Geolim4 Geolim4 commented Jun 24, 2017

No description provided.

Copy link
Collaborator

@Nyholm Nyholm left a comment

Choose a reason for hiding this comment

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

Thank you for this PR. Could I get a second opinion about this being a BC break or not?

* @return array|string
*/
public function dismiss($username, $repository, $pullRequest, $id)
public function dismiss($username, $repository, $pullRequest, $id, $message)
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is technically a BC break. But i think we should consider it as a bugfix since the method as has been unusable before this PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I was getting a 500 Internal Error due to the missing required parameter $message :)

Copy link
Collaborator

Choose a reason for hiding this comment

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

Did you get 500 from the API server?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If the message is not provided it seem that Github does not like it very well. I was expecting something like a 422 Error, but I got a 500 instead (A ruby nil error seem to be uncaught by Github).

Copy link
Collaborator

Choose a reason for hiding this comment

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

I was also in doubt if this was a BC break but indeed the message is required. It could be this changed in the preview period. So this should be documented but it's a correct change. See https://developer.github.com/v3/pulls/reviews/#input-2

Copy link
Collaborator

Choose a reason for hiding this comment

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

👍 I would also report this to github so they can fix their error in this case!

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 already did it :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My mistake, it's not always a 500 error, it look completely random, sometimes I got a 400, sometimes a 422 O.O

Copy link
Collaborator

Choose a reason for hiding this comment

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

That's possibly a github error, but this PR is right. The message is required, so we should change the method

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@acrobat Let's add your review, so we can merge this asap (if you agree w/ this one).

Thanks :)

@acrobat acrobat merged commit 0b5cd52 into KnpLabs:master Jun 25, 2017
@acrobat
Copy link
Collaborator

acrobat commented Jun 25, 2017

Thanks @Geolim4!

@Nyholm
Copy link
Collaborator

Nyholm commented Jun 25, 2017

Good work!

@Nyholm
Copy link
Collaborator

Nyholm commented Jun 25, 2017

FYI: @acrobat we should consider "squash" PRs when merging. So each PR get one commit in the history.

@Geolim4
Copy link
Contributor Author

Geolim4 commented Jun 25, 2017

There's no doc about reviews ? If not can I add one (based on the other docs) ?

@acrobat
Copy link
Collaborator

acrobat commented Jun 25, 2017

@Nyholm yes indeed you are right! Should we just do it with the github merge button or do you have tool for that? (something like fabpot's mergetool)

@acrobat
Copy link
Collaborator

acrobat commented Jun 25, 2017

@Geolim4 It looks like the docs are indeed missing! If you have the time please open a PR for the missing docs, thanks! :)

@Nyholm
Copy link
Collaborator

Nyholm commented Jun 25, 2017

Just do it with the github merge button.

@Geolim4
Copy link
Contributor Author

Geolim4 commented Jun 25, 2017

@acrobat PR sent :)

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