Skip to content

Commit 9f9c253

Browse files
committed
Pass logger to commit_and_push_changes
Signed-off-by: Keshav Priyadarshi <git@keshav.space>
1 parent a6cc0f1 commit 9f9c253

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

minecode_pipelines/pipelines/mine_maven.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,5 @@ def save_check_point(self):
8484
checkpoint=checkpoint,
8585
cloned_repo=self.checkpoint_config_repo,
8686
path=self.checkpoint_path,
87+
logger=self.log,
8788
)

minecode_pipelines/pipes/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def get_checkpoint_from_file(cloned_repo, path):
4343
return checkpoint_data or {}
4444

4545

46-
def update_checkpoints_in_github(checkpoint, cloned_repo, path):
46+
def update_checkpoints_in_github(checkpoint, cloned_repo, path, logger):
4747
from scanpipe.pipes.federatedcode import commit_and_push_changes
4848

4949
checkpoint_path = os.path.join(cloned_repo.working_dir, path)
@@ -53,6 +53,7 @@ def update_checkpoints_in_github(checkpoint, cloned_repo, path):
5353
repo=cloned_repo,
5454
files_to_commit=[checkpoint_path],
5555
commit_message=commit_message,
56+
logger=logger,
5657
)
5758

5859

pyproject-minecode_pipelines.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "flot.buildapi"
44

55
[project]
66
name = "minecode_pipelines"
7-
version = "0.0.1b31"
7+
version = "0.0.1b32"
88
description = "A library for mining packageURLs and package metadata from ecosystem repositories."
99
readme = "minecode_pipelines/README.rst"
1010
license = { text = "Apache-2.0" }

0 commit comments

Comments
 (0)