github-tools / github-tools/github

Working with github enterprise

Open
#538 2 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
JavaScript
Stars
3.8k
Forks
809
PR merge metrics
No merged PRs in 30d

Description

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);
});
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.