Skip to content

Commit

Permalink
Merge pull request #159 from usegalaxy-eu/fix-deleted-branch
Browse files Browse the repository at this point in the history
Fix file retrieval after branch removal
  • Loading branch information
bgruening authored Jan 8, 2025
2 parents e517b21 + 5555b78 commit 21512a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion github_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def get_files(self):
if file_path.endswith(".md"):
head_branch = self.pr.head
pr_content = head_branch.repo.get_contents(
file_path, ref=head_branch.ref
file_path, ref=head_branch.sha
).decoded_content.decode()
os.makedirs(os.path.dirname(file_path), exist_ok=True)
with open(file_path, "w") as f:
Expand Down

0 comments on commit 21512a2

Please sign in to comment.