Skip to content

chore: add missing license headers#352

Merged
liangshuo-1 merged 1 commit intomainfrom
license-headers
Apr 8, 2026
Merged

chore: add missing license headers#352
liangshuo-1 merged 1 commit intomainfrom
license-headers

Conversation

@liangshuo-1
Copy link
Copy Markdown
Collaborator

@liangshuo-1 liangshuo-1 commented Apr 8, 2026

Summary

Adds missing repository-standard MIT license headers to files covered by the license-header check.

Changes

  • Add Copyright/SPDX headers to auth, credential, keychain, and vfs Go files.
  • Add Copyright/SPDX headers to issue-labels JavaScript scripts.

Test Plan

  • make unit-test
  • make test
  • go mod tidy (no go.mod / go.sum changes)
  • go run github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.1.6 run --new-from-rev=origin/main
  • git diff --check
  • CI-style header scan for *.go, *.js, and *.py

Related Issues

  • None

Summary by CodeRabbit

Release Notes

  • Chores
    • Added copyright headers and MIT SPDX license identifiers to multiple files across authentication, credential management, keychain integration, virtual file system utilities, and scripting modules to maintain consistent licensing documentation and comprehensive legal compliance standards throughout the codebase. These administrative updates do not affect any runtime functionality, user-facing features, or public API surfaces.

Change-Id: Ic26bedcbb111331eb53d695fccdabd0907a6272f
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 8, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: a1f8ad17-3409-4687-8423-17c36fc569e9

📥 Commits

Reviewing files that changed from the base of the PR and between d5d31f0 and 82601a6.

📒 Files selected for processing (20)
  • cmd/auth/login_result.go
  • cmd/auth/login_scope_cache.go
  • cmd/auth/login_scope_cache_test.go
  • cmd/auth/login_strict_test.go
  • extension/credential/env/env_test.go
  • extension/credential/registry_test.go
  • internal/credential/credential_provider_test.go
  • internal/credential/default_provider_test.go
  • internal/credential/integration_test.go
  • internal/credential/types.go
  • internal/credential/types_test.go
  • internal/keychain/auth_log_test.go
  • internal/keychain/keychain_darwin_test.go
  • internal/keychain/keychain_other_test.go
  • internal/vfs/default.go
  • internal/vfs/fs.go
  • internal/vfs/osfs.go
  • internal/vfs/osfs_test.go
  • scripts/issue-labels/index.js
  • scripts/issue-labels/test.js

📝 Walkthrough

Walkthrough

Adds copyright and MIT SPDX license identifiers to the top of 20 files across cmd, extension, internal, and scripts directories. No functional code, logic, or control flow was modified.

Changes

Cohort / File(s) Summary
Auth Commands
cmd/auth/login_result.go, cmd/auth/login_scope_cache.go, cmd/auth/login_scope_cache_test.go, cmd/auth/login_strict_test.go
Added 2026 copyright and MIT SPDX license headers.
Credential Extension
extension/credential/env/env_test.go, extension/credential/registry_test.go
Added 2026 copyright and MIT SPDX license headers.
Internal Credential
internal/credential/credential_provider_test.go, internal/credential/default_provider_test.go, internal/credential/integration_test.go, internal/credential/types.go, internal/credential/types_test.go
Added 2026 copyright and MIT SPDX license headers.
Internal Keychain
internal/keychain/auth_log_test.go, internal/keychain/keychain_darwin_test.go, internal/keychain/keychain_other_test.go
Added 2026 copyright and MIT SPDX license headers.
Internal VFS
internal/vfs/default.go, internal/vfs/fs.go, internal/vfs/osfs.go, internal/vfs/osfs_test.go
Added 2026 copyright and MIT SPDX license headers.
Issue Labels Scripts
scripts/issue-labels/index.js, scripts/issue-labels/test.js
Added 2026 copyright and MIT SPDX license headers.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related PRs

  • larksuite/cli#250: Adds and normalizes SPDX MIT license headers across source files with complementary license compliance tooling.

Suggested labels

size/L

Poem

