Skip to content

Commit

Permalink
ci(get_mr_changed_files): return only changed files, exclude deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
jakub-kocka committed Oct 6, 2023
1 parent fbc31c8 commit f71b2cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/ci/ci_get_mr_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def get_mr_changed_files(source_branch: str) -> t.List[str]:
return []

git_output = subprocess.check_output(
['git', 'diff', '--name-only', f'origin/{mr.target_branch}...origin/{source_branch}']
['git', 'diff', '--name-only', '--diff-filter=d', f'origin/{mr.target_branch}...origin/{source_branch}']
).decode('utf8')

return [line.strip() for line in git_output.splitlines() if line.strip()]
Expand Down

0 comments on commit f71b2cb

Please sign in to comment.