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

getMergeableState in GHPullRequest doesn't work #41

Closed
Memphiz opened this issue Aug 6, 2013 · 1 comment
Closed

getMergeableState in GHPullRequest doesn't work #41

Memphiz opened this issue Aug 6, 2013 · 1 comment

Comments

@Memphiz
Copy link

Memphiz commented Aug 6, 2013

Hi there,

it seems that the GHPullRequest.getMergeableState method doesn't work in current implementation. At least when i use the jenkins ghprb (github pull request builder plugin) it always builds the unmerged branch only because off the method returing false (though the pr is mergeable as confirmed in the github webinterface).

Based on the github api v3 the needed field is called "mergeable" (and a boolean).

It seems that "populate" doesn't fill in the "mergeable_state" member. Though i didn't find the code where it really fills in the object members.

Also it looks like in GHPullRequest.populate() the call to root.retrieve().to(url, this); is issued with an empty url object. At least i didn't spot where the url member (its a member of the parent class GHIssue) is initialised.

Would be great if you could comment on that one :o)

thx

Memphiz

@Memphiz
Copy link
Author

Memphiz commented Aug 7, 2013

This was a false alert. Problem was that the getMergeableState was never called when a comment triggered a build in the ghprb-plugin for jenkins. It works as expected when called ;).

Sorry for the noise.

@Memphiz Memphiz closed this as completed Aug 7, 2013
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

No branches or pull requests

1 participant