forked from lowlighter/metrics
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
225 lines (192 loc) · 7.42 KB
/
action.yml
File metadata and controls
225 lines (192 loc) · 7.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
# Action
name: GitHub metrics as SVG image
author: lowlighter
description: Generate an user's GitHub metrics as SVG image format to embed somewhere else
branding:
icon: user-check
color: gray-dark
runs:
using: docker
image: Dockerfile
# Inputs
inputs:
# Your personal token
# Depending on your configurations, the following rights are needed :
# - (none) if you're using a "commiter_token"
# - "public_repo" if you're using this token to commit and push your metrics
# - "repo" for plugins like traffic or to include your private repositories metrics
token:
description: GitHub Personal Token
required: true
# To avoid this action's commits to be counted in your stats, you can specify a bot token
# You must first grant push access on your personal repository to the bot account so it'll be able to push metrics
committer_token:
description: If provided, use this token for commits
default: ""
# User to compute metrics
# Defaults to the owner of "token"
user:
description: GitHub username
default: ""
# File or path to the generated metrics, relative to your repositories root
filename:
description: Name of SVG image output
default: github-metrics.svg
# Optimize SVG image with SVGO, to minify, remove useless attributes and spaces
# Some templates based on white-spaces will auto-disable this option when used
optimize:
description: Optimize SVG image
default: yes
# The number of repositories to use to compute metrics
# A high number increase your metrics accuracy, but may consume additional requests with plugins which use the REST API
repositories:
description: Number of repositories to use to compute metrics
default: 100
# The name of the template to use
# See https://github.com/lowlighter/metrics/tree/master/src/templates for supported templates
template:
description: Template to use
default: classic
# Template base content, which are all enabled by default
# Pass a string of comma-separated values
# To disable everything (like if you want to use a plugin as standalone), pass an empty string as parameters
# Supported values are :
# - "header" (name, commits calendar, ...)
# - "activity" (commits, issues/pull requests opened, ...)
# - "community" (following, stars, sponsors, ...)
# - "repositories" (license, stars, forks, ...)
# - "metadata" (svg generation metadata)
base:
description: Base content to include in metrics
default: "header, activity, community, repositories, metadata"
# Google PageSpeed plugin
# Enable it to compute the performance for the website attached to "user"
plugin_pagespeed:
description: Enable Google PageSpeed metrics for account attached website
default: no
# When PageSpeed plugin is enabled, it is advised to generate a token to avoid the rate-limiter
# See https://developers.google.com/speed/docs/insights/v5/get-started for more informations
plugin_pagespeed_token:
description: Google Pagespeed Personal Token
default: ""
# Lines of code plugin
# It'll retrieve your contributors stats and compute added/removed lines for each of your repositories
plugin_lines:
description: Enable lines of code metrics
default: no
# Traffic plugin
# Count views on your repositories
# "token" must have "repo" permission
plugin_traffic:
description: Enable repositories traffic metrics
default: no
# Coding habits plugin
# It'll search in your recent activity what've recently did, like if you're using spaces or tabs as indents, etc.
plugin_habits:
description: Enable coding habits metrics
default: no
# Number of activity events to base habits on
# Maximum number of events is capped to 100
plugin_habits_from:
description: Number of activity events to base habits on
default: 100
# Languages plugins
# Compute the coding languages the most used on your repositories
plugin_languages:
description: Enable most used languages metrics
default: no
# Follow-up plugin
# Display the number and the ratio of opened/closed issues and opened/merged pull requests
plugin_followup:
description: Enable owned repositories issues and pull requests metrics
default: no
# Music plugin
# Display tracks you recently listened to or your favorite tracks
plugin_music:
description: Enable music
default: no
# Music provider
# This is required in "recent" mode
# This is optional in "playlist" mode, in this case it will be deduced from "plugin_music_playlist" url
# Supported values are :
# - "apple" for Apple Music
# - "spotify" for Spotify
plugin_music_provider:
description: Name of the music provider you're using
default: ""
# Music personal token
# This may be required depending on the music provider and the mode you use
# - "apple" : not required
# - "spotify" : required for "recent" mode, format is "client_id, client_secret, refresh_token"
plugin_music_token:
description: Music provider personal token
default: ""
# Music plugin mode
# Supported values are :
# - "playlist" : display tracks from a playlist randomly
# - "recent" : display recently played tracks
plugin_music_mode:
description: Use "recent" to display recently played music and "playlist" to display tracks randomly from a given playlist (*required if music plugin is enabled)
default: ""
# Music playlist
# The embed playlist url (the one used for music player iframe)
# Will default mode to "playlist" when set
plugin_music_playlist:
description: Embed playlist url
default: ""
# Tracks to display for music plugin
plugin_music_limit:
description: Number of tracks to display
default: 4
# Self-skip plugin
# If you're using your personnal account for commits, this will substract all of your commits flagged with [Skip GitHub Action]
plugin_selfskip:
description: Skip commits flagged with [Skip GitHub Action] from commits count
default: no
# Posts plugin
# Display recent posts from an external source
plugin_posts:
description: Enable recent posts display
default: no
# Posts source
# This is required when "plugin_posts" is enabled
# Supported values are :
# - "dev.to" for dev.to
plugin_posts_source:
description: Posts source
default: ""
# Posts limits
# Set number of posts to display
plugin_posts_limit:
description: Posts limit
default: 4
# Isometric calendar plugin
# Display an isometric view of your commits calendar, along with a few stats like current streak and average commits per day
plugin_isocalendar:
description: Display an isometric view of your commits calendar, along with a few additional stats
default: no
# Gists plugins
# Display gists metrics
plugin_gists:
description: Display gists metrics
default: no
# Enable debug mode
# Be sure to put all secrets in your repository secrets before to avoid any leaks !
debug:
description: Enable debug logs
default: no
# Verify SVG after generation
# It tests whether SVG can be correctly parsed (used for testing)
verify:
description: Verify SVG after genaration
default: no
# Enable dry-run mode
# Generate image but does not push it (used for testing)
dryrun:
description: Enable dry-run
default: no
# When enabled, any plugins errors will throw
# By default, it will still generates metrics but renders an error message
plugins_errors_fatal:
description: Die on plugins errors
default: no