diff --git a/.github/scripts/rename_inactive_branches.py b/.github/scripts/rename_inactive_branches.py index 2a59e140..6d8b83dd 100644 --- a/.github/scripts/rename_inactive_branches.py +++ b/.github/scripts/rename_inactive_branches.py @@ -26,6 +26,7 @@ def is_inactive(commit_url): return datetime.strptime(last_commit_date, '%Y-%m-%dT%H:%M:%SZ') < CUTOFF_DATE # Rename inactive branches -# for branch in get_branches(): -# if is_inactive(branch['commit']['url']): -# rename_branch(branch['name'], f"archived/{branch['name']}") +for branch in get_branches(): + if is_inactive(branch['commit']['url']): + #rename_branch(branch['name'], f"archived/{branch['name']}") + print(f"[LOG] Branch '{branch['name']}' is inactive and would be renamed to '{new_branch_name}'") \ No newline at end of file