org.jenkinsci.plugins.ghprb
Class GhprbPullRequest
java.lang.Object
org.jenkinsci.plugins.ghprb.GhprbPullRequest
public class GhprbPullRequest
- 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.
- Author:
- Honza Brázdil
GhprbPullRequest
public GhprbPullRequest(org.kohsuke.github.GHPullRequest pr,
Ghprb helper,
GhprbRepository repo)
init
public void init(Ghprb helper,
GhprbRepository repo)
check
public void check(org.kohsuke.github.GHPullRequest pr)
- Checks this Pull Request representation against a GitHub version of the Pull Request, and triggers a build if necessary.
- Parameters:
pr
-
check
public void check(org.kohsuke.github.GHIssueComment comment)
isWhiteListedTargetBranch
public boolean isWhiteListedTargetBranch()
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
getId
public int getId()
getHead
public String getHead()
getAuthorRepoGitUrl
public String getAuthorRepoGitUrl()
isMergeable
public boolean isMergeable()
getTarget
public String getTarget()
getSource
public String getSource()
getAuthorEmail
public String getAuthorEmail()
getTitle
public String getTitle()
getUrl
public URL getUrl()
- Returns the URL to the Github Pull Request.
- Returns:
- the Github Pull Request URL
getCommitAuthor
public org.kohsuke.github.GitUser getCommitAuthor()
getPullRequestAuthor
public org.kohsuke.github.GHUser getPullRequestAuthor()
getPullRequest
public org.kohsuke.github.GHPullRequest getPullRequest()
getDescription
public String getDescription()
Copyright © 2004-2015. All Rights Reserved.