rriemann
(Robert)
1
Hello,
for the link https://github.com/beta-europe/www.beta-europe.org/commits/master, I expected to have a onebox different from a precise commit. This is a bit misleading.
Onebox for the link above:
(edit by @david: screenshot of the old result, for future reference)
4 个赞
sam
(Sam Saffron)
2
Agree, we can do better here pr-welcome
3 个赞
maja
(Maja)
3
Links leading to issues and pull requests overview both render whitelistedgeneric onebox:
https://github.com/rails/rails/pulls
Should the same happen when adding a link to commit history as well?
1 个赞
david
(David Taylor)
5
正如 Maja 所建议的,指向多个提交的链接现在将使用白名单通用 onebox 进行渲染。
不幸的是,GitHub 为这些 URL 提供的 OpenGraph 数据是通用的——它只会显示仓库名称和描述。不过,我认为这仍然比随意渲染第一个提交更不容易引起混淆。
如果有人愿意尝试,为这些“多提交”链接创建一个全新的 onebox 仍然是一个欢迎的 PR(pr-welcome)。
5 个赞