How to use the github-api/dist/github.min function in github-api

To help you get started, we’ve selected a few github-api examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pizn / eevee / src / services / user.js View on Github external
init() {
    const _leafAdmin = storage.get('_leafAdmin');
    const github = new Github({
      username: _leafAdmin.email,
      password: _leafAdmin.pass,
      auth: 'basic',
    });
    this.github = github;
  },
github pizn / eevee / src / services / repo.js View on Github external
init() {
    const _leafAdmin = storage.get('_leafAdmin');
    const github = new Github({
      username: _leafAdmin.email,
      password: _leafAdmin.pass,
      auth: 'basic',
    });
    this.github = github;
  },
github pizn / eevee / src / services / auth.js View on Github external
return new Promise((resolve, reject) => {
      const github = new Github({
        username: auth.email,
        password: auth.pass,
        auth: 'basic'
      });
      const user = github.getUser();
      user.show(null, (err, repodata) => {
        if (err) {
          reject(err);
        } else {
          storage.set('_leafAdmin', {
            email: auth.email,
            pass: auth.pass,
            loggedIn: false,
          });
          resolve(repodata);
        }

github-api

A higher-level wrapper around the Github API.

BSD-3-Clause
Latest version published 3 years ago

Package Health Score

56 / 100
Full package analysis

Popular github-api functions