Skip to content

Commit

Permalink
[repo] Switch to component label for tagging issues (#5612)
Browse files Browse the repository at this point in the history
Co-authored-by: Mikel Blanchard <mblanchard@macrosssoftware.com>
  • Loading branch information
reyang and CodeBlanch authored May 14, 2024
1 parent 5aa077b commit a578ed3
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 12 deletions.
25 changes: 15 additions & 10 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,24 @@ body:
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.
- type: dropdown
id: area
id: package
attributes:
label: Area
description: Which area does this bug report concern? If none fits, please select `area:other`
label: Package
description: Which NuGet package does this bug report concern?
multiple: false
options:
- area:other
- area:api
- area:exporter
- area:exporter:otlp
- area:exporter:prometheus
- area:ext:hosting
- area:sdk
- OpenTelemetry
- OpenTelemetry.Api
- OpenTelemetry.Api.ProviderBuilderExtensions
- OpenTelemetry.Exporter.Console
- OpenTelemetry.Exporter.InMemory
- OpenTelemetry.Exporter.OpenTelemetryProtocol
- OpenTelemetry.Exporter.Prometheus.AspNetCore
- OpenTelemetry.Exporter.Prometheus.HttpListener
- OpenTelemetry.Exporter.Zipkin
- OpenTelemetry.Extensions.Hosting
- OpenTelemetry.Extensions.Propagators
- OpenTelemetry.Shims.OpenTracing
validations:
required: true

Expand Down
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,26 @@ body:
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.
- type: dropdown
id: package
attributes:
label: Package
description: Which NuGet package does this feature request concern?
multiple: false
options:
- OpenTelemetry
- OpenTelemetry.Api
- OpenTelemetry.Api.ProviderBuilderExtensions
- OpenTelemetry.Exporter.Console
- OpenTelemetry.Exporter.InMemory
- OpenTelemetry.Exporter.OpenTelemetryProtocol
- OpenTelemetry.Exporter.Prometheus.AspNetCore
- OpenTelemetry.Exporter.Prometheus.HttpListener
- OpenTelemetry.Exporter.Zipkin
- OpenTelemetry.Extensions.Hosting
- OpenTelemetry.Extensions.Propagators
- OpenTelemetry.Shims.OpenTracing

- type: textarea
attributes:
label: Is your feature request related to a problem?
Expand Down
4 changes: 2 additions & 2 deletions build/scripts/add-labels.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ param(
[Parameter(Mandatory=$true)][string]$issueBody
)

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

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

0 comments on commit a578ed3

Please sign in to comment.