Skip to content

chore: Migrate license from MIT to Apache 2.0#46

Merged
polaz merged 2 commits intomainfrom
copilot/change-license-to-apache-2-0
Jan 19, 2026
Merged

chore: Migrate license from MIT to Apache 2.0#46
polaz merged 2 commits intomainfrom
copilot/change-license-to-apache-2-0

Conversation

Copy link
Copy Markdown

Copilot AI commented Jan 19, 2026

Migrates project license to Apache 2.0 for explicit patent grants and contributor terms while maintaining MIT compatibility.

Changes

  • LICENSE - Replaced with Apache 2.0 text (copyright: SW Foundation)
  • LICENSE.MIT - Preserved original MIT license for attribution
  • NOTICE - Added attribution for original MIT-licensed code from zereight/gitlab-mcp
  • package.json - Updated license field: "MIT""Apache-2.0"
  • README.md - Added Apache 2.0 badge and License section with attribution details

Rationale

Apache 2.0 provides:

  • Explicit patent grants and retaliation clause
  • Clearer contributor terms
  • Trademark protection
  • Full MIT compatibility (Apache 2.0 can include MIT code with proper attribution)

No functional changes. Source files have no license headers requiring updates.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • checkpoint.prisma.io
    • Triggering command: /usr/local/bin/node /usr/local/bin/node /home/REDACTED/work/gitlab-mcp/gitlab-mcp/node_modules/prisma/build/child {"product":"prisma","version":"7.2.0","cli_install_type":"local","information":"","local_timestamp":"2026-01-19T22:22:24Z","project_hash":"88a37b7c","cli_path":"/home/REDACTED/work/gitlab-mcp/gitlab-mcp/node_modules/prisma/build/index.js","cli_path_hash":"c (dns block)
    • Triggering command: /usr/local/bin/node /usr/local/bin/node /home/REDACTED/work/gitlab-mcp/gitlab-mcp/node_modules/prisma/build/child {"product":"prisma","version":"7.2.0","cli_install_type":"local","information":"","local_timestamp":"2026-01-19T22:22:33Z","project_hash":"88a37b7c","cli_path":"/home/REDACTED/work/gitlab-mcp/gitlab-mcp/node_modules/prisma/build/index.js","cli_path_hash":"c (dns block)
  • www.apache.org
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>chore: Change license from MIT to Apache 2.0</issue_title>
<issue_description>## Summary

Change project license from MIT to Apache 2.0 for improved patent protection and clearer contributor terms.

Rationale

Aspect MIT Apache 2.0
Patent grants None Explicit
Patent retaliation clause No Yes
Enterprise adoption Good Better
Contributor terms Implicit Explicit
Trademark protection None Yes

Apache 2.0 is fully compatible with MIT - MIT-licensed code can be included in Apache 2.0 projects with proper attribution.

Required Changes

1. Create NOTICE file

GitLab MCP Server
Copyright 2025-present SW Foundation

This product includes software originally developed by:
- zereight (https://github.com/zereight/gitlab-mcp)
- Contributors to the original gitlab-mcp project

The original software was released under the MIT License.

2. Update LICENSE file

Replace MIT license text with Apache 2.0 license text. Copyright holder: SW Foundation

3. Preserve original MIT license

Create LICENSE.MIT file containing the original MIT license for reference and attribution compliance.

4. Update package.json

"license": "Apache-2.0"

5. Update README.md

  • Change license badge to Apache 2.0
  • Update license section to reference Apache 2.0
  • Add note about original MIT-licensed code attribution

6. Update any license headers in source files (if present)

Ensure consistency across codebase.

Implementation Checklist

  • Create NOTICE file with attribution (copyright: SW Foundation)
  • Create LICENSE.MIT (preserve original)
  • Replace LICENSE content with Apache 2.0 (copyright: SW Foundation)
  • Update package.json license field
  • Update README.md license references
  • Verify npm package metadata after publish

Acceptance Criteria

  • LICENSE contains Apache 2.0 text with SW Foundation copyright
  • NOTICE properly attributes original authors
  • LICENSE.MIT preserved for reference
  • package.json shows Apache-2.0
  • README reflects new license
  • npm registry shows correct license after next release

Priority

Low - Legal/administrative change, no functional impact.</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

- Create NOTICE file with SW Foundation copyright and original attribution
- Create LICENSE.MIT to preserve original MIT license
- Replace LICENSE with Apache 2.0 license (SW Foundation copyright)
- Update package.json license field to Apache-2.0
- Add Apache 2.0 badge to README
- Add License section to README with attribution information

Co-authored-by: polaz <[email protected]>
Copilot AI changed the title [WIP] Change project license from MIT to Apache 2.0 chore: Migrate license from MIT to Apache 2.0 Jan 19, 2026
Copilot AI requested a review from polaz January 19, 2026 22:24
@polaz polaz marked this pull request as ready for review January 19, 2026 22:27
Copilot AI review requested due to automatic review settings January 19, 2026 22:27
@polaz polaz merged commit ef60a20 into main Jan 19, 2026
15 of 17 checks passed
@polaz polaz deleted the copilot/change-license-to-apache-2-0 branch January 19, 2026 22:28
@github-actions
Copy link
Copy Markdown

📊 Test Coverage Report

Overall Coverage: 86.53%

Coverage Details

Metric Percentage
Statements 86.53%
Branches 81.23%
Functions 76.17%
Lines 86.94%

Coverage Report: View detailed coverage report

This report was generated automatically from your PR changes.

@codecov
Copy link
Copy Markdown

codecov bot commented Jan 19, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR migrates the project license from MIT to Apache 2.0 to provide explicit patent grants, clearer contributor terms, and trademark protection while maintaining full compatibility with the original MIT-licensed code. The migration preserves all required attribution and follows proper licensing practices.

Changes:

  • Replaced LICENSE file with Apache 2.0 text (copyright: SW Foundation)
  • Created LICENSE.MIT to preserve original MIT license for reference and attribution compliance
  • Added NOTICE file with proper attribution to original authors (zereight and contributors)
  • Updated package.json license field from "MIT" to "Apache-2.0"
  • Updated README.md with Apache 2.0 badge and comprehensive License section explaining the migration and attribution

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
LICENSE Replaced MIT license with Apache 2.0 license text, copyright assigned to SW Foundation
LICENSE.MIT Preserved original MIT license for attribution and reference
NOTICE Added attribution for original MIT-licensed code from zereight/gitlab-mcp
package.json Updated license field from "MIT" to "Apache-2.0"
README.md Added Apache 2.0 badge and comprehensive License section with attribution details

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.

chore: Change license from MIT to Apache 2.0

3 participants