Skip to content

Commit e410d20

Browse files
authored
Merge pull request #3 from LiteObject/feature/refactor_code
Add logging to InfoController's Get method for better traceability
2 parents 6b67fce + 05630c5 commit e410d20

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

.github/workflows/code-review.yml

+10-10
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,16 @@ jobs:
3939
echo "$DIFF" >> $GITHUB_ENV
4040
echo "EOF" >> $GITHUB_ENV
4141
42-
- name: Check Diff Size
43-
id: check_diff_size
44-
run: |
45-
set -e
46-
DIFF_SIZE=$(wc -c < change.diff)
47-
echo "diff_size=$DIFF_SIZE" >> $GITHUB_OUTPUT
48-
if (( DIFF_SIZE > 1000000 )); then
49-
echo "Diff is too large, skipping review."
50-
exit 0
51-
fi
42+
# - name: Check Diff Size
43+
# id: check_diff_size
44+
# run: |
45+
# set -e
46+
# DIFF_SIZE=$(wc -c < change.diff)
47+
# echo "diff_size=$DIFF_SIZE" >> $GITHUB_OUTPUT
48+
# if (( DIFF_SIZE > 1000000 )); then
49+
# echo "Diff is too large, skipping review."
50+
# exit 0
51+
# fi
5252

5353
# Step 4: Output the diff (optional)
5454
- name: Print diff

src/MyWebApi/MyWebApi/Controllers/WeatherForecastController.cs

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ public InfoController(ILogger<InfoController> logger)
1616
[HttpGet(Name = "Get")]
1717
public IActionResult Get()
1818
{
19+
_logger.LogInformation("Hello World from InfoController!");
1920
return Ok("Hello World");
2021
}
2122
}

0 commit comments

Comments
 (0)