我们经常发布文档更新,此页面的翻译可能仍在进行中。有关最新信息,请访问英文文档。如果此页面上的翻译有问题,请告诉我们
文章版本: Enterprise Server 2.16

此版本的 GitHub Enterprise 将停止服务 此版本的 GitHub Enterprise 已停止服务 2020-01-22. 即使针对重大安全问题,也不会发布补丁。 For better performance, improved security, and new features, upgrade to the latest version of GitHub Enterprise. For help with the upgrade, contact GitHub Enterprise support.

Why are my contributions not showing up on my profile?

Your profile contributions graph is a record of contributions you've made to GitHub Enterprise repositories. Contributions are timestamped according to Coordinated Universal Time (UTC) rather than your local time zone. 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.

Contributions that are counted

Issues and pull requests

Issues and pull requests will appear on your contribution graph if they were opened in a standalone repository, not a fork.

Commits

Commits will appear on your contributions graph if they meet all of the following conditions:

In addition, at least one of the following must be true:

Common reasons that contributions are not counted

Notes:

  • To appear on your profile contributions graph, co-authored commits must meet the same criteria as commits with one author.
  • When a pull request is merged and commits are squashed, only the user that merged the pull request and the user that opened the pull request receive contribution credit. 拉取请求的任何其他贡献者都不会获得贡献积分。
  • When rebasing commits, the original authors of the commit and the person who rebased the commits, whether on the command line or on 您的 GitHub Enterprise Server 实例, receive contribution credit.

Commit was made less than 24 hours ago

After making a commit that meets the requirements to count as a contribution, you may need to wait for up to 24 hours to see the contribution appear on your contributions graph.

You haven't added your local Git commit email to your profile

Commits must be made with an email address that has been added to your GitHub Enterprise profile in order to appear on your contributions graph. You can check the email address used for a commit by adding .patch to the end of a commit URL, e.g. https://github.com/octocat/octocat.github.io/commit/67c0afc1da354d8571f51b6f0af8f2794117fd10.patch:

From 67c0afc1da354d8571f51b6f0af8f2794117fd10 Mon Sep 17 00:00:00 2001
From: The Octocat <octocat@nowhere.com>
Date: Sun, 27 Apr 2014 15:36:39 +0530
Subject: [PATCH] updated index for better welcome message

The email address in the From: field is the address that was set in the local git config settings. In this example, the email address used for the commit is octocat@nowhere.com.

If the email address used for the commit hasn't been added to your GitHub Enterprise profile, you must add the email address to your GitHub Enterprise account. Your contributions graph will be rebuilt automatically when you add the new address.

Generic email addresses--such as jane@computer.local--cannot be added to GitHub Enterprise accounts. If you use such an email for your commits, the commits will not be linked to your GitHub Enterprise profile and will not show up in your contributions graph.

Commit was not made in the default or gh-pages branch

Commits are only counted if they are made in the default branch (usually master) or the gh-pages branch (for repositories with Project Pages sites). If your commits are in a non-default or non-gh-pages branch and you'd like them to count toward your contributions, you will need to do one of the following:

Changing the default branch of the repository will change it for all repository collaborators. Only do this if you want the new branch to become the base against which all future pull requests and commits will be made.

Commit was made in a fork

Commits made in a fork will not count toward your contributions. To make them count, you must do one of the following:

Commit was made in a pull request that was merged and squashed

Commits made in a pull request that was merged and squashed will not count toward your contributions. Only the user that merged the pull request and the user that opened the pull request receive contributions. No other contributors to the pull request will receive contribution credit.

Further reading

问问别人

找不到要找的内容?

联系我们