github-tools / github-tools/github
Working with github enterprise
- 主要语言
- JavaScript
- 星标
- 3.8k
- 派生
- 809
- PR 合并指标
- 30 天内没有已合并 PR
描述
Is there a way to use this lib with Git-Hub Enterprise?
I tried this as below but it doesn't seem to work. Please let me know what I'm missing.
```
const token = process.env.GIT_API_TOKEN,
apiBase = 'https://git.company.com/api/v3',
GitHub = require('github-api'),
gh = new GitHub({ token, apiBase });
let me = gh.getUser();
me.listNotifications(function(err, notifications) {
console.log(notifications);
});
```
贡献指南
这个仓库没有索引到贡献指南
调研方向
Start by reproducing the supplied JavaScript example against the GitHub Enterprise apiBase, then inspect how the GitHub constructor and listNotifications request use that setting. Confirm whether the request reaches the Enterprise endpoint and define done as successful notification retrieval or a documented, actionable limitation.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- api
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100