[PR #871] [MERGED] Update license year #778

Closed
opened 2025-12-30 01:26:40 +01:00 by adam · 0 comments
Owner

📋 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: mainHead: license-year-update


📝 Commits (1)

📊 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_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>
adam added the pull-request label 2025-12-30 01:26:40 +01:00
adam closed this issue 2025-12-30 01:26:40 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/pkl#778