How to use @graphql-inspector/github - 1 common examples

To help you get started, we’ve selected a few @graphql-inspector/github 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 kamilkisiela / graphql-inspector / api / webhook.js View on Github external
const {createProbot} = require('probot');
const {resolve} = require('probot/lib/resolver');
const {findPrivateKey} = require('probot/lib/private-key');
const {GraphQLClient} = require('graphql-request');

const githubApp = require('@graphql-inspector/github').default;

let probot;

const loadProbot = appFn => {
  probot =
    probot ||
    createProbot({
      id: process.env.APP_ID,
      secret: process.env.WEBHOOK_SECRET,
      cert: findPrivateKey(),
    });

  if (typeof appFn === 'string') {
    appFn = resolve(appFn);
  }

@graphql-inspector/github

GraphQL Inspector's Probot. Compare GraphQL Schemas, check documents, find breaking changes, find similar types.

MIT
Latest version published 1 year ago

Package Health Score

51 / 100
Full package analysis

Popular @graphql-inspector/github functions