A GitHub Action that generates a HTML chart of the repository or organization contributors and places it in your README.
Note
This is still a Beta version of the Action, currently in preview. If you have suggestions please refer to contributing
runner | support |
---|---|
windows-latest | ✅ |
ubuntu-latest | |
macos-latest |
- In the desired repository, update the README markdown with these two (2) comments:
<!-- contributors -->
<!-- /contributors -->
Important
The comments are used to mark where the action should place the generated chart. Without them, the action will fail.
- Create the GitHub Actions workflow. You need to provide a
GitHub Token
with write permissions
jobs:
generate-chart:
runs-on: windows-latest
name: Create or update contributors chart
permissions:
contents: write
steps:
- uses: salgado2004/contributors-chart-action@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
- (Optional) You can provide the following optional inputs for your workflow:
-
contributions
["repo", "org"]Allows you to choose if you want to gather the contributors for the current repository or the organization
Default: "repo"
Warning
If you choose "org", the action needs to run in a repository that belongs to an organization.
Also: It only shows public members of the organization.
-
include-bots
[true, false]Allows you to choose whether you want the action to include bot contributors (dependabot, github-actions bot, etc.) or not.
Default: true
-
path
[string]Allows you to specify an alternate path to look for a README file.
Example: "profile"
Will search the README under the folder "profile/"
Default: ""
-
limit
[number]Allows you to set the maximum number of contributors you want to display in the chart.
Default: 24
The scripts and documentation in this project are released under the MIT License
© Salgado2004