Skip to content
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

Support for different years #147

Closed
hnorkowski opened this issue May 17, 2024 · 3 comments · Fixed by #150
Closed

Support for different years #147

hnorkowski opened this issue May 17, 2024 · 3 comments · Fixed by #150

Comments

@hnorkowski
Copy link

Is there a way to allow different years in the license header? E.g. in a project that is developed over multiple years and some file are not touched, the year could be different to new files.

@tisonkun
Copy link
Member

tisonkun commented Jun 10, 2024

Do you want something like ${git.fileAddedYear} to be inserted in the template?

@tisonkun
Copy link
Member

This can be related to #114. I can try to build it when git present.

We depend on git because the file created year is inaccurate from the FS's stats that would be the physical created date (i.e., when you clone the repo and get the file).

@tisonkun
Copy link
Member

tisonkun commented Jun 11, 2024

I'm going to release a 5.6.0 in this week so that you can bump to a new version with this feature. You can test if it works as desired now by installing from the main branch or use the edge tag docker image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants