标签: github-api

如何找到Github文件的SHA blob

我正在使用此API更新我的repo上的文件,它要求我为要更新的文件提供有效的SHA blob:

http://developer.github.com/v3/repos/contents/

如何找到特定文件的SHA blob?我在测试帐户的testrepo中提供了什么,test.txt文件的SHA blob是什么?

https://github.com/testacc01/testrepo01

非常感谢!

git github sha github-api

21
推荐指数
3
解决办法
7017
查看次数

GitHub中的Release是什么?

  • 究竟是什么?
  • 它用的是什么?
  • 使用范围有多广泛?
  • 它通常如何使用?

git release github github-api

21
推荐指数
2
解决办法
2万
查看次数

使用github api v3列出组织私有存储库中的所有问题

我正试图从一个组织的私人回购中检索所有问题,但没有太多运气.

我正在使用红宝石宝石"github_api",但我也试过尝试使用curl访问它

到目前为止,我能够检索我所分配的或我订阅的所有问题,但不是所有针对该特定回购的问题.

使用github_api gem(https://github.com/peter-murach/github),我已经走到了这一步

@github.issues.issues(:filter => "subscribed")
Run Code Online (Sandbox Code Playgroud)

仅供参考:我是组织和回购的所有者

看看github api(问题)似乎没有一个过滤器会返回我需要的东西.

这甚至可能吗?

谢谢!

ruby github-api

20
推荐指数
1
解决办法
3618
查看次数

如何使用git bash在Github上创建一个新的repo?

如何使用git bash从我的机器创建新的存储库?

我按照以下步骤操作:

mkdir ~/Hello-World

cd ~/Hello-World

git init

touch README

git add README

git commit -m 'first commit'

git remote add origin https://github.com/username/Hello-World.git

git push origin master
Run Code Online (Sandbox Code Playgroud)

但是我得到了"致命的错误:你在服务器上运行了update-server-info吗?"

github github-api git-bash

20
推荐指数
3
解决办法
5万
查看次数

触发 github 工作流程调度事件后获取运行 ID

我正在触发通过 github 的 Rest api 运行的工作流程。但 github 不会在响应正文中发送任何数据 (204)。如何获取触发请求的运行 ID?我知道getRunsListapi,它会返回工作流 id 的运行,然后我可以获得最新的运行,但是当几乎同时提交两个请求时,这可能会导致问题。

github github-api github-enterprise github-api-v3 github-actions

20
推荐指数
1
解决办法
9713
查看次数

如何通过github API获取repo的所有pull请求列表?

我想通过github API获取repo上所有pull请求的列表.我已按照http://developer.github.com/v3/pulls/上的说明进行操作,但当我查询'/ repos /:owner /:repo/pulls'时,它始终返回的拉取请求少于网站上显示的拉取请求.

例如,当我查询torvalds/linux repo时,我得到9个开放拉请求(网站上有14个).如果我添加'?state = closed',我会得到一组不同的11个关闭拉取请求(网站显示大约20个).

有没有人知道这种差异出现的地方,以及是否有办法通过API获得回购请求的完整列表?

github-api pull-request

19
推荐指数
4
解决办法
3万
查看次数

GitHub API:使用'repo'范围,但仍然看不到私人回购

根据GitHub API文档,我正在请求可以访问私有存储库的repo范围.

向用户显示以下对话框,其中还提到了私人回购.他们接受申请.

在此输入图像描述

尽管如此,当使用在请求'repo'访问时获得的oauth访问令牌时,我只能在访问https://api.github.com/users/someusername/repos时看到公共回购.没有显示私人回购.

用户帐户是我自己的,我没有撤销访问权限.

如何使用GitHub API V3查看私人回购?

authentication github github-api

19
推荐指数
2
解决办法
6723
查看次数

从Freshdesk创建GitHub问题

我们目前正在使用Freshdesk作为客户支持,使用GitHub作为我们的代码.在通过Freshdesk收到错误或改进功能请求后,我们希望将该票证(包含所有详细信息+屏幕截图)转发到GitHub中的电子邮件,以便在GitHub上自动创建问题.这将为我们节省手动输入.

期待对此建议或更好的解决方案.

注意:曾经遇到过https://zapier.com/zapbook/gmail/github/72/create-github-issue-email,但我们希望在没有第三方应用程序的情况下进行直接交互.

email integration github github-api freshdesk

19
推荐指数
2
解决办法
8273
查看次数

Github API v3不显示所有用户存储库

如果我输入此命令:

$ curl https://api.github.com/users/KiCad/repos | grep full_name
Run Code Online (Sandbox Code Playgroud)

我希望它将返回所有KiCad存储库,但它返回:

"full_name": "KiCad/Air_Coils_SML_NEOSID.pretty",
"full_name": "KiCad/Buzzers_Beepers.pretty",
"full_name": "KiCad/Capacitors_Elko_ThroughHole.pretty",
"full_name": "KiCad/Capacitors_SMD.pretty",
"full_name": "KiCad/Capacitors_Tantalum_SMD.pretty",
"full_name": "KiCad/Capacitors_ThroughHole.pretty",
"full_name": "KiCad/Choke_Axial_ThroughHole.pretty",
"full_name": "KiCad/Choke_Common-Mode_Wurth.pretty",
"full_name": "KiCad/Choke_Radial_ThroughHole.pretty",
"full_name": "KiCad/Choke_SMD.pretty",
"full_name": "KiCad/Choke_Toroid_ThroughHole.pretty",
"full_name": "KiCad/Connect.pretty",
"full_name": "KiCad/Connectors_Molex.pretty",
"full_name": "KiCad/Converters_DCDC_ACDC.pretty",
"full_name": "KiCad/Crystals.pretty",
"full_name": "KiCad/Crystals_Oscillators_SMD.pretty",
"full_name": "KiCad/Diodes_SMD.pretty",
"full_name": "KiCad/Diodes_ThroughHole.pretty",
"full_name": "KiCad/Discret.pretty",
"full_name": "KiCad/Display.pretty",
"full_name": "KiCad/Displays_7-Segment.pretty",
"full_name": "KiCad/Divers.pretty",
"full_name": "KiCad/EuroBoard_Outline.pretty",
"full_name": "KiCad/Fiducials.pretty",
"full_name": "KiCad/Filters_HF_Coils_NEOSID.pretty",
"full_name": "KiCad/Fuse_Holders_and_Fuses.pretty",
"full_name": "KiCad/Hall-Effect_Transducers_LEM.pretty",
"full_name": "KiCad/Heatsinks.pretty",
"full_name": "KiCad/Housings_DFN_QFN.pretty",
"full_name": "KiCad/Housings_QFP.pretty",
Run Code Online (Sandbox Code Playgroud)

如果你看一下https://github.com/KiCad,你会看到有更多的存储库.

有谁遇到过这个问题?你是如何解决的?

curl get repository github-api kicad

19
推荐指数
1
解决办法
3731
查看次数

如何在github上删除我的粉丝?

有可能吗?

如果是的话,你能提供一个卷曲的例子吗?

github github-api

19
推荐指数
1
解决办法
5350
查看次数