@@ -35,6 +35,7 @@ def get_project_name(self) -> str:
3535 return self ._project_name
3636
3737 def identify_target_files (self ) -> None :
38+ print ("GithubArchiver: Begin to parse target files..." )
3839 download_folder_path = "./screen-shots"
3940 extracted_folder_path = os .path .join (download_folder_path , self .get_project_name ())
4041 assert os .path .isdir (extracted_folder_path ) is True , "Target folder does not exist"
@@ -58,11 +59,14 @@ def identify_target_files(self) -> None:
5859 if not any (excluded in file_relative_path for excluded in replit_junk ):
5960 self ._file_paths [file_relative_path ] = file_full_path
6061 self ._file_list .append (file_relative_path )
62+
63+ print ("GithubArchiver: Target files are parsed" )
6164
6265 def get_target_files (self ) -> list :
6366 return self ._file_list
6467
6568 def commit_to_github (self ) -> None :
69+ print ("GithubArchiver: Begin to upload files to Github..." )
6670 assert len (self ._file_list ) != 0 , "Target files are not identified"
6771 auth = Auth .Token (self .__github_access_token )
6872 g = Github (auth = auth )
@@ -104,12 +108,12 @@ def commit_to_github(self) -> None:
104108 )
105109
106110 archive_ref = repo .get_git_ref (ref = 'heads/main' )
107- print (f"Archive_ref: { archive_ref } " )
111+ print (f"GithubArchiver: Archive_ref is { archive_ref } " )
108112 self ._commit_sha = commit .sha
109113
110114 # Commit to Github
111115 archive_ref .edit (sha = commit .sha )
112- print ("Upload complete" )
116+ print ("GithubArchiver: Upload complete" )
113117
114118 g .close ()
115119
0 commit comments