powermem
powermem copied to clipboard
feat: add Apache 2.0 license header check and headers for existing files
Feature description
Background
The project is licensed under Apache 2.0, but source files lack a unified license header, and there is no CI check to ensure that new files include one.
Problem and proposed solution
Implementation
- Add a
.licenserc.yamlconfiguration, excluding third-party data files and files that should not be modified. - Add a GitHub Actions workflow (e.g.,
.github/workflows/license-check.yml) to run the license header check on PRs. - Add license headers to all existing source files in one batch.
Alternatives considered
No response
Additional context
Reference
https://github.com/apache/incubator-seata/blob/master/.licenserc.yaml https://github.com/apache/opendal/blob/main/.licenserc.yaml)
Are you willing to contribute to this feature?
- [x] Yes, I am willing to contribute code, docs, or design feedback.
plz assign to me
assigned, thanks