-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add blueprint check and updates (#944)
* Test blueprint generation * Add dependabot support with automerge for blueprint
- Loading branch information
Showing
8 changed files
with
127 additions
and
5 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
version: 2 | ||
updates: | ||
- package-ecosystem: npm | ||
directory: '/' | ||
schedule: | ||
interval: daily | ||
commit-message: | ||
prefix: feat | ||
include: scope | ||
allow: | ||
- dependency-name: '@seamapi/blueprint' | ||
ignore: | ||
- dependency-name: '*' | ||
update-types: | ||
- 'version-update:semver-major' | ||
groups: | ||
seam: | ||
dependency-type: development | ||
patterns: | ||
- '@seamapi/blueprint' | ||
update-types: | ||
- patch | ||
- minor |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
name: Automerge | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
merge: | ||
name: Merge | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
if: github.actor == 'dependabot[bot]' | ||
steps: | ||
- name: Approve pull request | ||
run: gh pr review --approve "$PR_URL" | ||
env: | ||
PR_URL: ${{ github.event.pull_request.html_url }} | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
- name: Merge pull request | ||
run: gh pr merge --auto --merge "$PR_URL" | ||
env: | ||
PR_URL: ${{ github.event.pull_request.html_url }} | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { writeFile } from 'node:fs/promises' | ||
import { join } from 'node:path' | ||
|
||
import { createBlueprint, TypesModuleSchema } from '@seamapi/blueprint' | ||
|
||
import * as types from '@seamapi/types/connect' | ||
|
||
const typesModule = TypesModuleSchema.parse(types) | ||
|
||
const blueprint = createBlueprint(typesModule) | ||
|
||
const content = JSON.stringify(blueprint, null, 2) | ||
|
||
const output = join('tmp', 'connect-blueprint.json') | ||
|
||
await writeFile(output, Buffer.from(content)) | ||
|
||
// eslint-disable-next-line no-console | ||
console.log(` Blueprint written to ${output}`) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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