@@ -27,19 +27,54 @@ It also lets you quickly see at a glance what this user primarly use GitHub for,
2727
2828![ Ranks] ( /.github/readme/imgs/plugin_achievements_ranks.png )
2929
30+ #### ➡️ Available options
31+
32+ <!-- options-->
33+ | Option | Type * (format)* ** [ default] ** * {allowed values}* | Description |
34+ | ------ | -------------------------------- | ----------- |
35+ | ` plugin_achievements ` | ` boolean ` ** [ no] ** | Display achievements |
36+ | ` plugin_achievements_threshold ` | ` string ` ** [ C] ** * {"S", "A", "B", "C", "X"}* | Display rank minimal threshold |
37+ | ` plugin_achievements_secrets ` | ` boolean ` ** [ yes] ** | Display unlocked secrets achievements |
38+ | ` plugin_achievements_display ` | ` string ` ** [ detailed] ** * {"detailed", "compact"}* | Achievements display style |
39+ | ` plugin_achievements_limit ` | ` number ` ** [ 0] ** * {0 ≤ 𝑥}* | Maximum number of achievements to display |
40+ | ` plugin_achievements_ignored ` | ` array ` * (comma-separated)* ** [ ] ** | Unlocked achievements to hide |
41+ | ` plugin_achievements_only ` | ` array ` * (comma-separated)* ** [ ] ** | Unlocked achievements to display |
42+
43+
44+ Legend for option icons:
45+ * 🔐 Value should be stored in repository secrets
46+ * ✨ New feature currently in testing on ` master ` /` main `
47+ <!-- /options-->
48+
49+ * [ → Full specification] ( metadata.yml ) *
50+
3051#### ℹ️ Examples workflows
3152
32- [ ➡️ Available options for this plugin] ( metadata.yml )
53+ <!-- examples-->
54+ ``` yaml
55+ name : Detailed display
56+ uses : lowlighter/metrics@latest
57+ with :
58+ filename : metrics.plugin.achievements.svg
59+ token : ${{ secrets.METRICS_TOKEN }}
60+ base : ' '
61+ plugin_achievements : ' yes'
62+ plugin_achievements_only : sponsor, maintainer, octonaut
3363
64+ ```
3465``` yaml
35- - uses : lowlighter/metrics@latest
36- with :
37- # ... other options
38- plugin_achievements : yes
39- plugin_achievements_threshold : B # Display achievements with rank B or higher
40- plugin_achievements_secrets : yes # Display unlocked secrets achievements
41- plugin_achievements_display : compact # Use compact display
42- plugin_achievements_limit : 0 # Display all unlocked achievements (no limit)
43- plugin_achievements_ignored : octonaut # Hide "octonaut" achievement
44- plugin_achievements_only : explorer # Display only "explorer" achievement (don't use with "ignored" option)
66+ name : Compact display
67+ uses : lowlighter/metrics@latest
68+ with :
69+ filename : metrics.plugin.achievements.compact.svg
70+ token : ${{ secrets.METRICS_TOKEN }}
71+ base : ' '
72+ plugin_achievements : ' yes'
73+ plugin_achievements_only : >-
74+ polyglot, stargazer, sponsor, deployer, member, maintainer, developer,
75+ scripter, packager, explorer, infographile, manager
76+ plugin_achievements_display : compact
77+ plugin_achievements_threshold : X
78+
4579```
80+ <!-- /examples-->
0 commit comments