← Back to plugins index | |
This plugin display repositories contributors from a commit range along with additional stats. | |
This plugin is not affiliated, associated, authorized, endorsed by, or in any way officially connected with GitHub. All product and company names are trademarks™ or registered® trademarks of their respective holders. | |
Supported features → Full specification |
📘 Repository template |
📓 Repositories |
|
🔑 (scopeless) read:org (optional) read:user (optional) read:packages (optional) repo (optional) |
|
Option | Description |
Enable contributors plugin |
|
type: boolean
default: no |
|
Base reference Can be a commit, tag, branch, etc. |
|
type: string
|
|
Head reference Can be a commit, tag, branch, etc. |
|
type: string
default: master |
|
Ignored users Can be used to ignore bots activity |
|
⏩ Inherits users_ignored type: array
(comma-separated)
|
|
Contributions count |
|
type: boolean
default: no |
|
Displayed sections
|
|
type: array
(comma-separated)
default: contributors allowed values:
|
|
Contribution categories This option requires |
|
🌐 Web instances must configure settings.json :
json
default: → Click to expand
|
Pass a JSON object to plugin_contributors_categories
with categories names as keys and arrays of file globs as values to configure contributions categories.
Each modified file by a contributor matching a file glob will add them in said category.
💡 File matching respect keys order
💡 Use
|
YAML multiline operator for better readability
*Example: *
- uses: lowlighter/metrics@latest
with:
plugin_contributors: yes
plugin_contributors_categories: |
{
"📚 Documentation": ["README.md", "docs/**"],
"💻 Code": ["source/**", "src/**"],
"#️⃣ Others": ["*"]
}
name: Contributors with contributions count
uses: lowlighter/metrics@latest
with:
filename: metrics.plugin.contributors.contributions.svg
token: ${{ secrets.METRICS_TOKEN }}
base: ""
template: repository
repo: metrics
plugin_contributors: yes
plugin_contributors_contributions: yes
name: Contributors by categories
uses: lowlighter/metrics@latest
with:
filename: metrics.plugin.contributors.categories.svg
token: ${{ secrets.METRICS_TOKEN }}
base: ""
template: repository
repo: metrics
plugin_contributors: yes
plugin_contributors_sections: categories
plugin_contributors_categories: |
{
"🧩 Plugins / 🖼️ templates":["source/plugins/**", "source/templates/**"],
"📚 Documentation":["README.md", "**/README.md", "**/metadata.yml"],
"💻 Code (other)":["source/**", "Dockerfile"]
}