MCPcopy Create free account
hub / github.com/bitsandbytes-foundation/bitsandbytes / format_compact

Function format_compact

agents/query_issues.py:171–179  ·  view source on GitHub ↗

One-line summary of an issue.

(issue: dict)

Source from the content-addressed store, hash-verified

169
170
171def format_compact(issue: dict) -> str:
172 """One-line summary of an issue."""
173 labels = ", ".join(issue["labels"][:3]) if issue["labels"] else "-"
174 thumbs = issue["reactions"].get("THUMBS_UP", 0)
175 return (
176 f"#{issue['number']:<5d} {issue['state']:<6s} "
177 f"[{labels}] ({issue['comment_count']}c {thumbs}\u2191) "
178 f"{issue['title'][:80]}"
179 )
180
181
182def format_list_line(issue: dict) -> str:

Callers 3

format_related_resultFunction · 0.85
cmd_searchFunction · 0.85
cmd_topFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected