From b04382243e01a0f9db3e7bffaf22a80372e05bcf Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
<41898282+github-actions[bot]@users.noreply.github.com>
Date: Fri, 30 Jul 2021 16:36:16 +0000
Subject: [PATCH 1/2] Auto-regenerate files
---
README.md | 2 ++
1 file changed, 2 insertions(+)
diff --git a/README.md b/README.md
index d4d414dd..5dc7aeb8 100644
--- a/README.md
+++ b/README.md
@@ -5,6 +5,8 @@
Generate your metrics that you can embed everywhere, including your GitHub profile readme! It works for both user and organization accounts, and even for repositories!
+> *⚠️ This is the documentation of **v3.12-beta** (`@master` branch) which includes [unreleased features](https://github.com/lowlighter/metrics/compare/latest...master), see documentation of [**v3.11** (`@latest` branch) here](https://github.com/lowlighter/metrics/blob/latest/README.md).*
+
From 7b621df27fa0b549b0d4d0d54558fc5eb7a01db3 Mon Sep 17 00:00:00 2001
From: Simon Lecoq <22963968+lowlighter@users.noreply.github.com>
Date: Fri, 30 Jul 2021 18:53:09 +0200
Subject: [PATCH 2/2] Support plugin: fix crash because of outdated selector
(#428)
---
source/plugins/support/index.mjs | 2 +-
source/plugins/support/tests.yml | 11 +++++------
2 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/source/plugins/support/index.mjs b/source/plugins/support/index.mjs
index 2427e45a..0e793c2b 100644
--- a/source/plugins/support/index.mjs
+++ b/source/plugins/support/index.mjs
@@ -62,7 +62,7 @@ export default async function({login, q, imports, data, account}, {enabled = fal
{
await page.goto(`https://github.community/u/${login}/badges`)
const frame = page.mainFrame()
- await frame.waitForSelector(".user-badges-list")
+ await frame.waitForSelector(".badge-group-list")
const badges = await frame.evaluate(() => ({
uniques:[...document.querySelectorAll(".badge-card .badge-link")].map(el => el.innerText),
multiples:[...document.querySelectorAll(".grant-count")].map(el => Number(el.innerText)),
diff --git a/source/plugins/support/tests.yml b/source/plugins/support/tests.yml
index 1158842b..609c062d 100644
--- a/source/plugins/support/tests.yml
+++ b/source/plugins/support/tests.yml
@@ -1,6 +1,5 @@
-# To comment out once #421 is solved
-#- name: Support plugin (default)
-# uses: lowlighter/metrics@latest
-# with:
-# token: MOCKED_TOKEN
-# plugin_support: yes
+- name: Support plugin (default)
+ uses: lowlighter/metrics@latest
+ with:
+ token: MOCKED_TOKEN
+ plugin_support: yes