diff options
author | Mike Lewis <mlewis@gitlab.com> | 2019-06-07 14:36:35 +0000 |
---|---|---|
committer | Mike Lewis <mlewis@gitlab.com> | 2019-06-07 14:36:35 +0000 |
commit | ea7703ad82c75a92ec4bf3ee8697b864dafe5524 (patch) | |
tree | 1bd72f7d675a66668fd81da62a7631fd569f1d82 | |
parent | 53da0237fae80c3e2b1b7d55d150a87d83f1c6e7 (diff) | |
parent | ee4290ad78f7b3fdd359419fefbac851cd739f9c (diff) | |
download | gitlab-ce-ea7703ad82c75a92ec4bf3ee8697b864dafe5524.tar.gz |
Merge branch 'docs-scoped-label-key' into 'master'
Add a note about nested scopes matching
See merge request gitlab-org/gitlab-ce!28466
-rw-r--r-- | doc/user/project/labels.md | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/user/project/labels.md b/doc/user/project/labels.md index 8e9e9aa79cf..e5f62a3bb8d 100644 --- a/doc/user/project/labels.md +++ b/doc/user/project/labels.md @@ -32,6 +32,14 @@ An issue, epic, or merge request cannot have two scoped labels with the same key For example, if an issue is already labeled `priority::3` and you apply the label `priority::2` to it, `priority::3` is automatically removed. +### Labels with multiple colon pairs + +If labels have multiple instances of `::`, the longest path from left to right, until the last `::`, is considered the "key" or the "scope". + +For example, `nested::key1::value1` and `nested::key1::value2` cannot both exist on the same issue. Adding the latter label will automatically remove the former due to the shared scope of `nested::key1`. + +`nested::key1::value1` and `nested::key2::value1` can both exist on the same issue, as these are considered to use two different label scopes, `nested::key1` and `nested::key2`. + ### Workflows with scoped labels **[PREMIUM]** Suppose you wanted a custom field in issues to track the platform operating system |