Skip to content

v1.4.0

Choose a tag to compare

@pedrocatalao pedrocatalao released this 07 Nov 14:17
· 71 commits to main since this release
e0fd614

Cards

  • Every card is 400 by 195 on the page, classic or OLED, so two always fit a row.
    • Classic cards are all 400 wide (they were 450 and 350). Languages and weekly use the extra room; contributions keep their layout, with the stars closer to the names.
    • OLED cards are 450 by 219 (8 more dot rows), shown at 400. Dots and text keep their size; the weekly bars get taller.
  • The classic summary shows one column of numbers that flips between the last 12 months and all time, row by row, each staying 3.5 seconds, like a page of the contributions card. Without animations (or with reduced motion) it shows all time.
  • The cards can be turned off: cards: [] makes none. The action finishes without calling GitHub, and the workflow publishes nothing.

Setup

  • Opens with a banner. If you haven't starred the repo, a star beside it asks you to: it's lit, 1 turns it off, and setup goes on by itself after 4 seconds or on Enter.
  • Yes/no questions work like the other screens: [1] (or ←/→) switches, Enter continues. Keys show as [1], [2]… and everything lines up.
  • Turn every card off to switch the cards off: they leave your README (the marked block stays, so they come back in the same place), the workflow loses its schedule but can still be run by hand, and the settings and first run are skipped. Turn a card on again to bring it all back.
  • A token that's set isn't asked about. If the first run fails on it (expired, revoked or missing a scope), setup offers to replace it and runs again.
  • Fixes: a pasted token is no longer shown as you paste it; keys typed right after an arrow key are no longer lost.
  • --no-commit goes through everything but commits, pushes and runs nothing, for trying setup out.

Upgrading

Workflows on @v1 get the new cards on their next run. Run setup again to update your README: it asked for the classic cards at 450 and 350 wide, and they're now 400, so until then two of them show slightly scaled up and two slightly down.

bash <(curl -fsSL https://raw.githubusercontent.com/pedrocatalao/github-cool-readme/v1/setup.sh)

To turn the cards off, setup also updates your workflow: say yes when it asks.