diff --git a/scripts/pyproject.toml b/scripts/pyproject.toml index 6c7e6ad5..e529b83a 100644 --- a/scripts/pyproject.toml +++ b/scripts/pyproject.toml @@ -21,7 +21,7 @@ dependencies = [ "typer", "furl", "GitPython", - "PyGitHub", + "PyGitHub >= 2", "PyYAML", "pre-commit", # is ran by cruft ] diff --git a/scripts/src/scverse_template_scripts/cruft_prs.py b/scripts/src/scverse_template_scripts/cruft_prs.py index 91f326c5..d0838f6f 100644 --- a/scripts/src/scverse_template_scripts/cruft_prs.py +++ b/scripts/src/scverse_template_scripts/cruft_prs.py @@ -243,7 +243,11 @@ def make_pr(con: GitHubConnection, release: GHRelease, repo_url: str) -> None: log.info(f"Closing old PR #{old_pr.number} with branch name `{old_pr.head.ref}`.") old_pr.edit(state="closed") new_pr = origin.create_pull( - pr.title, pr.body, origin.default_branch, pr.namespaced_head, maintainer_can_modify=True + title=pr.title, + body=pr.body, + base=origin.default_branch, + head=pr.namespaced_head, + maintainer_can_modify=True, ) log.info(f"Created PR #{new_pr.number} with branch name `{new_pr.head.ref}`.")