Class GitHubPRCause
- java.lang.Object
-
- hudson.model.Cause
-
- com.github.kostyasha.github.integration.generic.GitHubCause<GitHubPRCause>
-
- org.jenkinsci.plugins.github.pullrequest.GitHubPRCause
-
public class GitHubPRCause extends GitHubCause<GitHubPRCause>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.model.Cause
Cause.LegacyCodeCause, Cause.RemoteCause, Cause.UpstreamCause, Cause.UserCause, Cause.UserIdCause
-
-
Constructor Summary
Constructors Constructor Description GitHubPRCause()
GitHubPRCause(String headSha, int number, boolean mergeable, String targetBranch, String sourceBranch, String prAuthorEmail, String title, URL htmlUrl, String sourceRepoOwner, Set<String> labels, org.kohsuke.github.GHUser triggerSender, boolean skip, String reason, String commitAuthorName, String commitAuthorEmail, String state)
GitHubPRCause(GitHubPRCause orig)
Copy constructorGitHubPRCause(GitHubPRPullRequest pr, org.kohsuke.github.GHUser triggerSender, boolean skip, String reason)
Deprecated.GitHubPRCause(GitHubPRPullRequest pr, org.kohsuke.github.GHUser triggerSender, GitHubPRRepository localRepo, boolean skip, String reason)
GitHubPRCause(org.kohsuke.github.GHPullRequest remotePr, String reason, boolean skip)
Deprecated.GitHubPRCause(org.kohsuke.github.GHPullRequest remotePr, GitHubPRRepository localRepo, String reason, boolean skip)
-
Method Summary
-
Methods inherited from class com.github.kostyasha.github.integration.generic.GitHubCause
createSCMRevision, getAbbreviatedTitle, getGitUrl, getHtmlUrl, getPollingLog, getReason, getRemoteData, getSshUrl, getTitle, isSkip, setPollingLog, setPollingLogFile, skipTrigger, withGitUrl, withHtmlUrl, withPollingLog, withReason, withRemoteData, withSkip, withSshUrl, withTitle
-
-
-
-
Constructor Detail
-
GitHubPRCause
public GitHubPRCause()
-
GitHubPRCause
public GitHubPRCause(org.kohsuke.github.GHPullRequest remotePr, GitHubPRRepository localRepo, String reason, boolean skip)
-
GitHubPRCause
@Deprecated public GitHubPRCause(org.kohsuke.github.GHPullRequest remotePr, String reason, boolean skip)
Deprecated.
-
GitHubPRCause
public GitHubPRCause(GitHubPRPullRequest pr, org.kohsuke.github.GHUser triggerSender, GitHubPRRepository localRepo, boolean skip, String reason)
-
GitHubPRCause
@Deprecated public GitHubPRCause(GitHubPRPullRequest pr, org.kohsuke.github.GHUser triggerSender, boolean skip, String reason)
Deprecated.
-
GitHubPRCause
public GitHubPRCause(String headSha, int number, boolean mergeable, String targetBranch, String sourceBranch, String prAuthorEmail, String title, URL htmlUrl, String sourceRepoOwner, Set<String> labels, org.kohsuke.github.GHUser triggerSender, boolean skip, String reason, String commitAuthorName, String commitAuthorEmail, String state)
-
GitHubPRCause
public GitHubPRCause(GitHubPRCause orig)
Copy constructor
-
-
Method Detail
-
withLocalRepo
public GitHubPRCause withLocalRepo(@NonNull GitHubRepository localRepo)
- Overrides:
withLocalRepo
in classGitHubCause<GitHubPRCause>
-
newGitHubPRCause
public static GitHubPRCause newGitHubPRCause()
-
withHeadSha
public GitHubPRCause withHeadSha(String headSha)
- See Also:
headSha
-
withNumber
public GitHubPRCause withNumber(int number)
- See Also:
number
-
withMergeable
public GitHubPRCause withMergeable(boolean mergeable)
- See Also:
mergeable
-
withTargetBranch
public GitHubPRCause withTargetBranch(String targetBranch)
- See Also:
targetBranch
-
withSourceBranch
public GitHubPRCause withSourceBranch(String sourceBranch)
- See Also:
sourceBranch
-
withPrAuthorEmail
public GitHubPRCause withPrAuthorEmail(String prAuthorEmail)
- See Also:
prAuthorEmail
-
withSourceRepoOwner
public GitHubPRCause withSourceRepoOwner(String sourceRepoOwner)
- See Also:
sourceRepoOwner
-
withTriggerSenderName
public GitHubPRCause withTriggerSenderName(String triggerSenderName)
- See Also:
triggerSenderName
-
withTriggerSenderEmail
public GitHubPRCause withTriggerSenderEmail(String triggerSenderEmail)
- See Also:
triggerSenderEmail
-
withLabels
public GitHubPRCause withLabels(Set<String> labels)
- See Also:
labels
-
withCommitAuthorName
public GitHubPRCause withCommitAuthorName(String commitAuthorName)
- See Also:
commitAuthorName
-
withCommitAuthorEmail
public GitHubPRCause withCommitAuthorEmail(String commitAuthorEmail)
- See Also:
commitAuthorEmail
-
withCondRef
public GitHubPRCause withCondRef(String condRef)
- See Also:
condRef
-
withCommentAuthorName
public GitHubPRCause withCommentAuthorName(String commentAuthorName)
-
withCommentAuthorEmail
public GitHubPRCause withCommentAuthorEmail(String commentAuthorEmail)
-
withCommentBody
public GitHubPRCause withCommentBody(String commentBody)
-
withCommentBodyMatch
public GitHubPRCause withCommentBodyMatch(String commentBodyMatch)
-
getBody
public String getBody()
-
withBody
public GitHubPRCause withBody(String body)
-
getShortDescription
public String getShortDescription()
- Specified by:
getShortDescription
in classCause
-
getHeadSha
public String getHeadSha()
-
isMergeable
public boolean isMergeable()
-
getNumber
public int getNumber()
-
getTargetBranch
public String getTargetBranch()
-
getSourceBranch
public String getSourceBranch()
-
getPRAuthorEmail
public String getPRAuthorEmail()
-
getSourceRepoOwner
public String getSourceRepoOwner()
-
getTriggerSenderName
public String getTriggerSenderName()
-
getTriggerSenderEmail
public String getTriggerSenderEmail()
-
getPrAuthorEmail
public String getPrAuthorEmail()
-
getCommitAuthorName
public String getCommitAuthorName()
-
getCommitAuthorEmail
public String getCommitAuthorEmail()
-
getState
public String getState()
-
getCondRef
@NonNull public String getCondRef()
-
getCommentAuthorName
public String getCommentAuthorName()
When trigger by comment, author of comment.
-
getCommentAuthorEmail
public String getCommentAuthorEmail()
When trigger by comment, author email of comment.
-
getCommentBody
public String getCommentBody()
When trigger by comment, body of comment.
-
getCommentBodyMatch
public String getCommentBodyMatch()
When trigger by comment, string matched to pattern.
-
fillParameters
public void fillParameters(List<ParameterValue> params)
- Specified by:
fillParameters
in classGitHubCause<GitHubPRCause>
-
createSCMHead
public GitHubSCMHead<GitHubPRCause> createSCMHead(String sourceId)
- Specified by:
createSCMHead
in classGitHubCause<GitHubPRCause>
-
-