Skip to content

fix: rename license files to fix GitHub license detection#2025

Open
gwpl wants to merge 1 commit intovisjs:masterfrom
VariousForks:i2024/fix-license-detection-noassertion
Open

fix: rename license files to fix GitHub license detection#2025
gwpl wants to merge 1 commit intovisjs:masterfrom
VariousForks:i2024/fix-license-detection-noassertion

Conversation

@gwpl
Copy link

@gwpl gwpl commented Mar 2, 2026

AI Assistant:

Summary

Fixes #2024

GitHub's licensee detection returns NOASSERTION for this repository because LICENSE.md contains only a short markdown wrapper with links — not actual license text. This causes the GitHub UI to show "Other" instead of the correct license badge.

This PR renames the license files to match the pattern already used by vis-network (which is detected correctly as Apache-2.0):

  • LICENSE.mdLICENSE (keeps the wrapper/index file)
  • LICENSE.Apache-2.0.txtLICENSE-APACHE-2.0
  • LICENSE.MIT.txtLICENSE-MIT

All internal references updated (README.md, LICENSE, package snapshot test).

Why this works

licensee recognizes files named LICENSE-* as additional license files (docs). With LICENSE-APACHE-2.0 containing the full Apache 2.0 text, it matches against the known SPDX template and detection succeeds.

Verification

Before (current state):

gh api repos/visjs/vis-timeline --jq '.license.spdx_id'
# Returns: "NOASSERTION"

After merging, the same command should return "Apache-2.0", consistent with vis-network:

gh api repos/visjs/vis-network --jq '.license.spdx_id'
# Returns: "Apache-2.0"

References

Test plan

  • Verify git mv preserves file content (no license text changes)
  • After merge, verify gh api repos/visjs/vis-timeline --jq '.license.spdx_id' returns "Apache-2.0"
  • Verify GitHub UI shows correct license badge
  • package.json "license": "(Apache-2.0 OR MIT)" unchanged — npm/SPDX detection unaffected

(for Github WebUI issue linking: Closes #2024 )

🤖 Generated with Claude Code

GitHub's licensee detection returns NOASSERTION because LICENSE.md
contains only a short markdown wrapper instead of actual license text.

Rename license files to match the pattern used by vis-network (which
is detected correctly):

* LICENSE.md → LICENSE (keeps the wrapper/index file)
* LICENSE.Apache-2.0.txt → LICENSE-APACHE-2.0
* LICENSE.MIT.txt → LICENSE-MIT

Update references in README.md and package snapshot test accordingly.

Closes visjs#2024

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@gwpl gwpl force-pushed the i2024/fix-license-detection-noassertion branch from 027a2ac to 22a5234 Compare March 2, 2026 19:23
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.

GitHub license detection returns NOASSERTION due to LICENSE.md wrapper file

1 participant