- Smarter placeholders - Merged placeholders with real templates to avoid maintening duplicates - Moved style/js away from index.html and refactor - Svg size is now computed again from templates - Base metrics is now contained in special plugin "base", which can be disabled part by part if you just want to include a plugin instead - Reformatted a bit terminal template - Test now look templates directory
64 lines
2.1 KiB
YAML
64 lines
2.1 KiB
YAML
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
|
|
inputs:
|
|
token:
|
|
description: GitHub Personal Token
|
|
required: true
|
|
committer_token:
|
|
description: If provided, this token will be used instead of "token" for commit operations (you can specify a bot account to avoid virtually increasing your stats due to this action commits)
|
|
default: ""
|
|
user:
|
|
description: GitHub username
|
|
default: ""
|
|
filename:
|
|
description: Name of SVG image output
|
|
default: github-metrics.svg
|
|
template:
|
|
description: Template to use
|
|
default: classic
|
|
optimize:
|
|
description: Optimize SVG image
|
|
default: yes
|
|
repositories:
|
|
description: Number of repositories to use to compute metrics
|
|
default: 100
|
|
base:
|
|
description: Base content to include in metrics (list of comma-separated sections name as string)
|
|
default: "header, activity, community, repositories, metadata"
|
|
plugin_pagespeed:
|
|
description: Enable Google PageSpeed metrics for account attached website
|
|
default: no
|
|
pagespeed_token:
|
|
description: Google Pagespeed Personal Token (*see https://developers.google.com/speed/docs/insights/v5/get-started for more informations)
|
|
default: ""
|
|
plugin_lines:
|
|
description: Enable lines of code metrics
|
|
default: no
|
|
plugin_traffic:
|
|
description: Enable repositories traffic metrics (*provided GitHub token require full "repo" permissions)
|
|
default: no
|
|
plugin_habits:
|
|
description: Enable coding habits metrics
|
|
default: no
|
|
plugin_habits_from:
|
|
description: Number of activity events to base habits on (up to 100)
|
|
default: 100
|
|
plugin_selfskip:
|
|
description: Skip commits flagged with [Skip GitHub Action] from commits count
|
|
default: no
|
|
plugin_languages:
|
|
description: Enable most used languages metrics
|
|
default: no
|
|
plugin_followup:
|
|
description: Enable owned repositories issues and pull requests metrics
|
|
default: no
|
|
debug:
|
|
description: Enable debug logs
|
|
default: no
|
|
runs:
|
|
using: node12
|
|
main: action/dist/index.js |