Count Contributing Developers

This feature is supported in JFrog CLI version 2.60.0

The git count-contributors command allows JFrog users to easily determine the number of Git developers contributing to their code. The counts indicate the number of contributing developers to the default branch.

The command counts the contributing developers for all commits performed within a specified time range. The results are based on email addresses, thus giving you a specific number of unique developers.

We provide several options to obtain the developer count:

  • A single repository: Analyze a single Git repository by providing the repository name.

  • Across a project/group: Analyze multiple repositories organized under a project/group by providing the owner command option.

  • Across multiple Git servers: Analyze repositories across various Git servers by providing a YAML file as an input file with the required parameters outlined below.

This information can be helpful when purchasing an Advanced Security subscription, as the number of developers is often a key factor in pricing.

Supported Git providers:

  • GitHub

  • GitLab

  • Bitbucket

The CLI outputs may include an estimation of the contributing developers based on the input provided by the user. They may be based on third-party resources and databases and JFrog does not guarantee that the CLI outputs are accurate and/or complete. The CLI outputs are not legal advice and you are solely responsible for your use of it. CLI outputs are provided "as is" and any representation or warranty of or concerning any third-party technology is strictly between the user and the third-party owner or distributor of the third-party technology.

Usage

The git count-contributors command can be run from the JFrog CLI with the following syntax:

git count-contributors [command options]

Example Commands

Single Repository

git cc --scm-type=github --scm-api-url=https://api.github.com --token=<token> --owner=jfrog --months=4 --detailed-summary=false --repo-name=cli-core

Required Parameters:

  • --scm-type

  • --scm-api-url

  • --token

  • --repo-name

Group/Project

git cc --scm-type=gitlab --scm-api-url=https://git.vdoo.io --token=<token> --owner=vdoo --months=3 --detailed-summary

Required Parameters:

  • --scm-type

  • --scm-api-url

  • --token

  • --owner

Multiple Git Servers- YAML File

git-servers-list:
  - scm-type: bitbucket
    scm-api-url: "https://api.bitbucket.url"
    token: "token"
    owner: "owner"
    repositories:
      - "repo1"
      - "repo2"
  - scm-type: gitlab
    scm-api-url: "https://api.github.com"
    token: "token"
    owner: "owner"

Sample Output:

Last updated

© 2024 JFrog Ltd All Rights Reserved