powermem icon indicating copy to clipboard operation
powermem copied to clipboard

feat: add Apache 2.0 license header check and headers for existing files

Open MaoMengww opened this issue 3 months ago • 2 comments

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.yaml configuration, 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.

MaoMengww avatar Aug 18 '26 14:08 MaoMengww

plz assign to me

MaoMengww avatar Aug 18 '26 14:08 MaoMengww

assigned, thanks

PsiACE avatar Aug 18 '26 15:08 PsiACE