How to use the probot/lib/github.GitHubAPI function in probot

To help you get started, we’ve selected a few probot 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 behaviorbot / new-issue-welcome / test / index.js View on Github external
beforeEach(() => {
    app = new Application()
    plugin(app)

    github = new GitHubAPI()
    app.auth = () => Promise.resolve(github)
  })
github behaviorbot / first-pr-merge / test / index.js View on Github external
beforeEach(() => {
    app = new Application()
    plugin(app)

    github = new GitHubAPI()
    app.auth = () => Promise.resolve(github)
  })
github behaviorbot / new-pr-welcome / test / index.js View on Github external
beforeEach(() => {
        app = new Application();
        plugin(app);
        github = new GitHubAPI();
        app.auth = () => Promise.resolve(github);
    });