check-pull-request
Using AWS Lambda you can make super-simple Pull Request Checks:
Usage
;
opts
const opts = appName: 'My App' appId: // from GitHub, secret: // set up with GitHub, bucket: // provision an S3 bucket to store a certificate for authenticating, key: // and specify the key;
handler
const handler = async /*pr is an object that has properties such as repo, owner, headSha, baseRef and helper functions: getBody() - gets the body of the Pull RequestgetHeadContent(path) -- gets the file at HEADgetBaseContent(path) -- gets the file at the base*/
handler
can return false
to avoid providing a Status Check.
Example
'use strict'; const check = ; moduleexportshandler = ;