Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions .github/workflows/code-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@ jobs:
echo "$DIFF" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV

- name: Check Diff Size
id: check_diff_size
run: |
set -e
DIFF_SIZE=$(wc -c < change.diff)
echo "diff_size=$DIFF_SIZE" >> $GITHUB_OUTPUT
if (( DIFF_SIZE > 1000000 )); then
echo "Diff is too large, skipping review."
exit 0
fi
# - name: Check Diff Size
# id: check_diff_size
# run: |
# set -e
# DIFF_SIZE=$(wc -c < change.diff)
# echo "diff_size=$DIFF_SIZE" >> $GITHUB_OUTPUT
# if (( DIFF_SIZE > 1000000 )); then
# echo "Diff is too large, skipping review."
# exit 0
# fi

# Step 4: Output the diff (optional)
- name: Print diff
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public InfoController(ILogger<InfoController> logger)
[HttpGet(Name = "Get")]
public IActionResult Get()
{
_logger.LogInformation("Hello World from InfoController!");
return Ok("Hello World");
}
}
Expand Down