Add MIT license headers to all source files#131
Merged
huangyiirene merged 8 commits intomainfrom Jan 18, 2026
Merged
Conversation
Co-authored-by: huangyiirene <7665279+huangyiirene@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add MIT license header to all source files
Add MIT license headers to all source files
Jan 18, 2026
huangyiirene
approved these changes
Jan 18, 2026
Contributor
|
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds standardized MIT license headers to all 216 source files across the ObjectStack monorepo to ensure proper copyright attribution and licensing clarity for the open-source project.
Changes:
- Created an automated script (
scripts/add-license-headers.js) to recursively add MIT license headers to TypeScript and JavaScript files - Applied consistent license headers to all source files with copyright year
2026-presentand rights holderObjectStack Inc. - Ensured idempotent behavior to prevent duplicate headers on subsequent runs
Reviewed changes
Copilot reviewed 213 out of 216 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| scripts/add-license-headers.js | New automation script for adding license headers with duplicate detection |
| scripts/validate-yaml.js | Added MIT license header |
| scripts/check-versions.js | Added MIT license header |
| packages/tools/vscode-objectql/src/**/*.ts | Added MIT license headers to VS Code extension source files |
| packages/tools/create/src/**/*.ts | Added MIT license headers to project creation tool files |
| packages/tools/cli/src/**/*.ts | Added MIT license headers to CLI tool files |
| packages/runtime/server/src/**/*.ts | Added MIT license headers to server runtime files |
| packages/runtime/server/test/**/*.ts | Added MIT license headers to server test files |
| packages/foundation/types/src/**/*.ts | Added MIT license headers to type definition files |
| packages/foundation/platform-node/src/**/*.ts | Added MIT license headers to Node.js platform files |
| packages/foundation/core/src/**/*.ts | Added MIT license headers to core engine files |
| packages/drivers//src/**/.ts | Added MIT license headers to all database driver files |
| examples/**/*.ts | Added MIT license headers to example project files |
| **/jest.config.js | Added MIT license headers to Jest configuration files |
The MIT license header was added above the shebang in bin.ts, causing TypeScript compilation errors. Shebangs must be on line 1. Fixes build error: TS18026 - '#!' can only be used at the start of a file. Co-authored-by: huangyiirene <7665279+huangyiirene@users.noreply.github.com>
Contributor
|
The shebang #!/usr/bin/env node was on line 9 instead of line 1, causing a SyntaxError when the script was executed with 'node' explicitly. Since the workflow uses 'pnpm exec node scripts/validate-yaml.js', the shebang is not needed and has been removed. Fixes workflow run: https://github.com/objectstack-ai/objectql/actions/runs/21106340992 Co-authored-by: huangyiirene <7665279+huangyiirene@users.noreply.github.com>
Contributor
|
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.
Add standardized MIT license headers to 216 source files across the monorepo (
.ts,.js,.tsx,.jsx,.vue).Changes
Script: Created
scripts/add-license-headers.jsto automate header insertionnode_modules,dist,build,.git,coverageHeaders: Applied to all 216 source files (189 TypeScript, 27 JavaScript)
2026-presentandObjectStack Inc.as rights holderHeader Format
The script can be re-run to add headers to new files as the codebase evolves.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.