Skip to content

Commit 184c387

Browse files
Update bedevere/util.py
Co-authored-by: Sven Arends <88426829+picnic-sven@users.noreply.github.com>
1 parent aa054b0 commit 184c387

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

bedevere/util.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,10 +231,8 @@ def no_labels(event_data):
231231
return False
232232

233233

234-
async def get_pr_for_commit(gh, sha, repo_full_name=None):
234+
async def get_pr_for_commit(gh, sha, repo_full_name="python/cpython"):
235235
"""Find the PR containing the specific commit hash."""
236-
if not repo_full_name:
237-
repo_full_name = "python/cpython"
238236
prs_for_commit = await gh.getitem(
239237
f"/search/issues?q=type:pr+repo:{repo_full_name}+sha:{sha}"
240238
)

0 commit comments

Comments
 (0)