Skip to content

Commit 8e96abb

Browse files
authored
Fix incompatibilities with pygithub 2 (#251)
1 parent 765c25c commit 8e96abb

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

scripts/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ dependencies = [
2121
"typer",
2222
"furl",
2323
"GitPython",
24-
"PyGitHub",
24+
"PyGitHub >= 2",
2525
"PyYAML",
2626
"pre-commit", # is ran by cruft
2727
]

scripts/src/scverse_template_scripts/cruft_prs.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,11 @@ def make_pr(con: GitHubConnection, release: GHRelease, repo_url: str) -> None:
243243
log.info(f"Closing old PR #{old_pr.number} with branch name `{old_pr.head.ref}`.")
244244
old_pr.edit(state="closed")
245245
new_pr = origin.create_pull(
246-
pr.title, pr.body, origin.default_branch, pr.namespaced_head, maintainer_can_modify=True
246+
title=pr.title,
247+
body=pr.body,
248+
base=origin.default_branch,
249+
head=pr.namespaced_head,
250+
maintainer_can_modify=True,
247251
)
248252
log.info(f"Created PR #{new_pr.number} with branch name `{new_pr.head.ref}`.")
249253

0 commit comments

Comments
 (0)