-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 fix copyright info when has not a owner set #1749
Conversation
pkg/plugin/v3/scaffolds/internal/templates/config/hack/boilerplate.go
Outdated
Show resolved
Hide resolved
pkg/plugin/v3/scaffolds/internal/templates/config/hack/boilerplate.go
Outdated
Show resolved
Hide resolved
1cd4e65
to
b1b373c
Compare
5520582
to
7ee6ea9
Compare
e0b96f4
to
27bced2
Compare
27bced2
to
7509e6a
Compare
7509e6a
to
0bcb9c8
Compare
I must say I don't like this new approach, as you are templating outside of the template itself. I prefered the other approach you had and by adding the dashes ( const none = `/*
{{ if .Owner -}}
Copyright {{ .Year }} {{ .Owner }}.
{{- else -}}
Copyright {{ .Year }}.
{{- end }}
*/` |
Hi @Adirio, Regards #1749 (comment) |
Hi @camilamacedo86: The usage of With the approach you suggest, you are using the |
0bcb9c8
to
243e429
Compare
Hi @Adirio, Done as you suggested. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Adirio, camilamacedo86 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Description
Ensure that the copyright will be set when the owner is empty with the year only.
Motivation
Closes: #1620
Local Test