我正在尝试通过库“github-java-sdk”使用 GitHub 的 API。我想确定一个存储库的最新 100 个提交者。
例如,当我运行此命令分析返回数据时:http: //github.com/tinoucas/dwm-tinou/network_data_chunk ?748b1c901dc01fd14c4f8a1f8985525612683295
我注意到一些提交没有分配“登录”字段。你能告诉我为什么它是空的吗?我如何识别一个未分配登录属性的提交者?
我正在尝试通过库“github-java-sdk”使用 GitHub 的 API。我想确定一个存储库的最新 100 个提交者。
例如,当我运行此命令分析返回数据时:http: //github.com/tinoucas/dwm-tinou/network_data_chunk ?748b1c901dc01fd14c4f8a1f8985525612683295
我注意到一些提交没有分配“登录”字段。你能告诉我为什么它是空的吗?我如何识别一个未分配登录属性的提交者?
在克隆了这个存储库后,打印出一个可疑提交的标题,人们会在Author和Committer字段中注意到一个非常奇怪的电子邮件信息。
$ git show 7c3efbad3d540d34726340bf727889d87b5376e4 --format=raw
commit 7c3efbad3d540d34726340bf727889d87b5376e4
tree a99909e793befcccb9f8b9f5aff3a789148ee9da
parent c4e62ae697937477a1b847e5a9a4caa906d0b130
author tinou <tinou@polter.(none)> 1234738874 +0100
committer tinou <tinou@polter.(none)> 1234738874 +0100
将此与父提交中包含的信息进行比较,电子邮件不同
$ git show c4e62ae697937477a1b847e5a9a4caa906d0b130 --format=raw
commit c4e62ae697937477a1b847e5a9a4caa906d0b130
tree 61679418f1fe1acfe53440cb91092bb16f64c14a
parent e0bb39e6de991417ea2c55ebea17378d58480476
author tinou <tinoucas@gmail.com> 1231278215 +0100
committer tinou <tinoucas@gmail.com> 1231278215 +0100
如果我们使用 GitHub Web 界面来显示这两个提交
我的猜测是 GitHub 使用提交中的电子邮件地址来检索匹配的 GitHub 登录。当邮箱地址被混淆或无法匹配时,无法通过API发送登录信息。