From 10b250e10c35d673ea7c3fb241605c31f1b006a7 Mon Sep 17 00:00:00 2001 From: Rick Newton-Rogers Date: Mon, 4 Nov 2024 11:21:42 +0000 Subject: [PATCH] Add .proto ext to check-license-header.sh Add `//` as the comment style in `.proto` files. --- .github/workflows/scripts/check-license-header.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/scripts/check-license-header.sh b/.github/workflows/scripts/check-license-header.sh index 10cc4ed..41b3d4d 100755 --- a/.github/workflows/scripts/check-license-header.sh +++ b/.github/workflows/scripts/check-license-header.sh @@ -67,6 +67,7 @@ while IFS= read -r file_path; do json) continue ;; # JSON doesn't support comments jsx) expected_file_header=$(sed -e 's|@@|//|g' <<<"${expected_file_header_template}") ;; kts) expected_file_header=$(sed -e 's|@@|//|g' <<<"${expected_file_header_template}") ;; + proto) expected_file_header=$(sed -e 's|@@|//|g' <<<"${expected_file_header_template}") ;; ps1) expected_file_header=$(sed -e 's|@@|##|g' <<<"${expected_file_header_template}") ;; py) expected_file_header=$(cat <(echo '#!/usr/bin/env python3') <(sed -e 's|@@|##|g' <<<"${expected_file_header_template}")) ;; rb) expected_file_header=$(cat <(echo '#!/usr/bin/env ruby') <(sed -e 's|@@|##|g' <<<"${expected_file_header_template}")) ;;