Mention cross-project labels in markdown documentation

This commit is contained in:
Grzegorz Bizon 2016-03-01 11:39:49 +01:00
parent 53c351a2a5
commit d49c8e8e3d
2 changed files with 5 additions and 0 deletions

View File

@ -48,7 +48,11 @@ class Label < ActiveRecord::Base
'~'
end
##
# Pattern used to extract label references from text
#
# This pattern supports cross-project references.
#
def self.reference_pattern
%r{
(#{Project.reference_pattern})?

View File

@ -207,6 +207,7 @@ GFM also recognizes certain cross-project references:
| `namespace/project$123` | snippet |
| `namespace/project@9ba12248` | specific commit |
| `namespace/project@9ba12248...b19a04f5` | commit range comparison |
| `namespace/project~"Some label"` | issues with given label |
## Task Lists