Skip to content

Commit

Permalink
Check the error on pr edit command through stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
sshrihar committed Sep 25, 2024
1 parent 7bda57d commit a90c300
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build_branches.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,9 @@ def update_pr_description(pr_number:str):
print(f"Updated PR description: {new_pr_description}")
command = ["gh", "pr", "edit", pr_number, "--body", new_pr_description]
print(f"Executing command: {str(command)}")
execution_cmd = subprocess.run(command, capture_output=True, text=True).stdout.strip()
print(f"Command Result: {execution_cmd}")
execution_cmd = subprocess.run(command, capture_output=True, text=True)
print(f"stdout: {execution_cmd.stdout}")
print(f"stderr: {execution_cmd.stderr}")


def process_branch_folders():
Expand Down

0 comments on commit a90c300

Please sign in to comment.