获取有关 GitHub 拉取请求的构建状态信息

时间:2021-02-03 17:38:19

标签: github github-api

我尝试从 GitHub API 获取构建状态,人类可以在这里看到的内容: enter image description here

因此在第一步我发送获取请求 android:text="@={viewModel.yourVariable}" 这样github给我返回了很多信息。关键部分应该是

https://api.github.com/repos/{user_name}/{repo}/pulls/5

所以我试图获取状态只是一个获取请求 "commits_url": "https://api.github.com/repos/***/***/pulls/70/commits", "review_comments_url": "https://api.github.com/repos/***/***/pulls/70/comments", "review_comment_url": "https://api.github.com/repos/***/***/pulls/comments{/number}", "comments_url": "https://api.github.com/repos/***/***/issues/70/comments", "statuses_url": "https://api.github.com/repos/***/***/statuses/49c6****30248", "head": { "label": "***:***", "ref": "***", "sha": "49c69****30248", "user": {

但是我没有收到关于哪些检查成功哪些不成功的信息,而是得到一个像

这样的空列表
https://api.github.com/repos/{user_name}/{repo}/statuses/49c6****30248

我需要更改什么才能获得所需的信息?,类似于:

[]

0 个答案:

没有答案