githubot:Github API访问,专为Hubot设计

时间:2024-05-07 07:46:33
【文件属性】:

文件名称:githubot:Github API访问,专为Hubot设计

文件大小:14KB

文件格式:ZIP

更新时间:2024-05-07 07:46:33

CoffeeScript

一个与Hubot兼容的Github API包装器,用于Node.js 安装 npm install githubot 要求 在您的Hubot脚本中使用它: module . exports = ( robot ) -> github = require ( ' githubot ' )(robot) 或单独使用它: github = require ( ' githubot ' ) 如果需要,可以将其他传递给构造函数。 用 调用Github v3 API,获取已解析的JSON响应: github . get " https://api.github.com/users/iangreenleaf/gists " , ( gists ) -> console . log gists[ 0 ]. description github . get " users/foo/repo


【文件预览】:
githubot-master
----.gitignore(74B)
----package.json(732B)
----Makefile(172B)
----src()
--------branches.coffee(1KB)
--------deployments.coffee(842B)
--------githubot.coffee(4KB)
----.travis.yml(73B)
----LICENSE(1KB)
----Readme.md(6KB)
----test()
--------repo.coffee(8KB)
--------acceptance()
--------mocha.opts(75B)
--------test_helper.coffee(461B)
--------request.coffee(10KB)
--------qualified_repo.coffee(1KB)

网友评论