Skip to content

Remove CONTRIBUTORS.txt line from license headers#151

Merged
guoye-zhang merged 1 commit intoapple:mainfrom
MukundaKatta:codex/remove-contributors-license-line
Apr 20, 2026
Merged

Remove CONTRIBUTORS.txt line from license headers#151
guoye-zhang merged 1 commit intoapple:mainfrom
MukundaKatta:codex/remove-contributors-license-line

Conversation

@MukundaKatta
Copy link
Copy Markdown
Contributor

Motivation

Fixes #59.

The repo does not ship a CONTRIBUTORS.txt, but every source file's license header contains:

// See CONTRIBUTORS.txt for the list of Swift HTTP API Proposal project authors

The soundness license-header check enforces this line because the shared workflow at swiftlang/github-workflows/.github/workflows/scripts/check-license-header.sh bakes it into the default template. The issue notes that other Swift OSS projects are also moving away from CONTRIBUTORS.txt, so it should be dropped from the headers and the CI template.

Modifications

  • Added a project-local .license_header_template (without the CONTRIBUTORS.txt line). The soundness script honors this file and uses it instead of the default template.
  • Removed the // See CONTRIBUTORS.txt for the list of Swift HTTP API Proposal project authors line from the header of every .swift file under Sources/, Tests/, and Examples/ (99 files).

No other bytes in the headers were changed. The soundness workflow invocation was left as-is; license_header_check_project_name is unused when a local template exists, but keeping the input avoids a second churn if the template is ever removed.

Result

The license-header soundness check passes against the project-local template, and every source file's header reflects the reality that there is no CONTRIBUTORS.txt.

Test Plan

Ran the upstream soundness script against the checked-out tree:

$ bash check-license-header.sh
** ✅ Found no files with missing license header.

(The script is fetched from swiftlang/github-workflows@main, which is the same workflow this repo invokes in .github/workflows/pull_request.yml.)

There is no CONTRIBUTORS.txt in this repo, and the project is moving
away from maintaining one. Drop the '// See CONTRIBUTORS.txt for the
list of ...' line from every source file's license header.

Introduce a .license_header_template so the soundness license header
check uses the project-local template (without the CONTRIBUTORS.txt
line) instead of the default template supplied by swiftlang's
shared soundness workflow.

Fixes apple#59.
@guoye-zhang guoye-zhang added the semver/none No version bump required. label Apr 20, 2026
@guoye-zhang guoye-zhang enabled auto-merge (squash) April 20, 2026 01:04
@guoye-zhang guoye-zhang merged commit 0aa18a3 into apple:main Apr 20, 2026
20 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver/none No version bump required.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove CONTRIBUTORS line from license header

2 participants