Skip to content

ci: add license checking hook and job using google/addlicense#16

Merged
krogrammer merged 5 commits into
mainfrom
addlicense
Mar 31, 2026
Merged

ci: add license checking hook and job using google/addlicense#16
krogrammer merged 5 commits into
mainfrom
addlicense

Conversation

@krogrammer
Copy link
Copy Markdown
Collaborator

@krogrammer krogrammer commented Mar 30, 2026

This adds some tooling to make sure source files in this repo have appropriate license headers. First is an additional step in the pre-commit hook that runs https://github.com/google/addlicense to automatically add headers. Second is a job on CI that runs addlicense on PRs. That job will become a required check after this merges.

Additionally, this PR adds headers to all existing files that were missing them.

See an example job failure here for the Color.kt class: https://github.com/krogerco/Cache-Android/actions/runs/23799337052/job/69355053602?pr=16

@krogrammer krogrammer force-pushed the addlicense branch 11 times, most recently from ecfb28e to 06d35f3 Compare March 30, 2026 21:07
@krogrammer krogrammer merged commit a54a2cc into main Mar 31, 2026
12 checks passed
@krogrammer krogrammer deleted the addlicense branch March 31, 2026 13:42
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 2, 2026

🎉 This PR is included in version 3.1.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants