From 8b34b0ab935ff61080ae3196a871bf32dc3a0ae6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 17 Jan 2023 06:30:11 +0000 Subject: [PATCH] ci: auto-regenerate files --- .../partials/documentation/compatibility.md | 11 ++- README.md | 58 +++++++------ action.yml | 15 ++++ settings.example.json | 3 + source/plugins/README.md | 1 + source/plugins/sponsorships/README.md | 82 +++++++++++++++++++ source/templates/classic/README.md | 2 +- tests/cases/sponsorships.plugin.yml | 7 ++ 8 files changed, 150 insertions(+), 29 deletions(-) create mode 100644 tests/cases/sponsorships.plugin.yml diff --git a/.github/readme/partials/documentation/compatibility.md b/.github/readme/partials/documentation/compatibility.md index 006779b7..400b3483 100644 --- a/.github/readme/partials/documentation/compatibility.md +++ b/.github/readme/partials/documentation/compatibility.md @@ -30,6 +30,7 @@ ๐ŸŽซ ๐Ÿ—‚๏ธ ๐ŸŒ‡ + ๐Ÿ’ ๐Ÿ’ญ โฑ๏ธ ๐Ÿค @@ -70,6 +71,7 @@ โœ”๏ธ โœ”๏ธ โœ”๏ธ + โœ”๏ธ โœ”๏ธ โœ”๏ธ โœ”๏ธ @@ -110,6 +112,7 @@ โŒ โœ”๏ธ โŒ + โŒ โŒ โœ”๏ธ โŒ @@ -150,6 +153,7 @@ โœ”๏ธ โŒ โŒ + โŒ โŒ โœ”๏ธ โŒ @@ -190,6 +194,7 @@ โœ“ โœ“ โœ“ + โœ“ โœ“ โœ“ โœ”๏ธ @@ -202,7 +207,7 @@ โœ“ - + Mode/Plugin @@ -233,6 +238,7 @@ ๐ŸŽซ ๐Ÿ—‚๏ธ ๐ŸŒ‡ + ๐Ÿ’ ๐Ÿ’ญ โฑ๏ธ ๐Ÿค @@ -273,6 +279,7 @@ โœ”๏ธ โœ”๏ธ โœ”๏ธ + โœ”๏ธ โœ”๏ธ โœ”๏ธ โœ”๏ธ @@ -313,6 +320,7 @@ โŒ โœ”๏ธ โŒ + โœ”๏ธ โŒ โœ”๏ธ โœ”๏ธ @@ -353,6 +361,7 @@ โŒ โœ”๏ธ โŒ + โŒ โŒ โœ”๏ธ โŒ diff --git a/README.md b/README.md index fd506609..4ddae298 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ Generate metrics that can be embedded everywhere, including your GitHub profile -

๐Ÿงฉ Customizable with 43 plugins and 311 options!

+

๐Ÿงฉ Customizable with 44 plugins and 314 options!

@@ -227,78 +227,81 @@ Generate metrics that can be embedded everywhere, including your GitHub profile + ๐Ÿ’ GitHub Sponsorships โฑ๏ธ Google PageSpeed - ๐Ÿค Latest tweets + + + +
PageSpeed scores
PageSpeed scores with detailed report
PageSpeed scores with a website screenshot
+ + + ๐Ÿค Latest tweets + ๐Ÿ—จ๏ธ Stack Overflow + +
Latest tweets with attachments
Latest tweets
- - - ๐Ÿ—จ๏ธ Stack Overflow - ๐ŸŒธ Anilist watch list and reading list - - + + + ๐ŸŒธ Anilist watch list and reading list + ๐ŸŽผ Music activity and suggestions + +
For anime watchers
For manga readers
For waifus simp
- - - ๐ŸŽผ Music activity and suggestions - โœ’๏ธ Recent posts - -
Random tracks from a playlist
Recently listened
+ + + โœ’๏ธ Recent posts + ๐Ÿ—ผ Rss feed + +
Latest posts width description and cover image
Latest posts
- - - ๐Ÿ—ผ Rss feed - โฐ WakaTime - - + + + โฐ WakaTime + ๐Ÿ—ณ๏ธ Leetcode + + - - - ๐Ÿ—ณ๏ธ Leetcode - - - - @@ -497,6 +500,7 @@ Plugins provide additional content and lets you customize rendered metrics. * [๐Ÿ““ Featured repositories `repositories`](/source/plugins/repositories/README.md) * [๐ŸŒ‡ GitHub Skyline `skyline`](/source/plugins/skyline/README.md) * [๐Ÿ’• GitHub Sponsors `sponsors`](/source/plugins/sponsors/README.md) + * [๐Ÿ’ GitHub Sponsorships `sponsorships`](/source/plugins/sponsorships/README.md) * [โœจ Stargazers `stargazers`](/source/plugins/stargazers/README.md) * [๐Ÿ’ซ Star lists `starlists`](/source/plugins/starlists/README.md) * [๐ŸŒŸ Recently starred repositories `stars`](/source/plugins/stars/README.md) diff --git a/action.yml b/action.yml index a1dd590b..52229a17 100644 --- a/action.yml +++ b/action.yml @@ -949,6 +949,21 @@ inputs: description: Advanced settings default: + # ==================================================================================== + # ๐Ÿ’ GitHub Sponsorships + + plugin_sponsorships: + description: Enable sponsorships plugin + default: + + plugin_sponsorships_sections: + description: Displayed sections + default: + + plugin_sponsorships_size: + description: Profile picture display size + default: + # ==================================================================================== # ๐Ÿ’ญ GitHub Community Support diff --git a/settings.example.json b/settings.example.json index c76ec09f..ec11abd1 100644 --- a/settings.example.json +++ b/settings.example.json @@ -143,6 +143,9 @@ "skyline":{ "enabled": false, "//": "Enable skyline plugin" }, + "sponsorships":{ + "enabled": false, "//": "Enable sponsorships plugin" + }, "support":{ "enabled": false, "//": "Enable support plugin" }, diff --git a/source/plugins/README.md b/source/plugins/README.md index b28547e2..e34fa9b4 100644 --- a/source/plugins/README.md +++ b/source/plugins/README.md @@ -29,6 +29,7 @@ Plugins provide additional content and lets you customize rendered metrics. * [๐Ÿ““ Featured repositories `repositories`](/source/plugins/repositories/README.md) * [๐ŸŒ‡ GitHub Skyline `skyline`](/source/plugins/skyline/README.md) * [๐Ÿ’• GitHub Sponsors `sponsors`](/source/plugins/sponsors/README.md) + * [๐Ÿ’ GitHub Sponsorships `sponsorships`](/source/plugins/sponsorships/README.md) * [โœจ Stargazers `stargazers`](/source/plugins/stargazers/README.md) * [๐Ÿ’ซ Star lists `starlists`](/source/plugins/starlists/README.md) * [๐ŸŒŸ Recently starred repositories `stars`](/source/plugins/stars/README.md) diff --git a/source/plugins/sponsorships/README.md b/source/plugins/sponsorships/README.md index 3eff2a87..5194d117 100644 --- a/source/plugins/sponsorships/README.md +++ b/source/plugins/sponsorships/README.md @@ -1,12 +1,94 @@ + + + + + + + + + + + + + + + + + + +
โ† Back to plugins index

๐Ÿ’ GitHub Sponsorships

This plugin displays sponsorships funded through GitHub sponsors.

+
โš ๏ธ Disclaimer

This plugin is not affiliated, associated, authorized, endorsed by, or in any way officially connected with GitHub. +All product and company names are trademarksโ„ข or registeredยฎ trademarks of their respective holders.

+
Supported features
โ†’ Full specification
๐Ÿ“— Classic template
๐Ÿ‘ค Users ๐Ÿ‘ฅ Organizations
๐Ÿ”‘ read:user ๐Ÿ”‘ read:org read:packages (optional) repo (optional)
+ + +
## โžก๏ธ Available options + + + + + + + + + + + + + + + + + + + + + + + + + +
OptionDescription

plugin_sponsorships

Enable sponsorships plugin

+
โœจ On master/main
+type: boolean +
+default: no

plugin_sponsorships_sections

Displayed sections

