Class GitHubPRPullRequest
- java.lang.Object
-
- org.jenkinsci.plugins.github.pullrequest.GitHubPRPullRequest
-
public class GitHubPRPullRequest extends Object
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. Instances of this class are immutable. Used fromGitHubPRRepository
-
-
Constructor Summary
Constructors Constructor Description GitHubPRPullRequest(org.kohsuke.github.GHPullRequest pr)
Save only what we need for next comparison
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getBaseRef()
String
getBody()
String
getHeadRef()
String
getHeadSha()
URL
getHtmlUrl()
URL to the Github Pull Request.static String
getIconFileName()
Date
getIssueUpdatedAt()
Set<String>
getLabels()
Date
getLastCommentCreatedAt()
int
getNumber()
Date
getPrUpdatedAt()
String
getSourceRepoOwner()
String
getState()
String
getTitle()
String
getUserEmail()
String
getUserLogin()
int
hashCode()
boolean
isInBadState()
Indicates that remote PR wasn't fully saved locally during last check.boolean
isMergeable()
void
setLabels(Set<String> labels)
as isString
toString()
-
-
-
Method Detail
-
getNumber
public int getNumber()
-
getHeadSha
public String getHeadSha()
-
isMergeable
public boolean isMergeable()
-
getBaseRef
public String getBaseRef()
-
getHeadRef
public String getHeadRef()
-
getUserEmail
public String getUserEmail()
-
getTitle
public String getTitle()
-
getBody
public String getBody()
-
getLastCommentCreatedAt
@CheckForNull public Date getLastCommentCreatedAt()
-
getHtmlUrl
public URL getHtmlUrl()
URL to the Github Pull Request.
-
getPrUpdatedAt
public Date getPrUpdatedAt()
-
getIssueUpdatedAt
public Date getIssueUpdatedAt()
-
getUserLogin
public String getUserLogin()
-
getSourceRepoOwner
public String getSourceRepoOwner()
-
isInBadState
public boolean isInBadState()
Indicates that remote PR wasn't fully saved locally during last check.
-
getIconFileName
public static String getIconFileName()
-
-