Skip to content

Commit

Permalink
add comment preamble to generated config
Browse files Browse the repository at this point in the history
  • Loading branch information
zeucapua committed Oct 10, 2024
1 parent aa7b1a4 commit b719202
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/generate/config/output.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ func generateOutputFile(outputPath string, attributionMap map[string][]string) e
}
defer file.Close()

// write the header preamble
_, err = file.WriteString("# Configuration for attributing commits with emails to GitHub user profiles\n# Used during codeowners generation.\n\n# List the emails associated with the given username\n# The commits associated with these emails will be attributed to\n# the username in this yaml map. Any number of emails may be listed\n\n")

var config config.Spec
config.Attributions = attributionMap

Expand Down

0 comments on commit b719202

Please sign in to comment.