+
    +
  • amount: display total amount sponsored
  • +
  • sponsorships: display GitHub sponsorships
  • +
+
โœจ On master/main
+type: array +(comma-separated) +
+default: amount, sponsorships
+allowed values:
  • amount
  • sponsorships

plugin_sponsorships_size

Profile picture display size

+
โœจ On master/main
+type: number +(8 โ‰ค +๐‘ฅ +โ‰ค 64) +
+default: 24
## โ„น๏ธ Examples workflows +```yaml +name: ๐Ÿ’ GitHub sponsorships +uses: lowlighter/metrics@latest +with: + filename: metrics.plugin.sponsorships.svg + token: ${{ secrets.METRICS_TOKEN }} + base: "" + plugin_sponsorships: yes + +``` diff --git a/source/templates/classic/README.md b/source/templates/classic/README.md index 1b07964c..23509ab1 100644 --- a/source/templates/classic/README.md +++ b/source/templates/classic/README.md @@ -7,7 +7,7 @@ This is also the default template.

Supported features
โ†’ Full specification - ๐Ÿ† ๐Ÿ“ฐ ๐ŸŒธ ๐Ÿ“† โ™ โ™Ÿ๏ธ ๐Ÿฅ  ๐Ÿ’‰ ๐Ÿ’ฉ ๐Ÿ“ธ ๐Ÿฆ‘ ๐Ÿ’น ๐Ÿ’ฌ ๐ŸŽŸ๏ธ ๐ŸŽซ ๐Ÿ’ก ๐Ÿ™‹ ๐Ÿ“… ๐Ÿˆท๏ธ ๐Ÿ—ณ๏ธ ๐Ÿ‘จโ€๐Ÿ’ป ๐ŸŽผ ๐ŸŽฉ โฑ๏ธ ๐Ÿง‘โ€๐Ÿคโ€๐Ÿง‘ โœ’๏ธ ๐Ÿ—‚๏ธ ๐ŸŽญ ๐Ÿ““ ๐Ÿ—ผ ๐ŸŒ‡ ๐Ÿ’• ๐Ÿ—จ๏ธ โœจ ๐Ÿ’ซ ๐ŸŒŸ ๐Ÿ’ญ ๐Ÿ“Œ ๐Ÿงฎ ๐Ÿค โฐ + ๐Ÿ† ๐Ÿ“ฐ ๐ŸŒธ ๐Ÿ“† โ™ โ™Ÿ๏ธ ๐Ÿฅ  ๐Ÿ’‰ ๐Ÿ’ฉ ๐Ÿ“ธ ๐Ÿฆ‘ ๐Ÿ’น ๐Ÿ’ฌ ๐ŸŽŸ๏ธ ๐ŸŽซ ๐Ÿ’ก ๐Ÿ™‹ ๐Ÿ“… ๐Ÿˆท๏ธ ๐Ÿ—ณ๏ธ ๐Ÿ‘จโ€๐Ÿ’ป ๐ŸŽผ ๐ŸŽฉ โฑ๏ธ ๐Ÿง‘โ€๐Ÿคโ€๐Ÿง‘ โœ’๏ธ ๐Ÿ—‚๏ธ ๐ŸŽญ ๐Ÿ““ ๐Ÿ—ผ ๐ŸŒ‡ ๐Ÿ’• ๐Ÿ’ ๐Ÿ—จ๏ธ โœจ ๐Ÿ’ซ ๐ŸŒŸ ๐Ÿ’ญ ๐Ÿ“Œ ๐Ÿงฎ ๐Ÿค โฐ ๐Ÿ‘ค Users ๐Ÿ‘ฅ Organizations diff --git a/tests/cases/sponsorships.plugin.yml b/tests/cases/sponsorships.plugin.yml new file mode 100644 index 00000000..5dc5ff73 --- /dev/null +++ b/tests/cases/sponsorships.plugin.yml @@ -0,0 +1,7 @@ +- name: ๐Ÿ’ GitHub Sponsorships - ๐Ÿ’ GitHub sponsorships + uses: lowlighter/metrics@latest + with: + token: MOCKED_TOKEN + plugin_sponsorships: 'yes' + use_mocked_data: 'yes' + verify: 'yes'