Skip to content

Commit

Permalink
Based on issue #399, adjusting the behaviour.
Browse files Browse the repository at this point in the history
This ends up changing the behaviour cloes to that of #394.
  • Loading branch information
kohsuke committed Jan 13, 2018
1 parent 5113aac commit 0f7c160
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/org/kohsuke/github/GHPullRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,12 @@ public boolean canMaintainerModify() throws IOException {
*
* @return
* null if the state has not been determined yet, for example when a PR is newly created.
* Use {@link #refresh()} after some interval to wait until the value is determined.
* If this method is called on an instance whose mergeable state is not yet known,
* API call is made to retrieve the latest state.
*/
public Boolean getMergeable() throws IOException {
populate();
if (mergeable==null)
refresh();
return mergeable;
}

Expand Down

0 comments on commit 0f7c160

Please sign in to comment.