This adds logic to update the license header year only when source code files change.
For new files, they will receive the current year as the license year.
For existing files, they will receive a range from the initial year to the current year (e.g. 2024-2025 for the set of files currently in the repo).
For those like me that call apple/pkl something other than "origin", set the env var PKL_ORIGINAL_REMOTE_NAME when developing locally. Personally, I have set PKL_ORIGINAL_REMOTE_NAME=upstream.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/apple/pkl/pull/871
**Author:** [@bioball](https://github.com/bioball)
**Created:** 1/2/2025
**Status:** ✅ Merged
**Merged:** 1/7/2025
**Merged by:** [@bioball](https://github.com/bioball)
**Base:** `main` ← **Head:** `license-year-update`
---
### 📝 Commits (1)
- [`a150917`](https://github.com/apple/pkl/commit/a150917143fa6ba2d3c45fab2ebc056fb8403cc1) Update license year
### 📊 Changes
**5 files changed** (+12 additions, -4 deletions)
<details>
<summary>View changed files</summary>
📝 `DEVELOPMENT.adoc` (+4 -0)
📝 `NOTICE.txt` (+1 -1)
📝 `buildSrc/src/main/kotlin/pklAllProjects.gradle.kts` (+5 -1)
📝 `buildSrc/src/main/resources/license-header.line-comment.txt` (+1 -1)
📝 `buildSrc/src/main/resources/license-header.star-block.txt` (+1 -1)
</details>
### 📄 Description
Happy new year!
This adds logic to update the license header year _only_ when source code files change.
For new files, they will receive the current year as the license year.
For existing files, they will receive a range from the initial year to the current year (e.g. 2024-2025 for the set of files currently in the repo).
For those like me that call apple/pkl something other than "origin", set the env var `PKL_ORIGINAL_REMOTE_NAME` when developing locally. Personally, I have set `PKL_ORIGINAL_REMOTE_NAME=upstream`.
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/apple/pkl/pull/871
Author: @bioball
Created: 1/2/2025
Status: ✅ Merged
Merged: 1/7/2025
Merged by: @bioball
Base:
main← Head:license-year-update📝 Commits (1)
a150917Update license year📊 Changes
5 files changed (+12 additions, -4 deletions)
View changed files
📝
DEVELOPMENT.adoc(+4 -0)📝
NOTICE.txt(+1 -1)📝
buildSrc/src/main/kotlin/pklAllProjects.gradle.kts(+5 -1)📝
buildSrc/src/main/resources/license-header.line-comment.txt(+1 -1)📝
buildSrc/src/main/resources/license-header.star-block.txt(+1 -1)📄 Description
Happy new year!
This adds logic to update the license header year only when source code files change.
For new files, they will receive the current year as the license year.
For existing files, they will receive a range from the initial year to the current year (e.g. 2024-2025 for the set of files currently in the repo).
For those like me that call apple/pkl something other than "origin", set the env var
PKL_ORIGINAL_REMOTE_NAMEwhen developing locally. Personally, I have setPKL_ORIGINAL_REMOTE_NAME=upstream.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.