Skip to main content

Viewing contributions on your profile

Your profile shows off your pinned repositories, Achievements, and a graph of your repository contributions over the past year.

Your contribution graph and Achievements show activity from public repositories. You can choose to show activity from both public and private repositories, with specific details of your activity in private repositories anonymized. For more information, see 在个人资料上显示你的专用贡献和成就.

注意

Commits will only appear on your contributions graph if the email address you used to author the commits is connected to your GitHub account. For more information, see Why are my contributions not showing up on my profile?

What counts as a contribution

On your profile page, certain actions count as contributions:

  • Creating a new repository
  • Forking an existing repository
  • Committing to a repository's default branch or gh-pages branch
  • Opening an issue
  • Opening a discussion
  • Answering a discussion
  • Proposing a pull request
  • Submitting a pull request review

注意

  • 在变基提交时,提交的原作者和提交的变基者(无论是在命令行还是 GitHub.com 上)都会获得贡献积分。
  • 如果合并了多个个人帐户,问题、拉取请求和讨论将不会归因于新帐户,也不会显示在贡献图上。

This section displays your repositories with the most watchers. Once you pin repositories to your profile, this section will change to "Pinned."

Pinned

This section displays up to six public repositories or gists. Important details are listed for each of the items you've chosen to feature. For more information, see 在个人资料中嵌入项目.

Screenshot of the "Pinned repositories" section of a user's profile page.

Contributions calendar

Your contributions calendar shows your contribution activity.

Viewing contributions from specific times

  • Click on a day's square to show the contributions made during that 24-hour period.
  • Press Shift and click on another day's square to show contributions made during that time span.

注意

You can select up to a one-month range on your contributions calendar. If you select a larger time span, we will only display one month of contributions.

Screenshot of the contributions graph on a user profile.

How contribution event times are calculated

Timestamps are calculated differently for commits and pull requests:

Activity overview

在您的个人资料上启用活动概述部分时, 查看者可以看到更多有关您做出的贡献类型和参与最积极的仓库等信息。 查看者在活动概述中只能看到他们已读过的仓库相关信息。 一旦启用,查看者还可过滤特定组织的贡献图和活动时间表。 For more information, see 在个人资料中显示活动概览.

Screenshot of the activity overview section of a user profile.

The organizations featured in the activity overview are prioritized according to how active you are in the organization. If you @mention an organization in your profile bio, and you’re an organization member, then that organization is prioritized first in the activity overview. For more information, see 基本撰写和格式语法 or 个性化您的个人资料.

Contribution activity

The contribution activity section includes a detailed timeline of your work, including commits you've made or co-authored, pull requests you've proposed, and issues you've opened.

You can see your contributions over time by either clicking Show more activity at the bottom of your contribution activity or by clicking the year you're interested in viewing on the right side of the page.

Important moments, like the date you joined an organization, proposed your first pull request, or opened a high-profile issue, are highlighted in your contribution activity.

If you can't see certain events in your timeline, check to make sure you still have access to the organization or repository where the event happened.

Viewing contributions from GitHub Enterprise on GitHub.com

If you use GitHub Enterprise Server and your enterprise owner enables 统一贡献, you can send enterprise contribution counts to your GitHub.com profile. For more information, see 共享 GitHub Enterprise Server 的贡献.