Skip to content

Commit 3c4730b

Browse files
committedJan 14, 2022
ci: auto-regenerate files [skip ci]
1 parent 6a17bcb commit 3c4730b

File tree

5 files changed

+143
-5
lines changed

5 files changed

+143
-5
lines changed
 

‎source/plugins/base/README.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,13 @@ Legend for option icons:
4848
#### ℹ️ Examples workflows
4949

5050
<!--examples-->
51-
51+
```yaml
52+
name: Default metrics
53+
uses: lowlighter/metrics@latest
54+
with:
55+
filename: metrics.base.svg
56+
token: ${{ secrets.METRICS_TOKEN }}
57+
base: header, activity, community, repositories, metadata
58+
59+
```
5260
<!--/examples-->

‎source/plugins/rss/README.md

+12-1
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,16 @@ Legend for option icons:
2929
#### ℹ️ Examples workflows
3030

3131
<!--examples-->
32-
32+
```yaml
33+
name: News from hackernews
34+
uses: lowlighter/metrics@latest
35+
with:
36+
filename: metrics.plugin.rss.svg
37+
token: NOT_NEEDED
38+
base: ''
39+
plugin_rss: 'yes'
40+
plugin_rss_source: https://news.ycombinator.com/rss
41+
plugin_rss_limit: 4
42+
43+
```
3344
<!--/examples-->

‎tests/plugins/base.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
[]
1+
- name: 🗃️ Base content - Default metrics
2+
uses: lowlighter/metrics@latest
3+
with:
4+
token: MOCKED_TOKEN
5+
base: header, activity, community, repositories, metadata

‎tests/plugins/core.yml

+110-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,110 @@
1-
[]
1+
- name: 🧱 Core - 📗 Classic template
2+
uses: lowlighter/metrics@latest
3+
with:
4+
token: MOCKED_TOKEN
5+
base: header, repositories
6+
plugin_lines: 'yes'
7+
- name: 🧱 Core - 📘 Repository template
8+
uses: lowlighter/metrics@latest
9+
with:
10+
template: repository
11+
token: MOCKED_TOKEN
12+
user: lowlighter
13+
repo: metrics
14+
plugin_lines: 'yes'
15+
plugin_followup: 'yes'
16+
plugin_projects: 'yes'
17+
plugin_projects_repositories: lowlighter/metrics/projects/1
18+
- name: 🧱 Core - 📙 Terminal template
19+
uses: lowlighter/metrics@latest
20+
with:
21+
template: terminal
22+
token: MOCKED_TOKEN
23+
base: header, metadata
24+
- name: 🧱 Core - 📒 Markdown template
25+
uses: lowlighter/metrics@latest
26+
with:
27+
template: markdown
28+
markdown: metrics.markdown.template.md
29+
config_output: markdown
30+
token: MOCKED_TOKEN
31+
- name: 🧱 Core - 📒 Markdown template (with plugins)
32+
uses: lowlighter/metrics@latest
33+
with:
34+
template: markdown
35+
markdown: >-
36+
https://raw.githubusercontent.com/lowlighter/metrics/master/source/templates/markdown/example.md
37+
config_output: markdown
38+
plugin_activity: 'yes'
39+
plugin_activity_limit: 7
40+
plugin_activity_days: 0
41+
plugin_activity_filter: issue, pr, release, fork, review, ref/create
42+
plugin_posts: 'yes'
43+
plugin_posts_source: dev.to
44+
plugin_posts_descriptions: 'yes'
45+
plugin_posts_covers: 'yes'
46+
plugin_posts_limit: 2
47+
plugin_rss: 'yes'
48+
plugin_rss_source: https://news.ycombinator.com/rss
49+
plugin_rss_limit: 4
50+
plugin_tweets: 'yes'
51+
plugin_tweets_token: MOCKED_TOKEN
52+
plugin_tweets_user: github
53+
plugin_tweets_attachments: 'yes'
54+
plugin_tweets_limit: 2
55+
plugin_topics: 'yes'
56+
plugin_topics_limit: 24
57+
plugin_isocalendar: 'yes'
58+
plugin_languages: 'yes'
59+
token: MOCKED_TOKEN
60+
- name: 🧱 Core - 📒 Markdown template (pdf output)
61+
uses: lowlighter/metrics@latest
62+
with:
63+
template: markdown
64+
markdown: >-
65+
https://raw.githubusercontent.com/lowlighter/metrics/master/source/templates/markdown/example.pdf.md
66+
config_output: markdown-pdf
67+
plugin_rss: 'yes'
68+
plugin_rss_source: https://news.ycombinator.com/rss
69+
plugin_rss_limit: 4
70+
plugin_isocalendar: 'yes'
71+
config_twemoji: 'yes'
72+
config_padding: 5%
73+
token: MOCKED_TOKEN
74+
- name: 🧱 Core - 📕 Community templates
75+
uses: lowlighter/metrics@latest
76+
with:
77+
token: MOCKED_TOKEN
78+
template: '@classic'
79+
setup_community_templates: lowlighter/metrics@master:classic
80+
modes:
81+
- action
82+
- name: 🧱 Core - Plugin error example
83+
uses: lowlighter/metrics@latest
84+
with:
85+
token: MOCKED_TOKEN
86+
plugin_projects: 'yes'
87+
skip: true
88+
- name: 🧱 Core - Organization
89+
uses: lowlighter/metrics@latest
90+
with:
91+
user: github
92+
token: MOCKED_TOKEN
93+
base: header, repositories
94+
- name: 🧱 Core - Large display
95+
uses: lowlighter/metrics@latest
96+
with:
97+
token: MOCKED_TOKEN
98+
config_display: large
99+
- name: 🧱 Core - JSON metrics
100+
if: ${{ success() || failure() }}
101+
uses: lowlighter/metrics@latest
102+
with:
103+
token: MOCKED_TOKEN
104+
config_output: json
105+
- name: 🧱 Core - PNG metrics
106+
if: ${{ success() || failure() }}
107+
uses: lowlighter/metrics@latest
108+
with:
109+
token: MOCKED_TOKEN
110+
config_output: png

‎tests/plugins/rss.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
[]
1+
- name: 🗼 Rss feed - News from hackernews
2+
uses: lowlighter/metrics@latest
3+
with:
4+
token: NOT_NEEDED
5+
plugin_rss: 'yes'
6+
plugin_rss_source: https://news.ycombinator.com/rss
7+
plugin_rss_limit: 4

0 commit comments

Comments
 (0)
Failed to load comments.