From 09c16577993d6b90bd54e7a9e0fa38ad796a6177 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 20 May 2026 16:49:49 +0000 Subject: [PATCH 1/2] Document the new license check for the HACS Action --- source/docs/publish/action.md | 1 + source/docs/publish/include.md | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/source/docs/publish/action.md b/source/docs/publish/action.md index e95fad06..22c78805 100644 --- a/source/docs/publish/action.md +++ b/source/docs/publish/action.md @@ -38,6 +38,7 @@ All these checks can be disabled with `with.ignore`. Use a string, and if you ig | `images` | [More info](/docs/publish/include.md#check-images) | Checks that the info file has images | | `information` | [More info](/docs/publish/include.md#check-repository) | Checks that the repo has an information file | | `issues` | [More info](/docs/publish/include.md#check-repository) | Checks that issues are enabled | +| `license` | [More info](/docs/publish/include.md#check-license) | Checks that the repository has a recognized open source license | | `topics` | [More info](/docs/publish/include.md#check-repository) | Checks that the repository has topics | ## Using a specific version diff --git a/source/docs/publish/include.md b/source/docs/publish/include.md index 0072fb5b..43b0cf6d 100644 --- a/source/docs/publish/include.md +++ b/source/docs/publish/include.md @@ -97,6 +97,14 @@ Checks general repository requirements: - The repository has issues enabled - The repository has topics defined +### Check license + +Checks that the repository declares a recognized open source license that GitHub can detect. + +GitHub detects the license from a `LICENSE` file at the repository root that matches a recognized SPDX template. Repositories with no license, or where GitHub classifies the license as `other`, will fail this check. + +If you need to add a license to your repository, see [GitHub's guide on adding a license](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/adding-a-license-to-a-repository), and use [choosealicense.com](https://choosealicense.com/) to pick one. + ### lint jq Ensures that the files in your PR are valid JSON. From e623b1b440c10c6af3bfe69c78d4eefa7a62125f Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 20 May 2026 17:08:10 +0000 Subject: [PATCH 2/2] Drop external license links from Check license section --- source/docs/publish/include.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/source/docs/publish/include.md b/source/docs/publish/include.md index 43b0cf6d..4002e603 100644 --- a/source/docs/publish/include.md +++ b/source/docs/publish/include.md @@ -103,8 +103,6 @@ Checks that the repository declares a recognized open source license that GitHub GitHub detects the license from a `LICENSE` file at the repository root that matches a recognized SPDX template. Repositories with no license, or where GitHub classifies the license as `other`, will fail this check. -If you need to add a license to your repository, see [GitHub's guide on adding a license](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/adding-a-license-to-a-repository), and use [choosealicense.com](https://choosealicense.com/) to pick one. - ### lint jq Ensures that the files in your PR are valid JSON.