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

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 getHead()
           
 int getId()
           
 org.kohsuke.github.GHPullRequest getPullRequest()
           
 Set<String> getSkipBuildPhrases()
          Returns skip build phrases from Jenkins global configuration
 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
 

Method Detail

init

public void init(Ghprb helper,
                 GhprbRepository repo)

getSkipBuildPhrases

public Set<String> getSkipBuildPhrases()
Returns skip build phrases from Jenkins global configuration

Returns:

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

getPullRequest

public org.kohsuke.github.GHPullRequest getPullRequest()


Copyright © 2004-2015. All Rights Reserved.