org.jenkinsci.plugins.ghprb
Class GhprbPullRequest

java.lang.Object
  extended by 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

Constructor Summary
GhprbPullRequest(org.kohsuke.github.GHPullRequest pr, Ghprb helper, GhprbRepository repo)
           
 
Method Summary
 void check(org.kohsuke.github.GHIssueComment comment)
           
 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.
 boolean equals(Object obj)
           
 String getAuthorEmail()
           
 org.kohsuke.github.GitUser getCommitAuthor()
           
 String getDescription()
           
 String getHead()
           
 int getId()
           
 org.kohsuke.github.GHPullRequest getPullRequest()
           
 org.kohsuke.github.GHUser getPullRequestAuthor()
           
 String getSource()
           
 String getTarget()
           
 String getTitle()
           
 URL getUrl()
          Returns the URL to the Github Pull Request.
 int hashCode()
           
 void init(Ghprb helper, GhprbRepository repo)
           
 boolean isMergeable()
           
 boolean isWhiteListedTargetBranch()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GhprbPullRequest

public GhprbPullRequest(org.kohsuke.github.GHPullRequest pr,
                        Ghprb helper,
                        GhprbRepository repo)
Method Detail

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()

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.