Skip to content

Commit

Permalink
Fix incompatibilities with pygithub 2 (#251)
Browse files Browse the repository at this point in the history
  • Loading branch information
grst authored Nov 28, 2023
1 parent 765c25c commit 8e96abb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dependencies = [
"typer",
"furl",
"GitPython",
"PyGitHub",
"PyGitHub >= 2",
"PyYAML",
"pre-commit", # is ran by cruft
]
Expand Down
6 changes: 5 additions & 1 deletion scripts/src/scverse_template_scripts/cruft_prs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}`.")

Expand Down

0 comments on commit 8e96abb

Please sign in to comment.