如何从Github API获取git标记消息

Ric*_*d B 5 api github github-api

我正在尝试从Github API获取标记消息.它在这里说我应该使用这个URL:https:
//api.github.com/repos/octocat/Hello-World/git/tags/940bd336248efae0f9ee5bc7b2d5c985887b16ac

但是我在那里得到"Not found",即使我尝试自己的回购:https:
//api.github.com/repos/richbrat/testrepo/git/tags/6cec7db2ae2d0213644480ba58bcc4a277ae8a2b

我正在使用带有oauth令牌的node-github包,它对"repos"调用非常有效,但"gitdata"似乎不起作用.检查我回来的标题给了我一个暗示:

... "x-oauth-scopes":"user, public_repo, repo, gist","x-accepted-oauth-scopes":"repo" ...
Run Code Online (Sandbox Code Playgroud)

Gitdata似乎超出了我的范围.是否有可能将其纳入我的范围或是否有其他解决方案来获取标记消息?