org.jenkinsci.plugins.ghprb
Class GhprbRepository

java.lang.Object
  extended by org.jenkinsci.plugins.ghprb.GhprbRepository

public class GhprbRepository
extends Object

Author:
Honza Brázdil

Constructor Summary
GhprbRepository(String user, String repository, Ghprb helper, ConcurrentMap<Integer,GhprbPullRequest> pulls)
           
 
Method Summary
 void addComment(int id, String comment)
           
 void addComment(int id, String comment, hudson.model.AbstractBuild<?,?> build, hudson.model.TaskListener listener)
           
 void check()
           
 void closePullRequest(int id)
           
 void createCommitStatus(hudson.model.AbstractBuild<?,?> build, org.kohsuke.github.GHCommitState state, String message, int id, String context, PrintStream stream)
           
 void createCommitStatus(hudson.model.AbstractBuild<?,?> build, String sha1, org.kohsuke.github.GHCommitState state, String url, String message, int id, String context, PrintStream stream)
           
 void createCommitStatus(String sha1, org.kohsuke.github.GHCommitState state, String url, String message, int id, String context)
           
 boolean createHook()
           
 String getName()
           
 org.kohsuke.github.GHPullRequest getPullRequest(int id)
           
 void init()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GhprbRepository

public GhprbRepository(String user,
                       String repository,
                       Ghprb helper,
                       ConcurrentMap<Integer,GhprbPullRequest> pulls)
Method Detail

init

public void init()

check

public void check()

createCommitStatus

public void createCommitStatus(hudson.model.AbstractBuild<?,?> build,
                               org.kohsuke.github.GHCommitState state,
                               String message,
                               int id,
                               String context,
                               PrintStream stream)

createCommitStatus

public void createCommitStatus(String sha1,
                               org.kohsuke.github.GHCommitState state,
                               String url,
                               String message,
                               int id,
                               String context)

createCommitStatus

public void createCommitStatus(hudson.model.AbstractBuild<?,?> build,
                               String sha1,
                               org.kohsuke.github.GHCommitState state,
                               String url,
                               String message,
                               int id,
                               String context,
                               PrintStream stream)

getName

public String getName()

addComment

public void addComment(int id,
                       String comment)

addComment

public void addComment(int id,
                       String comment,
                       hudson.model.AbstractBuild<?,?> build,
                       hudson.model.TaskListener listener)

closePullRequest

public void closePullRequest(int id)

createHook

public boolean createHook()

getPullRequest

public org.kohsuke.github.GHPullRequest getPullRequest(int id)
                                                throws IOException
Throws:
IOException


Copyright © 2004-2015. All Rights Reserved.