@pepys/source-github 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -27,6 +27,9 @@ bun add @pepys/source-github
27
27
 
28
28
  - `githubPlugin`: the plug-in, to add to a deployment.
29
29
  - `githubPullRequestConsumer`: the consumer of pull request facts, with its SQL schema.
30
+ - `githubDelivery`: what a query of another plug-in needs to read when each pull request merged,
31
+ released and deployed. Pass `consumers` as the query's `reads`, run `select(input).execute(db)`,
32
+ and give the result's `rows` to `parse`.
30
33
 
31
34
  ## Documentation
32
35
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pepys/source-github",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "The pepys GitHub plug-in: pull requests, releases, commits and deploys",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -19,16 +19,16 @@
19
19
  "access": "public"
20
20
  },
21
21
  "dependencies": {
22
- "@pepys/api": "0.1.0",
23
- "@pepys/ingest": "0.1.0",
24
- "@pepys/kit": "0.1.0",
22
+ "@pepys/api": "0.1.1",
23
+ "@pepys/ingest": "0.1.1",
24
+ "@pepys/kit": "0.1.1",
25
25
  "@zgeoff/std": "0.4.3",
26
26
  "kysely": "0.29.8",
27
27
  "zod": "4.6.7"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@msw/data": "1.1.8",
31
- "@pepys/testing": "0.1.0",
31
+ "@pepys/testing": "0.1.1",
32
32
  "msw": "3.0.3",
33
33
  "tiny-invariant": "1.3.3"
34
34
  }
package/src/index.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export { githubPlugin } from './github-plugin.ts';
2
2
  export { githubPullRequestConsumer } from './github-pull-request-consumer.ts';
3
3
  export { githubPullRequestSchemaPath } from './github-pull-request-schema-path.ts';
4
+ export { githubDelivery } from './queries/github-delivery.ts';
4
5
  export { githubDeliveryConsumers } from './queries/github-delivery-consumers.ts';
5
6
 
6
7
  export {
@@ -0,0 +1,13 @@
1
+ import { githubDeliveryConsumers } from './github-delivery-consumers.ts';
2
+ import {
3
+ parsePullRequestDeliveries,
4
+ selectPullRequestDelivery,
5
+ } from './select-pull-request-delivery.ts';
6
+
7
+ // What a query of another plug-in needs to read deliveries: `consumers` for its `reads`, `select`
8
+ // for the statement to run on its `db`, and `parse` for the rows of the result.
9
+ export const githubDelivery = {
10
+ consumers: githubDeliveryConsumers,
11
+ select: selectPullRequestDelivery,
12
+ parse: parsePullRequestDeliveries,
13
+ } as const;