|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jenkinsci.plugins.ghprb.GhprbPullRequest
public class GhprbPullRequest
Maintains state about a Pull Request for a particular Jenkins job. This is what understands the current state of a PR for a particular job.
Constructor Summary | |
---|---|
GhprbPullRequest(org.kohsuke.github.GHPullRequest pr,
Ghprb ghprb,
GhprbRepository repo,
boolean isNew)
|
Method Summary | |
---|---|
void |
check(org.kohsuke.github.GHIssueComment comment)
|
void |
check(org.kohsuke.github.GHPullRequest ghpr)
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()
|
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 |
isChanged()
|
boolean |
isMergeable()
|
boolean |
isWhiteListedTargetBranch()
|
void |
save()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GhprbPullRequest(org.kohsuke.github.GHPullRequest pr, Ghprb ghprb, GhprbRepository repo, boolean isNew)
Method Detail |
---|
public void init(Ghprb helper, GhprbRepository repo)
public void check(org.kohsuke.github.GHPullRequest ghpr)
ghpr
- public void check(org.kohsuke.github.GHIssueComment comment)
public boolean isWhiteListedTargetBranch()
public boolean checkMergeable()
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
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
public String getDescription()
public org.kohsuke.github.GitUser getCommitAuthor()
public org.kohsuke.github.GHUser getPullRequestAuthor() throws IOException
IOException
public org.kohsuke.github.GHPullRequest getPullRequest(boolean force) throws IOException
force
- - forces the code to go get the PullRequest from GitHub now
IOException
public String getAuthorEmail()
public boolean isChanged()
public void save()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |