Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
148128e9
Commit
148128e9
authored
Jul 13, 2018
by
Sean McGivern
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extract EE-specific lines from Banzai pipelines
parent
a3c8525d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
10 deletions
+28
-10
lib/banzai/pipeline/gfm_pipeline.rb
lib/banzai/pipeline/gfm_pipeline.rb
+12
-6
lib/banzai/pipeline/post_process_pipeline.rb
lib/banzai/pipeline/post_process_pipeline.rb
+9
-3
lib/banzai/pipeline/single_line_pipeline.rb
lib/banzai/pipeline/single_line_pipeline.rb
+7
-1
No files found.
lib/banzai/pipeline/gfm_pipeline.rb
View file @
148128e9
...
@@ -24,6 +24,17 @@ module Banzai
...
@@ -24,6 +24,17 @@ module Banzai
Filter
::
AutolinkFilter
,
Filter
::
AutolinkFilter
,
Filter
::
ExternalLinkFilter
,
Filter
::
ExternalLinkFilter
,
*
reference_filters
,
Filter
::
TaskListFilter
,
Filter
::
InlineDiffFilter
,
Filter
::
SetDirectionFilter
]
end
def
self
.
reference_filters
[
Filter
::
UserReferenceFilter
,
Filter
::
UserReferenceFilter
,
Filter
::
IssueReferenceFilter
,
Filter
::
IssueReferenceFilter
,
Filter
::
ExternalIssueReferenceFilter
,
Filter
::
ExternalIssueReferenceFilter
,
...
@@ -32,12 +43,7 @@ module Banzai
...
@@ -32,12 +43,7 @@ module Banzai
Filter
::
CommitRangeReferenceFilter
,
Filter
::
CommitRangeReferenceFilter
,
Filter
::
CommitReferenceFilter
,
Filter
::
CommitReferenceFilter
,
Filter
::
LabelReferenceFilter
,
Filter
::
LabelReferenceFilter
,
Filter
::
MilestoneReferenceFilter
,
Filter
::
MilestoneReferenceFilter
Filter
::
TaskListFilter
,
Filter
::
InlineDiffFilter
,
Filter
::
SetDirectionFilter
]
]
end
end
...
...
lib/banzai/pipeline/post_process_pipeline.rb
View file @
148128e9
...
@@ -2,11 +2,17 @@ module Banzai
...
@@ -2,11 +2,17 @@ module Banzai
module
Pipeline
module
Pipeline
class
PostProcessPipeline
<
BasePipeline
class
PostProcessPipeline
<
BasePipeline
def
self
.
filters
def
self
.
filters
FilterArray
[
@filters
||=
FilterArray
[
*
internal_link_filters
,
Filter
::
AbsoluteLinkFilter
]
end
def
self
.
internal_link_filters
[
Filter
::
RedactorFilter
,
Filter
::
RedactorFilter
,
Filter
::
RelativeLinkFilter
,
Filter
::
RelativeLinkFilter
,
Filter
::
IssuableStateFilter
,
Filter
::
IssuableStateFilter
Filter
::
AbsoluteLinkFilter
]
]
end
end
...
...
lib/banzai/pipeline/single_line_pipeline.rb
View file @
148128e9
...
@@ -10,13 +10,19 @@ module Banzai
...
@@ -10,13 +10,19 @@ module Banzai
Filter
::
AutolinkFilter
,
Filter
::
AutolinkFilter
,
Filter
::
ExternalLinkFilter
,
Filter
::
ExternalLinkFilter
,
*
reference_filters
]
end
def
self
.
reference_filters
[
Filter
::
UserReferenceFilter
,
Filter
::
UserReferenceFilter
,
Filter
::
IssueReferenceFilter
,
Filter
::
IssueReferenceFilter
,
Filter
::
ExternalIssueReferenceFilter
,
Filter
::
ExternalIssueReferenceFilter
,
Filter
::
MergeRequestReferenceFilter
,
Filter
::
MergeRequestReferenceFilter
,
Filter
::
SnippetReferenceFilter
,
Filter
::
SnippetReferenceFilter
,
Filter
::
CommitRangeReferenceFilter
,
Filter
::
CommitRangeReferenceFilter
,
Filter
::
CommitReferenceFilter
,
Filter
::
CommitReferenceFilter
]
]
end
end
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment