Skip to content

Commit

Permalink
Update awxdraft.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dmzoneill authored Feb 28, 2024
1 parent b9a26b5 commit 944e83c
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions awxdraft.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,10 @@ def check_pr_status(owner, repo, pull_request_number):
# Split the output into lines
lines = result.stdout.strip().split('\n')

# Check if all lines begin with '✓' except for the specific line
begin = False
for line in lines:
if "NAME" in line:
begin=True
continue
if begin == False:
continue
if line.startswith('X') and "CI/api-schema" in line:
if "fail" in line and "api-schema" in line:
continue # Ignore the specific line
elif not line.startswith('✓'):
print(f"Not all lines start with '✓'.")
if "pass" not in line and "api-schema" not in line:
return False

return True
Expand Down

0 comments on commit 944e83c

Please sign in to comment.