Skip to content

Commit

Permalink
Allow maintainer to modify the PR
Browse files Browse the repository at this point in the history
  • Loading branch information
grst committed Aug 16, 2023
1 parent e27ca0a commit ff88292
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/src/scverse_template_scripts/cruft_prs.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def make_pr(con: GitHubConnection, release: GHRelease, repo_url: str) -> None:
if old_pr := next((p for p in origin.get_pulls("open") if pr.matches_prefix(p)), 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)
new_pr = origin.create_pull(pr.title, pr.body, origin.default_branch, 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 ff88292

Please sign in to comment.