We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0f42444 + 3143881 commit 7f6712dCopy full SHA for 7f6712d
src/github.py
@@ -89,7 +89,7 @@ def get_deletable_branches(self, last_commit_age_days: int, ignore_branches: lis
89
def delete_branches(self, branches: list) -> None:
90
for branch in branches:
91
print(f'Deleting branch `{branch}`...')
92
- url = f'{self.github_base_url}/repos/{self.github_repo}/git/refs/heads/{branch}'
+ url = f'{self.github_base_url}/repos/{self.github_repo}/git/refs/heads/{branch.replace("#", "%23")}'
93
94
response = requests.request(method='DELETE', url=url, headers=self.make_headers())
95
if response.status_code != 204:
0 commit comments