forked from lowlighter/metrics
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmetadata.yml
More file actions
175 lines (152 loc) · 5.07 KB
/
metadata.yml
File metadata and controls
175 lines (152 loc) · 5.07 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
name: "🧱 Core"
cost: N/A
categorie: core
supports:
- user
- organization
- repository
inputs:
# User account personal token
# No additional scopes are needed unless you want to include private repositories metrics
# Some plugins may also require additional scopes
# ────────────────────────────────────────────────────────────────
# If you're only using plugins which don't really require a GitHub token, you may pass "NOT_NEEDED" as value
token:
description: GitHub Personal Token
type: token
required: true
# GitHub username
user:
description: GitHub username
type: string
default: "" # Defaults to "token" owner
# Set to "${{ secrets.GITHUB_TOKEN }}"
committer_token:
description: GitHub Token used to commit metrics
type: token
default: "" # Defaults to "token"
# Branch used to commit rendered metrics
committer_branch:
description: Branch used to commit rendered metrics
type: string
default: "" # Defaults to your repository default branch
# Rendered metrics output path, relative to repository's root
filename:
description: Rendered metrics output path
type: string
default: github-metrics.svg
# Optimize SVG image to reduce its filesize
# Some templates may not support this option
optimize:
description: SVG optimization
type: boolean
default: yes
# Setup additional templates from remote repositories
setup_community_templates:
description: Additional community templates to setup
type: array
format:
- comma-separated
- /(?<user>[-a-z0-9]+)[/](?<repo>[-a-z0-9]+)@(?<branch>[-a-z0-9]+):(?<template>[-a-z0-9]+)/
default: ""
# Template to use
# To use community template, prefix its name with "@"
template:
description: Template to use
type: string
default: classic
# Additional query parameters (JSON string)
# Some templates may require additional parameters which you can specify here
# Do not use this option to pass plugins parameters as they'll be overwritten by the other options
query:
description: Additional query parameters
type: json
default: "{}"
# Timezone used by metrics
# See https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
config_timezone:
description: Timezone used
type: string
default: ""
# Specify in which order metrics content will be displayed
# If you omit some partials, they'll be appended at the end in default order
# See "partials/_.json" of each template for a list of supported partials
config_order:
description: Configure content order
type: array
format: comma-separated
default: ""
example: base.header, base.repositories
# Use twemojis instead of emojis
# May increase filesize but emojis will be rendered the same across all platforms
config_twemoji:
description: Use twemojis instead of emojis
type: boolean
default: no
# Enable SVG CSS animations
config_animations:
description: SVG CSS animations
type: boolean
default: yes
# Configure padding for output image (percentage value)
# It can be used to add padding to generated metrics if rendering is cropped or has too much empty space
# Specify one value (for both width and height) or two values (one for width and one for height)
config_padding:
description: Image padding
type: array
format: comma-separated
default: 6%, 15%
# Metrics output format
config_output:
description: Output image format
type: string
default: svg
values:
- svg
- png # Does not support animations
- jpeg # Does not support animations and transparency
# ====================================================================================
# Options below are mostly used for testing
# Throw on plugins errors
# If disabled, metrics will handle errors gracefully with a message in rendered metrics
plugins_errors_fatal:
description: Die on plugins errors
type: boolean
default: no
# Debug mode
# Note that this will automatically be enabled if job fails
debug:
description: Debug logs
type: boolean
default: no
# Ensure SVG can be correctly parsed after generation
verify:
description: Verify SVG
type: boolean
default: no
# Debug flags
debug_flags:
description: Debug flags
type: array
format: space-separated
default: ""
values:
- --cakeday
- --hireable
- --halloween
# Dry-run mode (perform generation without pushing it)
dryrun:
description: Enable dry-run
type: boolean
default: no
# Use mocked data to bypass external APIs
use_mocked_data:
description: Use mocked data instead of live APIs
type: boolean
default: no
# Use a pre-built image from GitHub registry (experimental)
# See https://github.com/users/lowlighter/packages/container/package/metrics for more information
use_prebuilt_image:
description: Use pre-built image from GitHub registry
type: string
default: ""