Last active
August 4, 2022 07:28
-
-
Save josephschmitt/f0ac9aa5feb8f9f6bbb2231eb6e82165 to your computer and use it in GitHub Desktop.
Basic Probot application setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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