(args)
| 31 | |
| 32 | |
| 33 | def main(args): |
| 34 | cachefile = Path(args.cache) |
| 35 | if not cachefile.exists() or args.refresh: |
| 36 | issues = get_issues() |
| 37 | cachefile.write_text(json.dumps(issues), "utf-8") |
| 38 | else: |
| 39 | issues = json.loads(cachefile.read_text("utf-8")) |
| 40 | |
| 41 | open_issues = [x for x in issues if x["state"] == "open"] |
| 42 | |
| 43 | open_issues.sort(key=lambda x: x["number"]) |
| 44 | report(open_issues) |
| 45 | |
| 46 | |
| 47 | def _get_kind(issue): |
no test coverage detected