Commit 65eae647 authored by Robert Speicher's avatar Robert Speicher

Merge branch 'backport-ee' into 'master'

Backport two commits from EE

Backport part of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/110

See merge request !2424
parents 14695798 255445c3
...@@ -44,7 +44,7 @@ module MergeRequests ...@@ -44,7 +44,7 @@ module MergeRequests
def after_merge def after_merge
MergeRequests::PostMergeService.new(project, current_user).execute(merge_request) MergeRequests::PostMergeService.new(project, current_user).execute(merge_request)
if params[:should_remove_source_branch] if params[:should_remove_source_branch].present?
DeleteBranchService.new(@merge_request.source_project, current_user). DeleteBranchService.new(@merge_request.source_project, current_user).
execute(merge_request.source_branch) execute(merge_request.source_branch)
end end
......
require 'banzai'
module Banzai module Banzai
# Common methods for ReferenceFilters that support an optional cross-project # Common methods for ReferenceFilters that support an optional cross-project
# reference. # reference.
......
require 'active_support/core_ext/string/output_safety' require 'active_support/core_ext/string/output_safety'
require 'banzai'
module Banzai module Banzai
module Filter module Filter
......
require 'banzai'
module Banzai module Banzai
module Filter module Filter
# Issues, Merge Requests, Snippets, Commits and Commit Ranges share # Issues, Merge Requests, Snippets, Commits and Commit Ranges share
......
require 'banzai'
require 'html/pipeline/filter' require 'html/pipeline/filter'
require 'uri' require 'uri'
......
require 'banzai'
module Banzai module Banzai
module Filter module Filter
# HTML filter that replaces commit range references with links. # HTML filter that replaces commit range references with links.
......
require 'banzai'
module Banzai module Banzai
module Filter module Filter
# HTML filter that replaces commit references with links. # HTML filter that replaces commit references with links.
......
require 'action_controller' require 'action_controller'
require 'banzai'
require 'gitlab_emoji' require 'gitlab_emoji'
require 'html/pipeline/filter' require 'html/pipeline/filter'
......
require 'banzai'
module Banzai module Banzai
module Filter module Filter
# HTML filter that replaces external issue tracker references with links. # HTML filter that replaces external issue tracker references with links.
......
require 'banzai'
require 'html/pipeline/filter' require 'html/pipeline/filter'
module Banzai module Banzai
......
require 'banzai'
module Banzai module Banzai
module Filter module Filter
# HTML filter that replaces issue references with links. References to # HTML filter that replaces issue references with links. References to
......
require 'banzai'
module Banzai module Banzai
module Filter module Filter
# HTML filter that replaces label references with links. # HTML filter that replaces label references with links.
......
require 'banzai'
require 'html/pipeline/filter' require 'html/pipeline/filter'
module Banzai module Banzai
......
require 'banzai'
module Banzai module Banzai
module Filter module Filter
# HTML filter that replaces merge request references with links. References # HTML filter that replaces merge request references with links. References
......
require 'banzai'
require 'html/pipeline/filter' require 'html/pipeline/filter'
module Banzai module Banzai
......
require 'active_support/core_ext/string/output_safety' require 'active_support/core_ext/string/output_safety'
require 'banzai'
require 'html/pipeline/filter' require 'html/pipeline/filter'
module Banzai module Banzai
......
require 'banzai'
require 'html/pipeline/filter' require 'html/pipeline/filter'
module Banzai module Banzai
......
require 'banzai'
require 'html/pipeline/filter' require 'html/pipeline/filter'
require 'uri' require 'uri'
......
require 'banzai'
require 'html/pipeline/filter' require 'html/pipeline/filter'
require 'html/pipeline/sanitization_filter' require 'html/pipeline/sanitization_filter'
......
require 'banzai'
module Banzai module Banzai
module Filter module Filter
# HTML filter that replaces snippet references with links. References to # HTML filter that replaces snippet references with links. References to
......
require 'banzai'
require 'html/pipeline/filter' require 'html/pipeline/filter'
require 'rouge/plugins/redcarpet' require 'rouge/plugins/redcarpet'
......
require 'banzai'
require 'html/pipeline/filter' require 'html/pipeline/filter'
module Banzai module Banzai
......
require 'banzai'
require 'task_list/filter' require 'task_list/filter'
module Banzai module Banzai
......
require 'banzai'
require 'html/pipeline/filter' require 'html/pipeline/filter'
require 'uri' require 'uri'
......
require 'banzai'
module Banzai module Banzai
module Filter module Filter
# HTML filter that replaces user or group references with links. # HTML filter that replaces user or group references with links.
......
require 'banzai'
module Banzai module Banzai
class LazyReference class LazyReference
def self.load(refs) def self.load(refs)
......
require 'banzai'
module Banzai module Banzai
module Pipeline module Pipeline
def self.[](name) def self.[](name)
......
require 'banzai'
module Banzai module Banzai
module Pipeline module Pipeline
class AsciidocPipeline < BasePipeline class AsciidocPipeline < BasePipeline
......
require 'banzai'
module Banzai module Banzai
module Pipeline module Pipeline
class AtomPipeline < FullPipeline class AtomPipeline < FullPipeline
......
require 'banzai'
require 'html/pipeline' require 'html/pipeline'
module Banzai module Banzai
......
require 'banzai'
module Banzai module Banzai
module Pipeline module Pipeline
module CombinedPipeline module CombinedPipeline
......
require 'banzai'
module Banzai module Banzai
module Pipeline module Pipeline
class DescriptionPipeline < FullPipeline class DescriptionPipeline < FullPipeline
......
require 'banzai'
module Banzai module Banzai
module Pipeline module Pipeline
class EmailPipeline < FullPipeline class EmailPipeline < FullPipeline
......
require 'banzai'
module Banzai module Banzai
module Pipeline module Pipeline
class FullPipeline < CombinedPipeline.new(PlainMarkdownPipeline, GfmPipeline) class FullPipeline < CombinedPipeline.new(PlainMarkdownPipeline, GfmPipeline)
......
require 'banzai'
module Banzai module Banzai
module Pipeline module Pipeline
class GfmPipeline < BasePipeline class GfmPipeline < BasePipeline
......
require 'banzai'
module Banzai module Banzai
module Pipeline module Pipeline
class NotePipeline < FullPipeline class NotePipeline < FullPipeline
......
require 'banzai'
module Banzai module Banzai
module Pipeline module Pipeline
class PlainMarkdownPipeline < BasePipeline class PlainMarkdownPipeline < BasePipeline
......
require 'banzai'
module Banzai module Banzai
module Pipeline module Pipeline
class PostProcessPipeline < BasePipeline class PostProcessPipeline < BasePipeline
......
require 'banzai'
module Banzai module Banzai
module Pipeline module Pipeline
class ReferenceExtractionPipeline < BasePipeline class ReferenceExtractionPipeline < BasePipeline
......
require 'banzai'
module Banzai module Banzai
module Pipeline module Pipeline
class SingleLinePipeline < GfmPipeline class SingleLinePipeline < GfmPipeline
......
require 'banzai'
module Banzai module Banzai
# Extract possible GFM references from an arbitrary String for further processing. # Extract possible GFM references from an arbitrary String for further processing.
class ReferenceExtractor class ReferenceExtractor
......
require 'banzai'
module Gitlab module Gitlab
module Markdown module Markdown
class Pipeline class Pipeline
......
require 'banzai'
module Gitlab module Gitlab
# Extract possible GFM references from an arbitrary String for further processing. # Extract possible GFM references from an arbitrary String for further processing.
class ReferenceExtractor < Banzai::ReferenceExtractor class ReferenceExtractor < Banzai::ReferenceExtractor
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment