Skip to content

Commit

Permalink
[chore] fix issue template components (open-telemetry#31305)
Browse files Browse the repository at this point in the history
This fixes github issue templates, broken because we have a duplicate in
the dropdowns right now.

Fixes open-telemetry#31306
  • Loading branch information
atoulme authored and XinRanZhAWS committed Mar 13, 2024
1 parent 1dec6fb commit 7cebad3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ body:
- extension/headerssetter
- extension/healthcheck
- extension/httpforwarder
- extension/httpforwarder
- extension/jaegerremotesampling
- extension/oauth2clientauth
- extension/observer
Expand Down
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/feature_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ body:
- extension/headerssetter
- extension/healthcheck
- extension/httpforwarder
- extension/httpforwarder
- extension/jaegerremotesampling
- extension/oauth2clientauth
- extension/observer
Expand Down
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/other.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ body:
- extension/headerssetter
- extension/healthcheck
- extension/httpforwarder
- extension/httpforwarder
- extension/jaegerremotesampling
- extension/oauth2clientauth
- extension/observer
Expand Down
10 changes: 7 additions & 3 deletions cmd/githubgen/issuetemplates.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,13 @@ type issueTemplatesGenerator struct {
}

func (itg issueTemplatesGenerator) generate(data *githubData) error {
shortNames := make([]string, len(data.folders))
for i, f := range data.folders {
shortNames[i] = folderToShortName(f)
keys := map[string]struct{}{}
for _, f := range data.folders {
keys[folderToShortName(f)] = struct{}{}
}
shortNames := make([]string, 0, len(keys))
for k := range keys {
shortNames = append(shortNames, k)
}
sort.Strings(shortNames)
replacement := []byte(startComponentList + "\n - " + strings.Join(shortNames, "\n - ") + "\n " + endComponentList)
Expand Down

0 comments on commit 7cebad3

Please sign in to comment.