@pepys/source-github
v0.4.5
Published
The pepys GitHub plug-in: pull requests, releases, commits and deploys
Readme
The pepys GitHub plug-in, for Bun.
The plug-in receives GitHub's webhook deliveries as facts, and builds pull request rows from them with its consumer.
Install
bun add @pepys/source-github @pepys/kit
bun add -d @pepys/cliAdd the plug-in to a deployment, then build its consumers. The build compiles each consumer, which needs zig and wasm-tools, as the CLI README says.
// deployment.ts
import { defineDeployment } from '@pepys/kit';
import { githubPlugin } from '@pepys/source-github';
export const deployment = defineDeployment({ name: 'home', plugins: [githubPlugin] });bunx pepys build deployment.ts --out buildFeatures
githubPlugin: the plug-in, to add to a deployment.githubPullRequestConsumer: the consumer of pull request facts, with its SQL schema.githubDelivery: what a query of another plug-in needs to read when each pull request merged, released and deployed. Passconsumersas the query'sreads, runselect(input).execute(db), and give the result'srowstoparse.
Documentation
The pepys docs hold the design of the plug-ins.
