Commit ea7703ad authored by Mike Lewis's avatar Mike Lewis

Merge branch 'docs-scoped-label-key' into 'master'

Add a note about nested scopes matching

See merge request gitlab-org/gitlab-ce!28466
parents 53da0237 ee4290ad
...@@ -32,6 +32,14 @@ An issue, epic, or merge request cannot have two scoped labels with the same key ...@@ -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, For example, if an issue is already labeled `priority::3` and you apply the label `priority::2` to it,
`priority::3` is automatically removed. `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]** ### Workflows with scoped labels **[PREMIUM]**
Suppose you wanted a custom field in issues to track the platform operating system Suppose you wanted a custom field in issues to track the platform operating system
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment