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
Boxiang Sun
gitlab-ce
Commits
d49c8e8e
Commit
d49c8e8e
authored
Mar 01, 2016
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mention cross-project labels in markdown documentation
parent
53c351a2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
app/models/label.rb
app/models/label.rb
+4
-0
doc/markdown/markdown.md
doc/markdown/markdown.md
+1
-0
No files found.
app/models/label.rb
View file @
d49c8e8e
...
@@ -48,7 +48,11 @@ class Label < ActiveRecord::Base
...
@@ -48,7 +48,11 @@ class Label < ActiveRecord::Base
'~'
'~'
end
end
##
# Pattern used to extract label references from text
# Pattern used to extract label references from text
#
# This pattern supports cross-project references.
#
def
self
.
reference_pattern
def
self
.
reference_pattern
%r{
%r{
(
#{
Project
.
reference_pattern
}
)?
(
#{
Project
.
reference_pattern
}
)?
...
...
doc/markdown/markdown.md
View file @
d49c8e8e
...
@@ -207,6 +207,7 @@ GFM also recognizes certain cross-project references:
...
@@ -207,6 +207,7 @@ GFM also recognizes certain cross-project references:
| `namespace/project$123` | snippet |
| `namespace/project$123` | snippet |
| `namespace/project@9ba12248` | specific commit |
| `namespace/project@9ba12248` | specific commit |
| `namespace/project@9ba12248...b19a04f5` | commit range comparison |
| `namespace/project@9ba12248...b19a04f5` | commit range comparison |
| `namespace/project~"Some label"` | issues with given label |
## Task Lists
## Task Lists
...
...
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