From f71b2cb2091ff9173af94ae6ce0c0da99572ff8e Mon Sep 17 00:00:00 2001 From: Jakub Kocka Date: Wed, 4 Oct 2023 12:42:51 +0200 Subject: [PATCH] ci(get_mr_changed_files): return only changed files, exclude deleted --- tools/ci/ci_get_mr_info.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ci/ci_get_mr_info.py b/tools/ci/ci_get_mr_info.py index e2becc078ef0..c87e64b621c8 100644 --- a/tools/ci/ci_get_mr_info.py +++ b/tools/ci/ci_get_mr_info.py @@ -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()]