Skip to content

Commit 92b3360

Browse files
committed
✨ add fetch command for branch updates in PR processing
1 parent 09f4d01 commit 92b3360

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/utils/pr.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ def create_update_pr(commit_message: str, branch_prefix: str, title: str, body:
4949
for pr in prs:
5050
if pr.head.ref.startswith(branch_prefix):
5151
branch_name: str = pr.head.ref
52+
subprocess.run(
53+
["/usr/bin/git", "fetch", "origin", branch_name],
54+
check=False,
55+
)
5256
subprocess.run(
5357
["/usr/bin/git", "checkout", branch_name],
5458
check=False,

0 commit comments

Comments
 (0)