需要有关GitHub使用的帮助.我想知道是否有办法与github.com用户沟通,即在GitHub页面上只给出用户名/ id时给用户写一条消息?GitHub有这个社交功能吗?
nul*_*ken 346
尽管GitHub删除了私人消息传递功能,但仍有其他选择.
GitHub主机git存储库.如果您愿意与之通信的用户提交了一些代码,那么您很有可能实现目标.实际上,在每次提交中都存储了一些有关变更作者或接受变更的人的信息.
如果您真的想与用户user_test交换
git clone https://github.com/..../repository.git git checkout [branch]git log -50作为提交者/作者,应该与提交数据一起显示电子邮件.
注意:与未经请求的电子邮件相关的每条警告都应适用于此处.难道不是垃圾邮件.
Nik*_*hil 199
这种方法在2018年9月开始运作
正如qbolec所建议的,上述步骤可以通过使用此代码段来完成:
<input id=username type="text" placeholder="github username or repo link">
<button onclick="fetch(`https://api.github.com/users/${username.value.replace(/^.*com[/]([^/]*).*$/,'$1')}/events/public`).then(e=> e.json()).then(e => [...new Set([].concat.apply([],e.filter(x => x.type==='PushEvent').map(x => x.payload.commits.map(c => c.author.email)))).values()]).then(x => results.innerText = x)">GO</button>
<div id=results></div>Run Code Online (Sandbox Code Playgroud)
资料来源:Matthew Ferree @ Sourcecon
qbo*_*lec 49
对于像我这样的懒人,基于Nikhil解决方案的片段
<input id=username type="text" placeholder="github username or repo link">
<button onclick="fetch(`https://api.github.com/users/${username.value.replace(/^.*com[/]([^/]*).*$/,'$1')}/events/public`).then(e=> e.json()).then(e => [...new Set([].concat.apply([],e.filter(x => x.type==='PushEvent').map(x => x.payload.commits.map(c => c.author.email)))).values()]).then(x => results.innerText = x)">GO</button>
<div id=results></div>Run Code Online (Sandbox Code Playgroud)
Kay*_*rdt 39
只需创建一个虚拟仓库,打开一个新问题并使用@xxxxx通知受影响的用户.
如果用户通过电子邮件启用了通知,他将收到一封电子邮件,如果没有,他会在下次登录时注意到.
无需在提交或活动流中搜索电子邮件地址,并且尊重隐私.
ian*_*411 19
这是另一种方式:
浏览某人的提交历史记录(单击commits分支旁边的,以查看整个提交历史记录)
单击使用此用户名的提交,因为可能有这么多用户
然后你应该看到网址有一个连接到URL的哈希.添加.patch到此提交URL
您可能会在那里看到该人的电子邮件地址
例: https://github.com/[username]/[reponame]/commit/[hash].patch
除了删除github消息传递服务之外,由于许多githubbers与Twitter进行通信并提倡推特,因此通常不需要使用.
的优点是,有:
stackoverflow也不允许私人消息传递,以确保完全透明,这可能并非巧合.这里有关于meta-stackoverflow的完整消息传递问题.