From de5eabde45b3475d2088472dc611937ce2922228 Mon Sep 17 00:00:00 2001 From: bky373 Date: Wed, 25 Sep 2024 21:06:45 +0900 Subject: [PATCH 1/2] ci: ignore line lint check for empty files --- .github/workflows/integration.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/integration.yaml b/.github/workflows/integration.yaml index deb24d546..2e2fd61e9 100644 --- a/.github/workflows/integration.yaml +++ b/.github/workflows/integration.yaml @@ -16,7 +16,7 @@ jobs: files=$(git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.sha }}) success=true for file in $files; do - if [ "$(tail -c 1 $file | wc -l)" -eq 0 ]; then + if [ -s "$file" ] && [ "$(tail -c 1 $file | wc -l)" -eq 0 ]; then echo "- $file" >> $GITHUB_STEP_SUMMARY success=false fi From a9e10e587cd5af677b6868264aa679960c1e92fa Mon Sep 17 00:00:00 2001 From: bky373 Date: Wed, 25 Sep 2024 21:07:58 +0900 Subject: [PATCH 2/2] ci: add label configs for C and C# files --- .github/labeler.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/labeler.yml b/.github/labeler.yml index 4bea56ef6..2e49f80bb 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -18,11 +18,21 @@ java: - any-glob-to-any-file: - "**/*.java" +c: + - changed-files: + - any-glob-to-any-file: + - "**/*.c" + c++: - changed-files: - any-glob-to-any-file: - "**/*.cpp" +c#: + - changed-files: + - any-glob-to-any-file: + - "**/*.cs" + swift: - changed-files: - any-glob-to-any-file: