Skip to content

A GitHub Action that generates a HTML chart of the repository or organization contributors and places it in your README.

License

Notifications You must be signed in to change notification settings

Salgado2004/contributors-chart-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Contributors README Chart Generator

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

Example 1

Support

runner support
windows-latest
ubuntu-latest
macos-latest

Usage

  1. 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.

  1. 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 }}
  1. (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

License

The scripts and documentation in this project are released under the MIT License

Example 2


© Salgado2004

About

A GitHub Action that generates a HTML chart of the repository or organization contributors and places it in your README.

Topics

Resources

License

Stars

Watchers

Forks