Skip to content

Instantly share code, notes, and snippets.

@josephschmitt
Last active August 4, 2022 07:28
Show Gist options
  • Save josephschmitt/f0ac9aa5feb8f9f6bbb2231eb6e82165 to your computer and use it in GitHub Desktop.
Save josephschmitt/f0ac9aa5feb8f9f6bbb2231eb6e82165 to your computer and use it in GitHub Desktop.
Basic Probot application setup
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