Files
metrics/source/plugins/achievements/README.md
2022-01-14 01:40:24 -05:00

2.9 KiB
Raw Blame History

🏆 Achievements

The achievements plugin displays several highlights about what you achieved on GitHub.

Compact display
Detailed display

Achievements are mostly related to features offered by GitHub, so by unlocking achivements ranks you'll be mastering GitHub in no time!

A few achievements contains actual real ranking (based on GitHub search results)!

About achievements ranks

Moving forward between ranks is voluntarily difficult, making it almost impossible to reach the latest rank except by hard work.

With this design, when a user reach upper ranks you can be sure that they really deserve it! It also lets you quickly see at a glance what this user primarly use GitHub for, just look for crimson and gold badges!

Ranks

➡️ Available options

Option Type (format) [default] {allowed values} Description
plugin_achievements boolean [no] Display achievements
plugin_achievements_threshold string [C] {"S", "A", "B", "C", "X"} Display rank minimal threshold
plugin_achievements_secrets boolean [yes] Display unlocked secrets achievements
plugin_achievements_display string [detailed] {"detailed", "compact"} Achievements display style
plugin_achievements_limit number [0] {0 ≤ 𝑥} Maximum number of achievements to display
plugin_achievements_ignored array (comma-separated) [] Unlocked achievements to hide
plugin_achievements_only array (comma-separated) [] Unlocked achievements to display

→ Full specification

Examples workflows

name: Detailed display
uses: lowlighter/metrics@latest
with:
  filename: metrics.plugin.achievements.svg
  token: ${{ secrets.METRICS_TOKEN }}
  base: ''
  plugin_achievements: 'yes'
  plugin_achievements_only: sponsor, maintainer, octonaut

name: Compact display
uses: lowlighter/metrics@latest
with:
  filename: metrics.plugin.achievements.compact.svg
  token: ${{ secrets.METRICS_TOKEN }}
  base: ''
  plugin_achievements: 'yes'
  plugin_achievements_only: >-
    polyglot, stargazer, sponsor, deployer, member, maintainer, developer,
    scripter, packager, explorer, infographile, manager
  plugin_achievements_display: compact
  plugin_achievements_threshold: X