| â Back to plugins index | |
đ§ą Core | |
|---|---|
Global configuration and options | |
| Supported features â Full specification |
|
đ¤ Users đĨ Organizations đ Repositories |
|
đī¸ token đī¸ committer_token |
|
|
|
|
| Option | Description |
|
GitHub Personal Access Token No scopes are required by default, though some plugins and features may require additional scopes. When using a configuration which does not requires a GitHub PAT, it is possible to pass |
| âī¸ Required đ Token type: token
|
|
|
GitHub username Defaults to |
| â¯ī¸ Cannot be preset type: string
|
|
|
GitHub repository This option is only revelant for repositories templates |
| â¯ī¸ Cannot be preset type: string
|
|
|
GitHub Token used to commit metrics Leave this to
|
| đ Token type: token
default: ${{ github.token }} |
|
|
Target branch Defaults to current repository default branch |
type: string
|
|
|
Commit message Use |
type: string
default: Update ${filename} - [Skip GitHub Action] |
|
|
Gist id Specify an existing gist id (can be retrieved from its URL) when using |
| â¯ī¸ Cannot be preset type: string
|
|
|
Output path When using an asterisk ( |
type: string
default: github-metrics.* |
|
|
Markdown template path It can be either a local path or a full link (e.g. https://raw.githubusercontent.com) |
type: string
default: TEMPLATE.md |
|
|
Markdown file cache |
type: string
default: .cache |
|
|
Output action
|
type: string
default: commit allowed values:
|
|
|
Output condition
|
type: string
default: always allowed values:
|
|
|
Optimization features
Some templates may not support all options |
type: array
(comma-separated)
default: css, xml allowed values:
|
|
|
Community templates to setup See community templates guide for more informations |
đ Web instances must configure settings.json:
array
(comma-separated)
|
|
|
Template Community templates must be prefixed by at sign ( |
type: string
default: classic |
|
|
Query parameters Pass additional parameters to templates. This is mostly useful for custom templates.
|
type: json
default: â Click to expand |
|
|
Extra CSS Custom CSS that will be injected in used template. Useful to avoid creating a new template just to tweak some styling |
đ Web instances must configure settings.json:
string
|
|
|
Extra JavaScript Custom JavaScript that will be executed during puppeteer rendering. Useful to avoid creating a new template just to tweak some content. Note that is it executed within puppeteer context and not metrics context. It is run after transformations and optimizations, but just before resizing. |
đ Web instances must configure settings.json:
string
|
|
|
GitHub REST API endpoint Can be used to support GitHub enterprises server. Leave empty to use default endpoint. |
| âī¸ Global option type: string
|
|
|
GitHub GraphQL API endpoint Can be used to support GitHub enterprises server. Leave empty to use default endpoint. |
| âī¸ Global option type: string
|
|
|
Timezone for dates See list of supported timezone |
| âī¸ Global option type: string
|
|
|
Plugin order By default, templates use If some partials are omitted, they will be appended at the end with default ordering |
| âī¸ Global option type: array
(comma-separated)
|
|
|
Use twemojis Replace emojis by twemojis to have a consistent render across all platforms May increase filesize. |
| âī¸ Global option type: boolean
default: no |
|
|
Use GitHub custom emojis GitHub supports additional emojis which are not registered in Unicode standard (:octocat:, :shipit:, :trollface:, ...) See full list at https://api.github.com/emojis. This option has no effect when May increase filesize |
| âī¸ Global option type: boolean
default: yes |
|
|
Use GitHub octicons Octicons are open-sourced icons provided by GitHub. See full list at https://primer.style/octicons. To include an octicon, use the following syntax: May increase filesize |
| âī¸ Global option type: boolean
default: no |
|
|
Display width (for image output formats)
|
| âī¸ Global option type: string
default: regular allowed values:
|
|
|
Use CSS animations |
| âī¸ Global option type: boolean
default: yes |
|
|
Base64-encoded images Enable this option to make self-contained output (i.e. with no external links) |
| âī¸ Global option type: boolean
default: yes |
|
|
Output padding Although metrics try to auto-guess resulting height, rendering is still dependent on OS and browser settings. It can result in cropped or oversized outputs. This settings let you manually adjust padding with the following format:
Each value need to respect the following format:
Percentage are relative to computed dimensions |
type: string
default: 0, 8 + 11% |
|
|
Output format
|
type: string
default: auto allowed values:
|
|
|
Configuration presets |
| â¯ī¸ Cannot be preset đ Web instances must configure settings.json:
array
(comma-separated)
|
|
|
Retries in case of failures (for rendering) |
type: number
(1 â¤
đĨ
⤠10)
default: 3 |
|
|
Delay between each retry (in seconds, for rendering) |
type: number
(0 â¤
đĨ
⤠3600)
default: 300 |
|
|
Retries in case of failures (for output action) |
type: number
(1 â¤
đĨ
⤠10)
default: 5 |
|
|
Delay between each retry (in seconds, for output action) |
type: number
(0 â¤
đĨ
⤠3600)
default: 120 |
|
|
Clean previous workflows jobs This can be used to clean up Action tabs from previous workflows runs. Use
|
| â¯ī¸ Cannot be preset type: array
(comma-separated)
allowed values:
|
|
|
Job delay This can be used to avoid triggering GitHub abuse mechanics on large workflows |
type: number
(0 â¤
đĨ
⤠3600)
default: 0 |
|
|
Minimum GitHub REST API requests quota required to run Action will cancel itself without any errors if requirements are not met This option has no effect when |
type: number
(0 â¤
đĨ
⤠5000)
default: 200 |
|
|
Minimum GitHub GraphQL API requests quota required to run Action will cancel itself without any errors if requirements are not met This option has no effect when |
type: number
(0 â¤
đĨ
⤠5000)
default: 200 |
|
|
Minimum GitHub Search API requests quota required to run Action will cancel itself without any errors if requirements are not met This option has no effect when |
type: number
(0 â¤
đĨ
⤠30)
default: 0 |
|
|
Notice about new releases of metrics |
type: boolean
default: yes |
|
|
Use pre-built docker image from GitHub container registry It allows to save build time and make job significantly faster, and there is almost no reason to disable this settings. This option has no effects on forks (images will always be rebuilt from Dockerfile) |
| â¯ī¸ Cannot be preset đ§ For development type: boolean
default: yes |
|
|
Fatal plugin errors When enabled, the job will fail in case of plugin errors, else it will be handled gracefully in output with an error message |
| â¯ī¸ Cannot be preset đ§ For development type: boolean
default: no |
|
|
Debug mode This setting is automatically enable if a job fail (useful with |
| â¯ī¸ Cannot be preset đ§ For development type: boolean
default: no |
|
|
SVG validity check |
| â¯ī¸ Cannot be preset đ§ For development đ Web instances must configure settings.json:
boolean
default: no |
|
|
Debug flags
|
| â¯ī¸ Cannot be preset đ§ For development type: array
(space-separated)
allowed values:
|
|
|
Print output in console |
| â¯ī¸ Cannot be preset đ§ For development type: boolean
default: no |
|
|
Dry-run Contrary to |
| â¯ī¸ Cannot be preset đ§ For development type: boolean
default: no |
|
|
Experimental features No backward compatibility is guaranteed for these features |
| â¯ī¸ Cannot be preset đ§ For development type: array
(space-separated)
allowed values:
|
|
|
Use mocked data instead of live APIs |
| â¯ī¸ Cannot be preset đ§ For development type: boolean
default: no |