|
|
@ -152,15 +152,15 @@ func (p *postProcessError) Error() string { |
|
|
|
type processor func(ctx *postProcessCtx, node *html.Node) |
|
|
|
type processor func(ctx *postProcessCtx, node *html.Node) |
|
|
|
|
|
|
|
|
|
|
|
var defaultProcessors = []processor{ |
|
|
|
var defaultProcessors = []processor{ |
|
|
|
mentionProcessor, |
|
|
|
|
|
|
|
shortLinkProcessor, |
|
|
|
|
|
|
|
fullIssuePatternProcessor, |
|
|
|
fullIssuePatternProcessor, |
|
|
|
|
|
|
|
fullSha1PatternProcessor, |
|
|
|
|
|
|
|
shortLinkProcessor, |
|
|
|
|
|
|
|
linkProcessor, |
|
|
|
|
|
|
|
mentionProcessor, |
|
|
|
issueIndexPatternProcessor, |
|
|
|
issueIndexPatternProcessor, |
|
|
|
crossReferenceIssueIndexPatternProcessor, |
|
|
|
crossReferenceIssueIndexPatternProcessor, |
|
|
|
fullSha1PatternProcessor, |
|
|
|
|
|
|
|
sha1CurrentPatternProcessor, |
|
|
|
sha1CurrentPatternProcessor, |
|
|
|
emailAddressProcessor, |
|
|
|
emailAddressProcessor, |
|
|
|
linkProcessor, |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
type postProcessCtx struct { |
|
|
|
type postProcessCtx struct { |
|
|
@ -194,14 +194,14 @@ func PostProcess( |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var commitMessageProcessors = []processor{ |
|
|
|
var commitMessageProcessors = []processor{ |
|
|
|
mentionProcessor, |
|
|
|
|
|
|
|
fullIssuePatternProcessor, |
|
|
|
fullIssuePatternProcessor, |
|
|
|
|
|
|
|
fullSha1PatternProcessor, |
|
|
|
|
|
|
|
linkProcessor, |
|
|
|
|
|
|
|
mentionProcessor, |
|
|
|
issueIndexPatternProcessor, |
|
|
|
issueIndexPatternProcessor, |
|
|
|
crossReferenceIssueIndexPatternProcessor, |
|
|
|
crossReferenceIssueIndexPatternProcessor, |
|
|
|
fullSha1PatternProcessor, |
|
|
|
|
|
|
|
sha1CurrentPatternProcessor, |
|
|
|
sha1CurrentPatternProcessor, |
|
|
|
emailAddressProcessor, |
|
|
|
emailAddressProcessor, |
|
|
|
linkProcessor, |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// RenderCommitMessage will use the same logic as PostProcess, but will disable
|
|
|
|
// RenderCommitMessage will use the same logic as PostProcess, but will disable
|
|
|
|