BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
1e759816
Commit
1e759816
authored
Jun 18, 2014
by
Andrew Kumanyaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update markdown reference to external issues
1. Issue may be not only in jira. 2. Rewrite method for support different external issue trackers
parent
550f2337
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
markdown.rb
lib/gitlab/markdown.rb
+8
-4
No files found.
lib/gitlab/markdown.rb
View file @
1e759816
...
@@ -189,8 +189,12 @@ module Gitlab
...
@@ -189,8 +189,12 @@ module Gitlab
link_to
(
"#
#{
identifier
}
"
,
url
,
options
)
link_to
(
"#
#{
identifier
}
"
,
url
,
options
)
end
end
elsif
project
.
issues_tracker
==
'jira'
else
reference_jira_issue
(
identifier
,
project
)
config
=
Gitlab
.
config
external_issue_tracker
=
config
.
issues_tracker
[
project
.
issues_tracker
]
if
external_issue_tracker
.
present?
reference_external_issue
(
identifier
,
external_issue_tracker
,
project
)
end
end
end
end
end
...
@@ -226,9 +230,9 @@ module Gitlab
...
@@ -226,9 +230,9 @@ module Gitlab
end
end
end
end
def
reference_
jira_issue
(
identifi
er
,
project
=
@project
)
def
reference_
external_issue
(
identifier
,
issue_track
er
,
project
=
@project
)
url
=
url_for_issue
(
identifier
)
url
=
url_for_issue
(
identifier
)
title
=
Gitlab
.
config
.
issues_tracker
[
project
.
issues_tracker
][
"title"
]
title
=
issue_tracker
[
'title'
]
options
=
html_options
.
merge
(
options
=
html_options
.
merge
(
title:
"Issue in
#{
title
}
"
,
title:
"Issue in
#{
title
}
"
,
...
...
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