Skip to content

ghusage 0.1.4

Choose a tag to compare

@tanahiro2010 tanahiro2010 released this 22 Nov 08:51
· 97 commits to dev since this release
v0.1.4
fbd3f99

Markdown output and profile READMEs

  • New output format: --format markdown renders overview, daily, weekly, monthly, yearly and repos as GitHub-flavored Markdown tables.
    • Text from GitHub is sanitized, and any Markdown or HTML syntax in it is escaped, so it cannot break the tables or add links and images.
    • Like JSON and CSV, private repository names are hidden unless --include-private is given.
    • Other commands reject the format with exit code 2.
  • New guide: Profile README (日本語). It has a ready-to-copy GitHub Actions workflow that updates a section of your profile README every day. The section sits between <!-- ghusage:start --> and <!-- ghusage:end --> markers. The workflow keeps the ghusage cache between runs, so each run only syncs what changed. It uses --public-only and --require-complete, so a run with incomplete data leaves the README unchanged.
ghusage overview --since 30d --public-only --format markdown

Fixes

  • Terminal UI: on narrow terminals, the Repositories tab now hides its less important columns, so repository names stay readable. It drops PR events, active PRs, issues, merged, reviews and then visibility, in that order. Before, a 110-column terminal left about eight characters for the name.
  • Terminal UI: on macOS and Linux, SIGTERM and SIGHUP now end the UI the same way q does, so the terminal is restored. Before, the terminal was left in the alternate screen with input echo off.

Documentation

  • The home page of the documentation site now shows a terminal screenshot.
  • Known limitations are updated for the two fixes above.

Install / update

npm install -g ghusage@0.1.4

Full changelog: v0.1.3...v0.1.4