Skip to content

Commit 00fef0d

Browse files
Update labeler for hcp-docs support (#1048)
Update labeler.yml to support hcp-docs migration - Adds remaining HashiCorp products to support both `hcp` and `<productname>` label - Adds assumed path for non HCP product docs (which can be edited when those products migrate)
2 parents 9e03486 + 3d5a331 commit 00fef0d

File tree

1 file changed

+107
-7
lines changed

1 file changed

+107
-7
lines changed

.github/labeler.yml

Lines changed: 107 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,77 @@
11
# Copyright (c) HashiCorp, Inc.
22
# SPDX-License-Identifier: BUSL-1.1
33

4+
# Add 'Boundary' label to changes under 'content/boundary'
5+
#
6+
# Label | Rule
7+
# --------------- | ------------------------------------------------------------
8+
# Boundary | Default; applies to all doc updates
9+
# Boundary | Updates on HCP Boundary in hcp-docs directory
10+
11+
Boundary:
12+
- any:
13+
- changed-files:
14+
- any-glob-to-any-file: [
15+
'content/boundary/**',
16+
'content/hcp-docs/content/docs/boundary/**'
17+
]
18+
19+
# Add 'Consul' label to changes under 'content/consul'
20+
#
21+
# Label | Rule
22+
# --------------- | ------------------------------------------------------------
23+
# Consul | Default; applies to all doc updates
24+
# Consul | Updates on HCP Consul in hcp-docs directory
25+
26+
Consul:
27+
- any:
28+
- changed-files:
29+
- any-glob-to-any-file: [
30+
'content/consul/**',
31+
'content/hcp-docs/content/docs/consul/**'
32+
]
33+
34+
# Add 'HCP' label to changes under 'content/hcp-docs'
35+
#
36+
# Label | Rule
37+
# --------------- | ------------------------------------------------------------
38+
# HCP | Default; applies to all doc updates
39+
40+
HCP:
41+
- any:
42+
- changed-files:
43+
- any-glob-to-any-file: [
44+
'content/hcp-docs/**'
45+
]
46+
47+
# Add 'Packer' label to changes under 'content/packer'
48+
#
49+
# Label | Rule
50+
# --------------- | ------------------------------------------------------------
51+
# Packer | Default; applies to all doc updates
52+
# Packer | Updates on HCP Packer in hcp-docs directory
53+
54+
Packer:
55+
- any:
56+
- changed-files:
57+
- any-glob-to-any-file: [
58+
'content/packer/**',
59+
'content/hcp-docs/content/docs/packer/**'
60+
]
61+
62+
# Add 'Sentinel' label to changes under 'content/sentinel'
63+
#
64+
# Label | Rule
65+
# --------------- | ------------------------------------------------------------
66+
# Sentinel | Default; applies to all doc updates
67+
68+
Sentinel:
69+
- any:
70+
- changed-files:
71+
- any-glob-to-any-file: [
72+
'content/sentinel/**'
73+
]
74+
475
# Add a Terraform label to changes under the related folders:
576
#
677
# Folder | Labels
@@ -66,19 +137,35 @@ TF Plugin Framework:
66137
'content/terraform-plugin-framework/**'
67138
]
68139

140+
# Add 'Vagrant' label to changes under 'content/vagrant'
141+
#
142+
# Label | Rule
143+
# --------------- | ------------------------------------------------------------
144+
# Vagrant | Default; applies to all doc updates
145+
# Vagrant | Updates on HCP Vagrant in hcp-docs directory
69146

70-
# Add 'Vault' label to changes under 'content/vault'
147+
Vagrant:
148+
- any:
149+
- changed-files:
150+
- any-glob-to-any-file: [
151+
'content/vagrant/**',
152+
'content/hcp-docs/content/docs/vagrant/**'
153+
]
154+
155+
# Add 'Vault' label to changes under 'content/vault', and 'content/hcp-docs/content/docs/vault'
71156
#
72157
# Label | Rule
73158
# --------------- | ------------------------------------------------------------
74159
# Vault | Default; applies to all doc updates
160+
# Vault | Updates on HCP Vault Dedicated in hcp-docs directory
75161
# Vault IC update | Updates on "Important changes" related docs
76162

77163
Vault:
78164
- any:
79165
- changed-files:
80166
- any-glob-to-any-file: [
81-
'content/vault/**'
167+
'content/vault/**',
168+
'content/hcp-docs/content/docs/vault/**'
82169
]
83170

84171
Vault IC:
@@ -91,6 +178,19 @@ Vault IC:
91178
'content/vault/*/content/docs/updates/lts-tracker.mdx'
92179
]
93180

181+
# Add 'Vault Radar' label to changes under 'content/hcp-docs/content/docs/vault-radar'
182+
#
183+
# Label | Rule
184+
# --------------- | ------------------------------------------------------------
185+
# Vault Radar | Default; applies to all doc updates
186+
187+
Vault Radar:
188+
- any:
189+
- changed-files:
190+
- any-glob-to-any-file: [
191+
'content/hcp-docs/content/docs/vault-radar/**'
192+
]
193+
94194
# Add 'WAF' label to changes under 'content/well-architected-framework'
95195
#
96196
# Label | Rule
@@ -104,15 +204,15 @@ WAF:
104204
'content/well-architected-framework/**'
105205
]
106206

107-
# Add 'Sentinel' label to changes under 'content/sentinel'
207+
# Add 'Waypoint' label to changes under 'content/hcp-docs/content/docs/waypoint'
108208
#
109209
# Label | Rule
110210
# --------------- | ------------------------------------------------------------
111-
# Sentinel | Default; applies to all doc updates
211+
# Waypoint | Default; applies to all doc updates
112212

113-
Sentinel:
213+
Waypoint:
114214
- any:
115215
- changed-files:
116216
- any-glob-to-any-file: [
117-
'content/sentinel/**'
118-
]
217+
'content/hcp-docs/content/docs/waypoint/**'
218+
]

0 commit comments

Comments
 (0)