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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
129bb6c2
Commit
129bb6c2
authored
May 18, 2016
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Address Yorick's feedback
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
f29d8b64
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
CHANGELOG
CHANGELOG
+0
-2
app/models/milestone.rb
app/models/milestone.rb
+2
-2
No files found.
CHANGELOG
View file @
129bb6c2
...
@@ -2,8 +2,6 @@ Please view this file on the master branch, on stable branches it's out of date.
...
@@ -2,8 +2,6 @@ Please view this file on the master branch, on stable branches it's out of date.
v 8.8.0 (unreleased)
v 8.8.0 (unreleased)
- Implement GFM references for milestones (Alejandro Rodríguez)
- Implement GFM references for milestones (Alejandro Rodríguez)
v 8.7.1 (unreleased)
- Snippets tab under user profile. !4001 (Long Nguyen)
- Snippets tab under user profile. !4001 (Long Nguyen)
- Fix error when using link to uploads in global snippets
- Fix error when using link to uploads in global snippets
- Assign labels and milestone to target project when moving issue. !3934 (Long Nguyen)
- Assign labels and milestone to target project when moving issue. !3934 (Long Nguyen)
...
...
app/models/milestone.rb
View file @
129bb6c2
...
@@ -67,7 +67,7 @@ class Milestone < ActiveRecord::Base
...
@@ -67,7 +67,7 @@ class Milestone < ActiveRecord::Base
# NOTE: The iid pattern only matches when all characters on the expression
# NOTE: The iid pattern only matches when all characters on the expression
# are digits, so it will match %2 but not %2.1 because that's probably a
# are digits, so it will match %2 but not %2.1 because that's probably a
# milestone name and we want it to be matched as such.
# milestone name and we want it to be matched as such.
%r{
@reference_pattern
||=
%r{
(
#{
Project
.
reference_pattern
}
)?
(
#{
Project
.
reference_pattern
}
)?
#{
Regexp
.
escape
(
reference_prefix
)
}
#{
Regexp
.
escape
(
reference_prefix
)
}
(?:
(?:
...
@@ -195,7 +195,7 @@ class Milestone < ActiveRecord::Base
...
@@ -195,7 +195,7 @@ class Milestone < ActiveRecord::Base
private
private
def
milestone_format_reference
(
format
=
:iid
)
def
milestone_format_reference
(
format
=
:iid
)
raise
Standard
Error
,
'Unknown format'
unless
[
:iid
,
:name
].
include?
(
format
)
raise
Argument
Error
,
'Unknown format'
unless
[
:iid
,
:name
].
include?
(
format
)
if
format
==
:name
&&
!
name
.
include?
(
'"'
)
if
format
==
:name
&&
!
name
.
include?
(
'"'
)
%("#{name}")
%("#{name}")
...
...
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