Skip to content

Instantly share code, notes, and snippets.

@uc-compass-bot
Created November 7, 2019 18:59
Show Gist options
  • Save uc-compass-bot/95bec2b87c76ef9a37ff75165c752fdf to your computer and use it in GitHub Desktop.
Save uc-compass-bot/95bec2b87c76ef9a37ff75165c752fdf to your computer and use it in GitHub Desktop.
import {Application} from 'probot';
import {Context} from 'probot/lib/context';
export = (app: Application) => {
app.on('pull_request', async (context: Context) => {
context.logger.info('Pull Request event', context.payload);
});
app.on('check_suite.requested', async (context: Context) => {
await context.github.checks.create({
status: 'queued',
});
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment