You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Commits List Between Tags Generator/main.py
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -109,11 +109,12 @@ def main():
109
109
"""
110
110
111
111
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
114
115
repo_name=repo_url.split("/")[-1] # Get the repository name
115
116
from_tag="v1.0"# The starting tag
116
-
to_tag="v8.0"# The ending tag
117
+
to_tag="v2.0"# The ending tag
117
118
118
119
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}")
119
120
@@ -122,7 +123,7 @@ def main():
122
123
output_csv=f"{RELATIVE_OUTPUT_DIRECTORY_PATH}{repo_name}-{from_tag}_to_{to_tag}-commits_list.csv"# The output CSV file path
123
124
write_commits_to_csv(commits_tuple_list, output_csv) # Generate the CSV file
0 commit comments