Skip to content

Commit

Permalink
return status of PR download in case of no ERROR
Browse files Browse the repository at this point in the history
  • Loading branch information
truib committed Feb 20, 2024
1 parent 1fd7b60 commit 3a2df5a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tasks/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
ERROR_GIT_APPLY = "git apply"
ERROR_GIT_CHECKOUT = "git checkout"
ERROR_GIT_CLONE = "curl"
ERROR_NONE = "none"
GITHUB = "github"
GIT_CLONE_FAILURE = "git_clone_failure"
GIT_CLONE_TIP = "git_clone_tip"
Expand Down Expand Up @@ -399,6 +400,8 @@ def download_pr(repo_name, branch_name, pr, arch_job_dir):
error_stage = ERROR_GIT_APPLY
return git_apply_output, git_apply_error, git_apply_exit_code, error_stage

# need to return four items also in case everything went fine
return 'downloading PR succeeded', 'no error while downloading PR', 0, ERROR_NONE

def comment_download_pr(base_repo_name, pr, download_pr_exit_code, download_pr_error, error_stage):
"""
Expand Down

0 comments on commit 3a2df5a

Please sign in to comment.