File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -175,6 +175,10 @@ func getAreaLabel(merge string) (string, error) {
175
175
var areaLabels []string
176
176
for _ , label := range pr .Labels {
177
177
if area , ok := trimAreaLabel (label .Name ); ok {
178
+ if userFriendlyArea , ok := userFriendlyAreas [area ]; ok {
179
+ area = userFriendlyArea
180
+ }
181
+
178
182
areaLabels = append (areaLabels , area )
179
183
}
180
184
}
@@ -183,13 +187,9 @@ func getAreaLabel(merge string) (string, error) {
183
187
case 0 :
184
188
return missingAreaLabelPrefix , nil
185
189
case 1 :
186
- area := areaLabels [0 ]
187
- if userFriendlyArea , ok := userFriendlyAreas [area ]; ok {
188
- area = userFriendlyArea
189
- }
190
- return area , nil
190
+ return areaLabels [0 ], nil
191
191
default :
192
- return multipleAreaLabelsPrefix + strings .Join (areaLabels , "| " ) + "]" , nil
192
+ return multipleAreaLabelsPrefix + strings .Join (areaLabels , "/ " ) + "]" , nil
193
193
}
194
194
}
195
195
@@ -371,6 +371,7 @@ func run() int {
371
371
str2 := strings .ToLower (mergeslice [j ])
372
372
return str1 < str2
373
373
})
374
+
374
375
for _ , merge := range mergeslice {
375
376
fmt .Println (merge )
376
377
}
You can’t perform that action at this time.
0 commit comments