Skip to content

oss policy review check - #23

Merged
masci merged 3 commits into
mainfrom
compliance
Jul 21, 2026
Merged

oss policy review check#23
masci merged 3 commits into
mainfrom
compliance

Conversation

@masci

@masci masci commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

This pull request introduces a CI workflow to enforce license headers and adds the required Elastic License 2.0 header to several Python package __init__.py files. The main goal is to ensure all source files comply with licensing requirements.

CI/CD Improvements:

  • Added a license-headers job to the GitHub Actions workflow (.github/workflows/ci.yml) that checks all .py files (excluding .venv, dist, and build directories) for the Elastic License 2.0 header and fails the build if any files are missing it.

License Compliance:

  • Added the Elastic License 2.0 header to the __init__.py files in the following directories: examples/chatbot_rag_app/datasets, examples/chatbot_rag_app/evaluators, examples/chatbot_rag_app/tasks, examples/claude_code_eval, examples/claude_code_eval/datasets, examples/claude_code_eval/evaluators, and examples/claude_code_eval/tasks.## Summary

@masci
masci requested a review from a team as a code owner July 21, 2026 16:35
Copilot AI review requested due to automatic review settings July 21, 2026 16:35

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an automated CI check to enforce the presence of the Elastic License 2.0 header in Python source files, and updates example-package __init__.py files to include that header.

Changes:

  • Added a license-headers GitHub Actions job that fails CI when any *.py file is missing the required license text.
  • Added the Elastic License 2.0 header to several examples/**/__init__.py files to satisfy the new check.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
.github/workflows/ci.yml Adds a new CI job to verify license headers across *.py files.
examples/claude_code_eval/__init__.py Adds Elastic License 2.0 header.
examples/claude_code_eval/datasets/__init__.py Adds Elastic License 2.0 header.
examples/claude_code_eval/evaluators/__init__.py Adds Elastic License 2.0 header.
examples/claude_code_eval/tasks/__init__.py Adds Elastic License 2.0 header.
examples/chatbot_rag_app/datasets/__init__.py Adds Elastic License 2.0 header.
examples/chatbot_rag_app/evaluators/__init__.py Adds Elastic License 2.0 header.
examples/chatbot_rag_app/tasks/__init__.py Adds Elastic License 2.0 header.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/ci.yml Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Comment thread .github/workflows/ci.yml Outdated
contents: read

jobs:
license-headers:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[suggestion]
We could have this check in the pre-commit hook too
(not a blocker for this PR)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point, I'll move the check there

@masci
masci merged commit 64d2181 into main Jul 21, 2026
6 checks passed
@masci
masci deleted the compliance branch July 21, 2026 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants