Skip to content

Commit 394d9dc

Browse files
REFACTOR: Minor changes in the 'Commits List Between Tags Generator' Python Project
1 parent 12e75c9 commit 394d9dc

File tree

1 file changed

+5
-4
lines changed
  • Commits List Between Tags Generator

1 file changed

+5
-4
lines changed

Commits List Between Tags Generator/main.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,12 @@ def main():
109109
"""
110110

111111
print(f"{BackgroundColors.CLEAR_TERMINAL}{BackgroundColors.BOLD}{BackgroundColors.GREEN}Welcome to the {BackgroundColors.CYAN}Commits List Between Tags Generator{BackgroundColors.GREEN}!{Style.RESET_ALL}")
112-
113-
repo_url = "https://github.com/BrenoFariasdaSilva/Worked-Example-Miner" # The URL of the GitHub repository
112+
print(f"{BackgroundColors.GREEN}If you don't have the repository tags, you can generate them using the {BackgroundColors.CYAN}Repository Tags Lister{BackgroundColors.GREEN} program.{Style.RESET_ALL}\n")
113+
114+
repo_url = "https://github.com/BrenoFariasdaSilva/DDoS-Detector" # The URL of the GitHub repository
114115
repo_name = repo_url.split("/")[-1] # Get the repository name
115116
from_tag = "v1.0" # The starting tag
116-
to_tag = "v8.0" # The ending tag
117+
to_tag = "v2.0" # The ending tag
117118

118119
print(f"{BackgroundColors.GREEN}Generating commit CSV from {BackgroundColors.CYAN}{from_tag}{BackgroundColors.GREEN} to {BackgroundColors.CYAN}{to_tag}{BackgroundColors.GREEN} for the repository {BackgroundColors.CYAN}{repo_name}{BackgroundColors.GREEN}...{Style.RESET_ALL}")
119120

@@ -122,7 +123,7 @@ def main():
122123
output_csv = f"{RELATIVE_OUTPUT_DIRECTORY_PATH}{repo_name}-{from_tag}_to_{to_tag}-commits_list.csv" # The output CSV file path
123124
write_commits_to_csv(commits_tuple_list, output_csv) # Generate the CSV file
124125

125-
print(f"{BackgroundColors.CYAN}Program finished.{Style.RESET_ALL}")
126+
print(f"\n{BackgroundColors.CYAN}Program finished.{Style.RESET_ALL}")
126127

127128
if __name__ == "__main__":
128129
"""

0 commit comments

Comments
 (0)