Skip to content
This repository was archived by the owner on Dec 12, 2022. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions ubports-qa
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ IS_ROOT = os.geteuid() == 0

class Status(Enum):
SUCCESS = 1
BULDING = 2
BUILDING = 2
FAILED = 3


Expand Down Expand Up @@ -138,10 +138,6 @@ def get_issue_status(repo, ref):
return Status.FAILED


def get_issue_branch(repo, num):
return get_github_pr(repo, num)["head"]["ref"]


def print_error(error_message):
"""Prints error_message in red"""
print("\033[91m" + error_message + "\033[0m")
Expand All @@ -157,7 +153,7 @@ def install_command(args):
"""Install a PPA or Pull Request"""
if args.pr != -1:
args.repo.replace("ubports/", "")
ref = get_issue_branch(args.repo, args.pr)
ref = 'PR-' + str(args.pr)
status = get_issue_status(args.repo, ref)
if status == Status.FAILED:
die("Issue failed to build")
Expand Down