Skip to content

Commit

Permalink
Add message to badge when qc is INFO or PASS (#113)
Browse files Browse the repository at this point in the history
* add INFO and PASS to badge message

* simplify badge label to QC, decided in meeting today

---------

Co-authored-by: Anita Caron <[email protected]>
  • Loading branch information
Anita Caron and anitacaron authored Apr 17, 2024
1 parent 0af8ac6 commit fb5464e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions util/dashboard/dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,10 +354,12 @@ def run():
summary = 'INFO'
color = 'green'
summary_comment = '{0} info messages'.format(info)
badge_message.append(f"INFO {info}")
else:
summary = 'PASS'
summary_comment = ''
color = 'green'
badge_message.append("PASS")

if warn > 0:
badge_message.append(f"WARN {warn}")
Expand Down
2 changes: 1 addition & 1 deletion util/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ def compute_percentage_reused_entities(entity_use_map, internal_ns):
return float(score_string)

def create_dashboard_qc_badge(color: str, message: str, outdir: str):
create_badge(color, message, "OBO Dashboard QC", f"{outdir}/dashboard-qc-badge.json")
create_badge(color, message, "QC", f"{outdir}/dashboard-qc-badge.json")


def create_dashboard_score_badge(color: str, message: str, outdir: str):
Expand Down

0 comments on commit fb5464e

Please sign in to comment.