6.4 KiB
| ← Back to plugins index | |
🏅 Repository contributors | |
|---|---|
This plugin display repositories contributors from a commit range along with additional stats. | |
| ⚠️ Disclaimer | 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) |
|
|
|
|
➡️ Available options
| 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_ignoredtype: 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 |
🗂️ Setting up contribution categories
Pass a JSON object to plugin_contributors_categories with categories names as keys and arrays of fileglobs as values to configure contributions categories.
Each modified file by a contributor matching a fileglob 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": ["*"]
}
ℹ️ Examples workflows
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"]
}