public class GhprbPullRequest extends Object
Constructor and Description |
---|
GhprbPullRequest(org.kohsuke.github.GHPullRequest pr,
Ghprb ghprb,
GhprbRepository repo) |
Modifier and Type | Method and Description |
---|---|
void |
check(org.kohsuke.github.GHIssueComment comment) |
void |
check(org.kohsuke.github.GHPullRequest ghpr,
boolean isWebhook)
Checks this Pull Request representation against a GitHub version of the Pull Request, and triggers a build if
necessary.
|
boolean |
checkMergeable() |
boolean |
equals(Object obj) |
String |
getAuthorEmail()
Email address is collected from GitHub as extra information, so lets cache it.
|
String |
getAuthorRepoGitUrl() |
org.kohsuke.github.GitUser |
getCommitAuthor() |
String |
getDescription()
The description body is part of the PullRequest object
|
String |
getHead() |
int |
getId() |
String |
getLastBuildId() |
org.kohsuke.github.GHPullRequest |
getPullRequest()
Get the PullRequest object for this PR
|
org.kohsuke.github.GHPullRequest |
getPullRequest(boolean force)
Get the PullRequest object for this PR
|
org.kohsuke.github.GHUser |
getPullRequestAuthor()
Author is part of the PullRequest Object
|
String |
getSource()
Head and Ref are part of the PullRequest object
|
String |
getTarget()
Base and Ref are part of the PullRequest object
|
String |
getTitle()
Title is part of the PullRequest object
|
URL |
getUrl()
Returns the URL to the Github Pull Request.
|
int |
hashCode() |
void |
init(Ghprb helper,
GhprbRepository repo) |
boolean |
isAllowedTargetBranch() |
boolean |
isMergeable() |
void |
setBuild(hudson.model.Run<?,?> build) |
public GhprbPullRequest(org.kohsuke.github.GHPullRequest pr, Ghprb ghprb, GhprbRepository repo)
public void init(Ghprb helper, GhprbRepository repo)
public void check(org.kohsuke.github.GHPullRequest ghpr, boolean isWebhook)
ghpr
- the pull request from githubisWebhook
- whether this is from a webhook or notpublic void check(org.kohsuke.github.GHIssueComment comment)
public boolean isAllowedTargetBranch()
public boolean checkMergeable()
public int getId()
public String getHead()
public String getAuthorRepoGitUrl()
public boolean isMergeable()
public String getTarget()
public String getSource()
public String getTitle()
public URL getUrl() throws IOException
IOException
- If unable to connect to GitHubpublic String getDescription()
public org.kohsuke.github.GitUser getCommitAuthor()
public org.kohsuke.github.GHUser getPullRequestAuthor() throws IOException
IOException
- Unable to connect to GitHubpublic org.kohsuke.github.GHPullRequest getPullRequest() throws IOException
IOException
- if unable to connect to GitHubpublic org.kohsuke.github.GHPullRequest getPullRequest(boolean force) throws IOException
force
- If true, forces retrieval of the PR info from the github API. Use sparingly.IOException
- if unable to connect to GitHubpublic String getAuthorEmail()
public void setBuild(hudson.model.Run<?,?> build)
public String getLastBuildId()
Copyright © 2016–2017. All rights reserved.