Skip to content

Commit

Permalink
to squash
Browse files Browse the repository at this point in the history
  • Loading branch information
p.delpy@dkfz-heidelberg.de committed Oct 15, 2024
1 parent 203932c commit 52f94be
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/scripts/rename_inactive_branches.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}'")

0 comments on commit 52f94be

Please sign in to comment.