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
This commit is contained in:
Robert Speicher 2016-01-14 18:39:49 +00:00
commit 65eae647a6
43 changed files with 1 additions and 70 deletions

View file

@ -44,7 +44,7 @@ module MergeRequests
def after_merge
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).
execute(merge_request.source_branch)
end

View file

@ -1,5 +1,3 @@
require 'banzai'
module Banzai
# Common methods for ReferenceFilters that support an optional cross-project
# reference.

View file

@ -1,5 +1,4 @@
require 'active_support/core_ext/string/output_safety'
require 'banzai'
module Banzai
module Filter

View file

@ -1,5 +1,3 @@
require 'banzai'
module Banzai
module Filter
# Issues, Merge Requests, Snippets, Commits and Commit Ranges share

View file

@ -1,4 +1,3 @@
require 'banzai'
require 'html/pipeline/filter'
require 'uri'

View file

@ -1,5 +1,3 @@
require 'banzai'
module Banzai
module Filter
# HTML filter that replaces commit range references with links.

View file

@ -1,5 +1,3 @@
require 'banzai'
module Banzai
module Filter
# HTML filter that replaces commit references with links.

View file

@ -1,5 +1,4 @@
require 'action_controller'
require 'banzai'
require 'gitlab_emoji'
require 'html/pipeline/filter'

View file

@ -1,5 +1,3 @@
require 'banzai'
module Banzai
module Filter
# HTML filter that replaces external issue tracker references with links.

View file

@ -1,4 +1,3 @@
require 'banzai'
require 'html/pipeline/filter'
module Banzai

View file

@ -1,5 +1,3 @@
require 'banzai'
module Banzai
module Filter
# HTML filter that replaces issue references with links. References to

View file

@ -1,5 +1,3 @@
require 'banzai'
module Banzai
module Filter
# HTML filter that replaces label references with links.

View file

@ -1,4 +1,3 @@
require 'banzai'
require 'html/pipeline/filter'
module Banzai

View file

@ -1,5 +1,3 @@
require 'banzai'
module Banzai
module Filter
# HTML filter that replaces merge request references with links. References

View file

@ -1,4 +1,3 @@
require 'banzai'
require 'html/pipeline/filter'
module Banzai

View file

@ -1,5 +1,4 @@
require 'active_support/core_ext/string/output_safety'
require 'banzai'
require 'html/pipeline/filter'
module Banzai

View file

@ -1,4 +1,3 @@
require 'banzai'
require 'html/pipeline/filter'
module Banzai

View file

@ -1,4 +1,3 @@
require 'banzai'
require 'html/pipeline/filter'
require 'uri'

View file

@ -1,4 +1,3 @@
require 'banzai'
require 'html/pipeline/filter'
require 'html/pipeline/sanitization_filter'

View file

@ -1,5 +1,3 @@
require 'banzai'
module Banzai
module Filter
# HTML filter that replaces snippet references with links. References to

View file

@ -1,4 +1,3 @@
require 'banzai'
require 'html/pipeline/filter'
require 'rouge/plugins/redcarpet'

View file

@ -1,4 +1,3 @@
require 'banzai'
require 'html/pipeline/filter'
module Banzai

View file

@ -1,4 +1,3 @@
require 'banzai'
require 'task_list/filter'
module Banzai

View file

@ -1,4 +1,3 @@
require 'banzai'
require 'html/pipeline/filter'
require 'uri'

View file

@ -1,5 +1,3 @@
require 'banzai'
module Banzai
module Filter
# HTML filter that replaces user or group references with links.

View file

@ -1,5 +1,3 @@
require 'banzai'
module Banzai
class LazyReference
def self.load(refs)

View file

@ -1,5 +1,3 @@
require 'banzai'
module Banzai
module Pipeline
def self.[](name)

View file

@ -1,5 +1,3 @@
require 'banzai'
module Banzai
module Pipeline
class AsciidocPipeline < BasePipeline

View file

@ -1,5 +1,3 @@
require 'banzai'
module Banzai
module Pipeline
class AtomPipeline < FullPipeline

View file

@ -1,4 +1,3 @@
require 'banzai'
require 'html/pipeline'
module Banzai

View file

@ -1,5 +1,3 @@
require 'banzai'
module Banzai
module Pipeline
module CombinedPipeline

View file

@ -1,5 +1,3 @@
require 'banzai'
module Banzai
module Pipeline
class DescriptionPipeline < FullPipeline

View file

@ -1,5 +1,3 @@
require 'banzai'
module Banzai
module Pipeline
class EmailPipeline < FullPipeline

View file

@ -1,5 +1,3 @@
require 'banzai'
module Banzai
module Pipeline
class FullPipeline < CombinedPipeline.new(PlainMarkdownPipeline, GfmPipeline)

View file

@ -1,5 +1,3 @@
require 'banzai'
module Banzai
module Pipeline
class GfmPipeline < BasePipeline

View file

@ -1,5 +1,3 @@
require 'banzai'
module Banzai
module Pipeline
class NotePipeline < FullPipeline

View file

@ -1,5 +1,3 @@
require 'banzai'
module Banzai
module Pipeline
class PlainMarkdownPipeline < BasePipeline

View file

@ -1,5 +1,3 @@
require 'banzai'
module Banzai
module Pipeline
class PostProcessPipeline < BasePipeline

View file

@ -1,5 +1,3 @@
require 'banzai'
module Banzai
module Pipeline
class ReferenceExtractionPipeline < BasePipeline

View file

@ -1,5 +1,3 @@
require 'banzai'
module Banzai
module Pipeline
class SingleLinePipeline < GfmPipeline

View file

@ -1,5 +1,3 @@
require 'banzai'
module Banzai
# Extract possible GFM references from an arbitrary String for further processing.
class ReferenceExtractor

View file

@ -1,5 +1,3 @@
require 'banzai'
module Gitlab
module Markdown
class Pipeline

View file

@ -1,5 +1,3 @@
require 'banzai'
module Gitlab
# Extract possible GFM references from an arbitrary String for further processing.
class ReferenceExtractor < Banzai::ReferenceExtractor