diff --git a/.github/ISSUE_TEMPLATE/bug_report.yaml b/.github/ISSUE_TEMPLATE/bug_report.yaml index 963be869484f..c1a9b6ab3408 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yaml +++ b/.github/ISSUE_TEMPLATE/bug_report.yaml @@ -95,7 +95,6 @@ body: - extension/headerssetter - extension/healthcheck - extension/httpforwarder - - extension/httpforwarder - extension/jaegerremotesampling - extension/oauth2clientauth - extension/observer diff --git a/.github/ISSUE_TEMPLATE/feature_request.yaml b/.github/ISSUE_TEMPLATE/feature_request.yaml index d0be3e7e593d..5beccbc3d90a 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.yaml +++ b/.github/ISSUE_TEMPLATE/feature_request.yaml @@ -89,7 +89,6 @@ body: - extension/headerssetter - extension/healthcheck - extension/httpforwarder - - extension/httpforwarder - extension/jaegerremotesampling - extension/oauth2clientauth - extension/observer diff --git a/.github/ISSUE_TEMPLATE/other.yaml b/.github/ISSUE_TEMPLATE/other.yaml index 9381aa28e559..8bb53e45f08d 100644 --- a/.github/ISSUE_TEMPLATE/other.yaml +++ b/.github/ISSUE_TEMPLATE/other.yaml @@ -89,7 +89,6 @@ body: - extension/headerssetter - extension/healthcheck - extension/httpforwarder - - extension/httpforwarder - extension/jaegerremotesampling - extension/oauth2clientauth - extension/observer diff --git a/cmd/githubgen/issuetemplates.go b/cmd/githubgen/issuetemplates.go index 91f6ede0534b..05fa22c38477 100644 --- a/cmd/githubgen/issuetemplates.go +++ b/cmd/githubgen/issuetemplates.go @@ -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)