Package com.coravy.hudson.plugins.github
Class GithubLinkAnnotator
- java.lang.Object
-
- hudson.scm.ChangeLogAnnotator
-
- com.coravy.hudson.plugins.github.GithubLinkAnnotator
-
- All Implemented Interfaces:
ExtensionPoint
@Extension public class GithubLinkAnnotator extends ChangeLogAnnotator
This class annotates changelog links.It's based on the TracLinkAnnotator.
TODO Change the annotator to use GithubUrl instead of the String url. Knowledge about the github url structure should be encapsulated in GithubUrl.
- Author:
- Stefan Saasen
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from class hudson.scm.ChangeLogAnnotator
annotators
-
-
Constructor Summary
Constructors Constructor Description GithubLinkAnnotator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
annotate(Run<?,?> build, ChangeLogSet.Entry change, MarkupText text)
static String
getAllowedUriSchemes()
static boolean
verifyUrl(String urlString)
-
Methods inherited from class hudson.scm.ChangeLogAnnotator
all, annotate, register, unregister
-
-
-
-
Method Detail
-
annotate
public void annotate(Run<?,?> build, ChangeLogSet.Entry change, MarkupText text)
- Overrides:
annotate
in classChangeLogAnnotator
-
getAllowedUriSchemes
@Nonnull public static String getAllowedUriSchemes()
-
verifyUrl
@CheckReturnValue @Nonnull public static boolean verifyUrl(@CheckForNull String urlString)
-
-