Skip to content

Commit 0b18a1c

Browse files
committed
Update diff generation command to increase context lines for better clarity
1 parent 2ba03b2 commit 0b18a1c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/code-review.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,14 @@ jobs:
2525
id: generate-diff
2626
run: |
2727
echo "Generating diff between ${{ github.base_ref }} and ${{ github.head_ref }}"
28-
# git diff --unified=5 origin/${{ github.base_ref }}...${{ github.head_ref }} > changes.diff
29-
git diff --unified=0 origin/${{ github.event.pull_request.base.ref }}..${{ github.event.pull_request.head.ref }} > changes.diff
28+
git diff --unified=5 origin/${{ github.base_ref }}...${{ github.head_ref }} > changes.diff
29+
# git diff --unified=0 origin/${{ github.event.pull_request.base.ref }}..${{ github.event.pull_request.head.ref }} > changes.diff
30+
31+
# - name: Generate Diff
32+
# id: generate-diff
33+
# run: |
34+
# echo "Generating diff between ${{ github.base_ref }} and pull request head"
35+
# git diff --unified=0 origin/${{ github.event.pull_request.base.ref }}..FETCH_HEAD > changes.diff
3036

3137
- name: Sanitize Diff
3238
run: |

0 commit comments

Comments
 (0)