🐰 With whiskers proud and license clear,
We've tagged each file with headers dear,
Copyright stamps from paw to toe,
MIT compliance, now in flow!

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title 'chore: add missing license headers' clearly and concisely describes the main change: adding missing MIT license headers to multiple files across the repository.
Description check ✅ Passed The description includes all required sections: a clear summary, comprehensive changes list, and thorough test plan with multiple verification steps.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch license-headers

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions Bot added the size/L Large or sensitive change across domains or core paths label Apr 8, 2026
@greptile-apps
Copy link
Copy Markdown

greptile-apps Bot commented Apr 8, 2026

Greptile Summary

This PR adds the standard // Copyright (c) 2026 Lark Technologies Pte. Ltd. / SPDX-License-Identifier: MIT header to 20 files across cmd/auth, extension/credential, internal/credential, internal/keychain, internal/vfs, and scripts/issue-labels that were missing it. The format, copyright year, and placement (including ordering before //go:build constraints in build-tag files) are fully consistent with every other file in the repository.

Confidence Score: 5/5

Safe to merge — purely additive license header changes with no logic modifications.

All 20 files receive the correct, repo-standard MIT header. The copyright year (2026), SPDX identifier, and header placement (including ordering relative to //go:build constraints) are fully consistent with the rest of the codebase. No logic is touched.

No files require special attention.

Vulnerabilities

No security concerns identified. This PR only adds license header comments; no logic, secrets, or data handling is changed.

Important Files Changed

Filename Overview
cmd/auth/login_result.go License header added; no logic changes.
cmd/auth/login_scope_cache.go License header added; no logic changes.
cmd/auth/login_scope_cache_test.go License header added; no logic changes.
cmd/auth/login_strict_test.go License header added; no logic changes.
extension/credential/env/env_test.go License header added; no logic changes.
extension/credential/registry_test.go License header added; no logic changes.
internal/credential/types.go License header added; no logic changes.
internal/credential/credential_provider_test.go License header added; no logic changes.
internal/credential/default_provider_test.go License header added; no logic changes.
internal/credential/integration_test.go License header added; no logic changes.
internal/credential/types_test.go License header added; no logic changes.
internal/keychain/auth_log_test.go License header added; no logic changes.
internal/keychain/keychain_darwin_test.go License header added before //go:build darwin constraint, matching existing repo pattern.
internal/keychain/keychain_other_test.go License header added before //go:build linux constraint, matching existing repo pattern.
internal/vfs/default.go License header added; no logic changes.
internal/vfs/fs.go License header added; no logic changes.
internal/vfs/osfs.go License header added; no logic changes.
internal/vfs/osfs_test.go License header added; no logic changes.
scripts/issue-labels/index.js License header added to JS file; no logic changes.
scripts/issue-labels/test.js License header added to JS file; no logic changes.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[PR: Add Missing License Headers] --> B{File Type}
    B --> C[Go Files - 18 files]
    B --> D[JavaScript Files - 2 files]
    C --> E[cmd/auth/*.go]
    C --> F[extension/credential/**/*.go]
    C --> G[internal/credential/*.go]
    C --> H[internal/keychain/*_test.go]
    C --> I[internal/vfs/*.go]
    D --> J[scripts/issue-labels/*.js]
    E & F & G & H & I & J --> K[Standard MIT Header Added]
    H --> L[Build-tagged files: header placed before go:build, consistent with repo convention]
Loading

Reviews (1): Last reviewed commit: "chore: add missing license headers" | Re-trigger Greptile

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 8, 2026

🚀 PR Preview Install Guide

🧰 CLI update

npm i -g https://pkg.pr.new/larksuite/cli/@larksuite/cli@82601a69b3db016301ba7f6ddca075eb7f65ee9c

🧩 Skill update

npx skills add larksuite/cli#license-headers -y -g

@liangshuo-1 liangshuo-1 merged commit cdd9f9a into main Apr 8, 2026
15 checks passed
@liangshuo-1 liangshuo-1 deleted the license-headers branch April 8, 2026 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/L Large or sensitive change across domains or core paths

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants