5.9 KiB
title, intro, versions, topics, contentType
| title | intro | versions | topics | contentType | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Profile contributions reference | Find information on what is visible on your contributions graph. |
|
|
reference |
What counts as a contribution
Contributions are only counted if they meet certain criteria. In some cases, we may need to rebuild your graph in order for contributions to appear.
On your profile page, the following actions always count as contributions:
- Creating a new repository
- Forking an existing repository
The following actions sometimes count as contributions:
- Opening an issue
- Proposing a pull request
- Submitting a pull request review
- Opening a discussion
- Answering a discussion
- Making a commit
For more information, see Contribution criteria for issues, pull requests and discussions and Contribution criteria for commits.
Contribution criteria for issues, pull requests and discussions
Issues, pull requests, and discussions will appear on your contribution graph if they were opened in a standalone repository, not a fork.
Additionally, {% data variables.product.company_short %} limits the number of these items when displaying the contribution graph. If you've reached the limit, the contribution graph may not display all of your contributions.
Contribution criteria for commits
Commits will appear on your contributions graph if they meet all of the following conditions:
- The email address used to make {% ifversion ghes %}or co-author {% endif %} the commits is associated with your account on {% data variables.product.prodname_dotcom %}.
- The commits were made in a standalone repository, not a fork.
- The commits were made in one of two branches:
- The repository's default branch
- The
gh-pagesbranch (for repositories with project sites). For more information on project sites, see AUTOTITLE
In addition, at least one of the following must be true:
- You are a collaborator on the repository or are a member of the organization that owns the repository.
- You have forked the repository.
- You have opened a pull request or issue in the repository.
Who can see your contributions and achievements
On {% ifversion fpt or ghec %}{% data variables.product.prodname_dotcom_the_website %}{% elsif ghes %}{% data variables.product.prodname_ghe_server %}{% endif %}, public contributions on your profile are visible {% ifversion fpt or ghec %}to anyone in the world who can access {% data variables.product.prodname_dotcom_the_website %}{% elsif ghes %}only to other users of {% data variables.location.product_location %}{% endif %}.
When you publicize private contributions, people without access to those private repositories will see the number of contributions you made each day. They will not see specific details.
{% ifversion ghec %}
{% data variables.enterprise.data_residency %}
Achievements are not available on subdomains of {% data variables.enterprise.data_residency_site %}, such as octocorp.ghe.com.
{% endif %}
Who receives contribution credit
{% ifversion ghes %}
To appear on your profile contributions graph, co-authored commits must meet the same criteria as commits with one author.
{% endif %}
When rebasing commits, the original authors of the commit and the person who rebased the commits, whether on the command line or on {% data variables.location.product_location %}, receive contribution credit.
{% ifversion ghec or fpt %}
If you merged multiple personal accounts, issues, pull requests, and discussions will not be attributed to the new account and will not appear on your contribution graph.
{% endif %}
How contribution event times are calculated
Timestamps are calculated differently for commits and pull requests:
- Commits use the time zone information in the commit timestamp. For more information, see AUTOTITLE.
- Pull requests and issues opened on {% data variables.product.github %} use your browser's time zone. Those opened via the API use the timestamp or time zone specified in the API call.
How GitHub uses the Git author date and commit date
In Git, the author date is when someone first creates a commit with git commit. The commit date is identical to the author date unless someone changes the commit date by using git commit --amend, a force push, a rebase, or other Git commands.
On your profile page, the author date is used to calculate when a commit was made. Whereas, in a repository, the commit date is used to calculate when a commit was made in the repository.
Most often, the author date and commit date are the same but you may notice that your commit sequence is out of order if the commit history is changed. For more information, see AUTOTITLE.
Sharing contributions from {% data variables.product.prodname_ghe_server %}
When you share contributions, your {% data variables.product.prodname_dotcom_the_website %} or {% data variables.enterprise.data_residency_site %} profile shows {% data variables.product.prodname_ghe_server %} contribution counts from the past 90 days. {% data reusables.github-connect.sync-frequency %} Contribution counts from {% data variables.product.prodname_ghe_server %} are considered private contributions. The commit details will only show the contribution counts and that these contributions were made on {% data variables.product.prodname_ghe_server %}.