github中是否有一个URL可以精确显示当前头的哈希?

github中是否有一个URL可以精确显示当前头的哈希?,git,github,Git,Github,我希望根据我的存储库是否已更改来触发构建。我想知道是否有类似的事情 https://github.com/my/repository/branch/master/HEAD 这将只显示master最近提交的sha1。您可以解析rss提要 https://github.com/<username>/<repo>/commits/master.atom https://github.com///commits/master.atom 请参阅,解析json并检查sha属性。

我希望根据我的存储库是否已更改来触发构建。我想知道是否有类似的事情

https://github.com/my/repository/branch/master/HEAD

这将只显示master最近提交的sha1。

您可以解析rss提要

https://github.com/<username>/<repo>/commits/master.atom
https://github.com///commits/master.atom
请参阅,解析json并检查sha属性。 通常,使用维修挂钩 与其轮询某些提要,为什么不使用向您的服务器/任何服务器发送请求,以便在您的repo更新时执行