Skip to content

Commit

Permalink
retrieve commit's combined status
Browse files Browse the repository at this point in the history
  • Loading branch information
kszucs committed Jun 23, 2018
1 parent 0773f3a commit 95bc3fa
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions dev/tasks/crossbow.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,15 +371,16 @@ def status(job_name, queue_path, github_token):

job = Job.from_dict(yaml.load(content.decoded))

tpl = '[{:>7}] {:<20} {:<10} {:<30}'
header = tpl.format('status', 'branch', 'github_id', 'target_url')
tpl = '[{:>7}] {:<24} {:<40}'
header = tpl.format('status', 'branch', 'sha')
click.echo(header)
click.echo('-' * len(header))

for name, task in job.tasks.items():
for status in repo.statuses(task.commit):
click.echo(tpl.format(status.state, task.branch, status.id,
status.target_url))
commit = repo.commit(task.commit)
status = commit.status()

click.echo(tpl.format(status.state, task.branch, task.commit))


@crossbow.command()
Expand Down

0 comments on commit 95bc3fa

Please sign in to comment.