Skip to content

Commit a578ed3

Browse files
reyangCodeBlanch
andauthored
[repo] Switch to component label for tagging issues (#5612)
Co-authored-by: Mikel Blanchard <[email protected]>
1 parent 5aa077b commit a578ed3

File tree

3 files changed

+37
-12
lines changed

3 files changed

+37
-12
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,24 @@ body:
1010
Before filing a bug, please be sure you have searched through [existing bugs](https://github.com/open-telemetry/opentelemetry-dotnet/issues?q=is%3Aissue+is%3Aopen+label%3Abug) to see if an existing issue covers the bug.
1111
1212
- type: dropdown
13-
id: area
13+
id: package
1414
attributes:
15-
label: Area
16-
description: Which area does this bug report concern? If none fits, please select `area:other`
15+
label: Package
16+
description: Which NuGet package does this bug report concern?
1717
multiple: false
1818
options:
19-
- area:other
20-
- area:api
21-
- area:exporter
22-
- area:exporter:otlp
23-
- area:exporter:prometheus
24-
- area:ext:hosting
25-
- area:sdk
19+
- OpenTelemetry
20+
- OpenTelemetry.Api
21+
- OpenTelemetry.Api.ProviderBuilderExtensions
22+
- OpenTelemetry.Exporter.Console
23+
- OpenTelemetry.Exporter.InMemory
24+
- OpenTelemetry.Exporter.OpenTelemetryProtocol
25+
- OpenTelemetry.Exporter.Prometheus.AspNetCore
26+
- OpenTelemetry.Exporter.Prometheus.HttpListener
27+
- OpenTelemetry.Exporter.Zipkin
28+
- OpenTelemetry.Extensions.Hosting
29+
- OpenTelemetry.Extensions.Propagators
30+
- OpenTelemetry.Shims.OpenTracing
2631
validations:
2732
required: true
2833

.github/ISSUE_TEMPLATE/feature_request.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,26 @@ body:
99
1010
Before opening a feature request, consider whether the feature should/could be implemented in the [other OpenTelemetry client libraries](https://github.com/open-telemetry/). If so, please [open an issue on opentelemetry-specification](https://github.com/open-telemetry/opentelemetry-specification/issues/new) first.
1111
12+
- type: dropdown
13+
id: package
14+
attributes:
15+
label: Package
16+
description: Which NuGet package does this feature request concern?
17+
multiple: false
18+
options:
19+
- OpenTelemetry
20+
- OpenTelemetry.Api
21+
- OpenTelemetry.Api.ProviderBuilderExtensions
22+
- OpenTelemetry.Exporter.Console
23+
- OpenTelemetry.Exporter.InMemory
24+
- OpenTelemetry.Exporter.OpenTelemetryProtocol
25+
- OpenTelemetry.Exporter.Prometheus.AspNetCore
26+
- OpenTelemetry.Exporter.Prometheus.HttpListener
27+
- OpenTelemetry.Exporter.Zipkin
28+
- OpenTelemetry.Extensions.Hosting
29+
- OpenTelemetry.Extensions.Propagators
30+
- OpenTelemetry.Shims.OpenTracing
31+
1232
- type: textarea
1333
attributes:
1434
label: Is your feature request related to a problem?

build/scripts/add-labels.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ param(
33
[Parameter(Mandatory=$true)][string]$issueBody
44
)
55

6-
$match = [regex]::Match($issueBody, '^[#]+ Area\s*?(area:\w+)')
6+
$match = [regex]::Match($issueBody, '^[#]+ Package\s*(OpenTelemetry(?:\.\w+)*)')
77
if ($match.Success -eq $false)
88
{
99
Return
1010
}
1111

12-
gh issue edit $issueNumber --add-label $match.Groups[1].Value
12+
gh issue edit $issueNumber --add-label $("pkg:" + $match.Groups[1].Value)

0 commit comments

Comments
 (0)