From ce0658155bfc4a524e04e9887e08846e7f10c189 Mon Sep 17 00:00:00 2001 From: Alex Hunt Date: Thu, 5 Feb 2026 11:06:06 -0800 Subject: [PATCH] Delete outdated check_license script (#55425) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/55425 See blame — this script lints for a `"PATENTS"` string inside any Git changes, which should not occur any more. > D7119356 (8 years ago) > > [react-native][PR] Check PATENTS does not creep into files > > Summary: > Some files have crept into the repo with the old license header. These are usually from PRs that were opened prior to the re-licensing of the project. Changelog: [Internal] Reviewed By: cortinico Differential Revision: D92417808 fbshipit-source-id: 36e3507f835fe5df99644eb1a47cdc60fa68f88c --- .github/actions/lint/action.yml | 3 --- .github/workflow-scripts/check_license.sh | 17 ----------------- 2 files changed, 20 deletions(-) delete mode 100755 .github/workflow-scripts/check_license.sh diff --git a/.github/actions/lint/action.yml b/.github/actions/lint/action.yml index 35e4f70f84f..0956dea7bef 100644 --- a/.github/actions/lint/action.yml +++ b/.github/actions/lint/action.yml @@ -29,9 +29,6 @@ runs: - name: Run typescript check shell: bash run: yarn test-typescript - - name: Check license - shell: bash - run: ./.github/workflow-scripts/check_license.sh - name: Check formatting shell: bash run: yarn run format-check diff --git a/.github/workflow-scripts/check_license.sh b/.github/workflow-scripts/check_license.sh deleted file mode 100755 index 53b9dddcbe6..00000000000 --- a/.github/workflow-scripts/check_license.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under the MIT license found in the -# LICENSE file in the root directory of this source tree. - -set -e - -# Make sure we don't introduce accidental references to PATENTS. -EXPECTED='.github/workflow-scripts/check_license.sh' -ACTUAL=$(git grep -l PATENTS) - -if [ "$EXPECTED" != "$ACTUAL" ]; then - echo "PATENTS crept into some new files?" - diff -u <(echo "$EXPECTED") <(echo "$ACTUAL") || true - exit 1 -fi