Skip to content

Commit

Permalink
Move around newlines for formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
crobert-1 committed Jan 17, 2025
1 parent 9f9bda6 commit 8d06d5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -318,11 +318,11 @@ testbed/mockdatasenders/mockdatadogagentexporter/ @open-telemetry
# List of distribution maintainers for OpenTelemetry Collector Contrib
#
#####################################################

reports/distributions/core.yaml @open-telemetry/collector-contrib-approvers
reports/distributions/contrib.yaml @open-telemetry/collector-contrib-approvers
reports/distributions/k8s.yaml @open-telemetry/collector-contrib-approvers


## UNMAINTAINED components

exporter/kineticaexporter/ @open-telemetry/collector-contrib-approvers
Expand Down
4 changes: 2 additions & 2 deletions cmd/githubgen/codeowners.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,12 @@ LOOP:
maintainers = append(maintainers, fmt.Sprintf("@%s", m))
}

distribution := fmt.Sprintf("reports/distributions/%s.yaml%s @open-telemetry/collector-contrib-approvers", dist.Name, strings.Repeat(" ", longestName-len(dist.Name)))
distribution := fmt.Sprintf("\nreports/distributions/%s.yaml%s @open-telemetry/collector-contrib-approvers", dist.Name, strings.Repeat(" ", longestName-len(dist.Name)))
if len(maintainers) > 0 {
distribution += fmt.Sprintf(" %s", strings.Join(maintainers, " "))
}

codeowners += fmt.Sprintf("%s\n", distribution)
codeowners += fmt.Sprintf("%s", distribution)
}

err = os.WriteFile(filepath.Join(".github", "CODEOWNERS"), []byte(codeowners+unmaintainedCodeowners), 0o600)
Expand Down

0 comments on commit 8d06d5c

Please sign in to comment.