github-tools / github-tools/github

Working with github enterprise

Offen
#538 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
question
Vorherrschende Sprache
JavaScript
Sterne
3.8k
Forks
809
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.