From b06d9ff898f2b8aaeed0a953ac7fec2fd2ea4604 Mon Sep 17 00:00:00 2001 From: Simon Lecoq <22963968+lowlighter@users.noreply.github.com> Date: Tue, 5 Jan 2021 12:39:04 +0100 Subject: [PATCH] Add Stargazers plugin (#37) --- .github/pull_request_template.md | 25 ++++++++++- README.md | 43 +++++++++++++++++- action.yml | 6 +++ settings.example.json | 5 ++- source/app/action/index.mjs | 1 + source/app/mocks.mjs | 20 +++++++++ source/app/web/statics/app.js | 1 + source/app/web/statics/index.html | 16 ++++--- source/app/web/statics/style.css | 4 +- source/plugins/stargazers/index.mjs | 65 +++++++++++++++++++++++++++ source/queries/stargazers.graphql | 10 +++++ source/templates/classic/image.svg | 48 ++++++++++++++++++++ source/templates/classic/style.css | 12 +++++ source/templates/repository/image.svg | 48 ++++++++++++++++++++ tests/metrics.test.js | 3 ++ 15 files changed, 295 insertions(+), 12 deletions(-) create mode 100644 source/plugins/stargazers/index.mjs create mode 100644 source/queries/stargazers.graphql diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index d7e1989a..6fdf9bb1 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -6,7 +6,30 @@ --> **Pull request description** - + **Additional context and screenshots** diff --git a/README.md b/README.md index 651bb863..82f3ce7c 100644 --- a/README.md +++ b/README.md @@ -147,20 +147,32 @@ But there's more with [plugins](https://github.com/lowlighter/metrics/tree/maste