Skip to content

Commit

Permalink
ci: ignore line lint for empty files, add C/C# labels (#499)
Browse files Browse the repository at this point in the history
* ci: ignore line lint check for empty files

* ci: add label configs for C and C# files
  • Loading branch information
bky373 authored Oct 1, 2024
1 parent be3b1fa commit 33741a7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 33741a7

Please sign in to comment.