Skip to content

Commit 3e97dc5

Browse files
committed
Test PR creation
1 parent e6e06d6 commit 3e97dc5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/component_updater.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -276,9 +276,9 @@ def __does_component_needs_to_be_updated(self, original_component: AtmosComponen
276276
relative_path = os.path.relpath(updated_file, updated_component.infra_repo_dir)
277277
original_file = os.path.join(original_component.infra_repo_dir, relative_path)
278278

279+
files_to_update.append(relative_path)
279280
if not os.path.isfile(original_file):
280281
logging.info(f"New file: {relative_path}")
281-
files_to_update.append(relative_path)
282282
needs_update = True
283283
continue
284284

@@ -287,7 +287,6 @@ def __does_component_needs_to_be_updated(self, original_component: AtmosComponen
287287
if num_diffs < MAX_NUMBER_OF_DIFF_TO_SHOW:
288288
logging.info(f"diff: {self.__tools_manager.diff(original_file, updated_file)}")
289289
num_diffs += 1
290-
files_to_update.append(relative_path)
291290
needs_update = True
292291

293292
for original_file in original_files:
@@ -305,7 +304,6 @@ def __does_component_needs_to_be_updated(self, original_component: AtmosComponen
305304
logging.info(f"Component '{os.path.relpath(original_component.component_file, original_component.infra_repo_dir)}' needs to be updated")
306305
files_to_update.append(os.path.relpath(original_component.component_file, original_component.infra_repo_dir))
307306

308-
309307
return (needs_update, files_to_update, files_to_remove)
310308

311309
def __create_branch_and_pr(self, repo_dir, files_to_update, files_to_remove, original_component: AtmosComponent, updated_component: AtmosComponent, branch_name: str) -> PullRequestCreationResponse:

0 commit comments

Comments
 (0)