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 # Defaults to "token" owner user: description: GitHub username type: string default: "" # GitHub repository # Compute metrics for a repository instead ("user" being the repository owner) # Check https://github.com/lowlighter/metrics/blob/master/source/templates/repository/README.md for more informations repo: description: GitHub repository type: string default: "" # Set to "${{ github.token }}" or "${{ secrets.GITHUB_TOKEN }}" # GITHUB_TOKEN is a special auto-generated token restricted to current repository, which is used to push files in it committer_token: description: GitHub Token used to commit metrics type: token default: ${{ github.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 # Commit message # Use "${filename}" to display filename committer_message: description: Commit message type: string default: Update ${filename} - [Skip GitHub Action] # Instead of saving metrics to a repository, it's possible to save them to a gist to avoid "commits pollution" # Gist must be created prior and you must pass its identifier in the following option # Set "gist" in "output_action" to use this option committer_gist: description: Gist used to store metrics type: string default: "" # Rendered metrics output path, relative to repository's root filename: description: Rendered metrics output path type: string default: github-metrics.svg # Rendered markdown output path (when using a markdown template) # It can be either a local path or a link (e.g. raw.githubusercontent.com) markdown: description: Rendered markdown output path type: string default: TEMPLATE.md # Rendered markdown file cache (when using a markdown template) markdown_cache: description: Rendered markdown file cache type: string default: .cache # Output action output_action: description: Output action type: string default: commit values: - none # Only generate file in "/metrics_renders" - commit # Commit output to "committer_branch" - pull-request # Commit output to a new branch and open a pull request to "committer_branch" - pull-request-merge # Same as "pull-request" and additionaly merge pull request - pull-request-squash # Same as "pull-request" and additionaly squash and merge pull request - pull-request-rebase # Same as "pull-request" and additionaly rebase and merge pull request - gist # Save output to "committer_gist" # 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 - /(?[-a-z0-9]+)[/](?[-a-z0-9]+)@(?[-a-z0-9]+):(?