Class GitHubPRMessage
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<GitHubPRMessage>
-
- org.jenkinsci.plugins.github.pullrequest.GitHubPRMessage
-
- All Implemented Interfaces:
Describable<GitHubPRMessage>
public class GitHubPRMessage extends AbstractDescribableImpl<GitHubPRMessage>
Represents a comment for GitHub that can contain token macros.- Author:
- Kanstantsin Shautsou, Alina Karpovich
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GitHubPRMessage.DescriptorImpl
-
Constructor Summary
Constructors Constructor Description GitHubPRMessage(String content)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
expandAll(Run<?,?> run, TaskListener listener)
Expand all what we can from given runstatic String
expandAll(String content, Run<?,?> run, TaskListener listener)
Expand all what we can from given runString
getContent()
GitHubPRMessage.DescriptorImpl
getDescriptor()
-
-
-
Constructor Detail
-
GitHubPRMessage
@DataBoundConstructor public GitHubPRMessage(String content)
-
-
Method Detail
-
expandAll
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) @CheckForNull public String expandAll(Run<?,?> run, TaskListener listener) throws IOException, InterruptedException
Expand all what we can from given run- Throws:
IOException
InterruptedException
-
expandAll
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) @CheckForNull public static String expandAll(String content, Run<?,?> run, TaskListener listener) throws IOException, InterruptedException
Expand all what we can from given run- Throws:
IOException
InterruptedException
-
getContent
public String getContent()
-
getDescriptor
public GitHubPRMessage.DescriptorImpl getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<GitHubPRMessage>
- Overrides:
getDescriptor
in classAbstractDescribableImpl<GitHubPRMessage>
-
-