oss policy review check - #23
Merged
Merged
Conversation
There was a problem hiding this comment.
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-headersGitHub Actions job that fails CI when any*.pyfile is missing the required license text. - Added the Elastic License 2.0 header to several
examples/**/__init__.pyfiles 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.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
viduni94
approved these changes
Jul 21, 2026
| contents: read | ||
|
|
||
| jobs: | ||
| license-headers: |
Collaborator
There was a problem hiding this comment.
[suggestion]
We could have this check in the pre-commit hook too
(not a blocker for this PR)
Collaborator
Author
There was a problem hiding this comment.
good point, I'll move the check there
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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__.pyfiles. The main goal is to ensure all source files comply with licensing requirements.CI/CD Improvements:
license-headersjob to the GitHub Actions workflow (.github/workflows/ci.yml) that checks all.pyfiles (excluding.venv,dist, andbuilddirectories) for the Elastic License 2.0 header and fails the build if any files are missing it.License Compliance:
__init__.pyfiles 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, andexamples/claude_code_eval/tasks.## Summary